Every rule an extension follows. lint = ffl_core.extensions.lint refuses the package (or warns, where marked); the Extensions page runs it on every upload. review = the lint does not check it; a reviewer or the store does. The lint is a floor built on string and AST heuristics, not a review.
If a feature needs something listed under "don't" for compliance, payments or taxes, it belongs in the core: open an issue.
Id <vendor>_<name>: ^[a-z][a-z0-9]{1,11}_[a-z][a-z0-9_]*$; equal to app_name, the package folder, [project].name and the manifest id
Reuse an id already on the server
lint (id on the server: upload)
app_title at most 30 characters, equal to the manifest title; modules.txt exactly one line equal to it; the module package <id>/<scrubbed title>/__init__.py exists
lint
Own DocTypes start with the first word of the title (Acme Layaway Plan)
lint
Custom fields on core DocTypes: fieldname starts with <vendor>_ (Section, Column and Tab Breaks excepted)
lint
Roles contain the title (Acme Layaway Manager); one Settings Single named <Title> Settings
review
Endpoints in <id>/api/, path <id>.api.<module>.<fn>; handlers in hooks_impl/
review
JavaScript only under gunstore.ext.<id>; CSS classes prefixed <vendor>-<name>-
require_enabled(APP, roles=…) (or frappe.only_for(...)) as the first executable statement of every module-level whitelisted endpoint (docstring and imports skipped)
require_enabled(APP) without roles=; gate an endpoint on is_enabled
lint
Wrap every doc_events and scheduler_events handler in @extension_hook
review
Render UI only through the registry
Check the switch yourself and insert DOM
review
While off: own DocTypes readable, not writable (a has_permission returning False for write/create/delete/submit/cancel/amend, True otherwise); custom field values stay; core flows untouched
review
A doc_events handler that only keeps data consistent when a core document you created is cancelled or amended may run while off; say so in a comment
review
Switched off, nothing of the extension is visible on the sale screen, forms or menus
Own DocTypes in your module, autoname from your own series
Change core naming series
review
Custom fields defined once in fixtures/custom_field.json, fed to create_custom_fields in after_install too (it runs before sync_fixtures); in your own tab or section after the core's last field
Make them reqd or unique (first-party exception: an idempotency key)
review
Property Setters on your own DocTypes
Property Setters on core fields of core DocTypes
review
SQL parameterized or frappe.qb; tables only through your own DocTypes
UPDATE / DELETE core tables; create or alter tables with SQL; read __Auth, password columns, another app's Password fields
review
Long work through frappe.enqueue(queue="long")
frappe.db.commit() in a hook
review
Attachments through File with is_private=1
Delete core records; copy driver's licenses or 4473s into your tables
review
ignore_permissions=True only on your own DocTypes, with a comment saying why
Create, modify, cancel, delete; change a field; block submission in validate / before_*
lint (both permissions are derived); review (which events, what they do)
Form 4473 (Pending 4473, start_4473, manager override)
Read status
Start, skip, override, modify
review
Serial No compliance and custody fields (is_consignment, dealer_transfer, custody, FastBound id, status)
Read; write your own custom fields
Write core fields; set a serial sold or delivered directly
review
FastBound, ATF eZ Check, Payroc, ShipStation, WooCommerce credentials and clients
Use the core's public API
Read credentials; build your own client; log secrets (a card processor brings its own gateway client behind CardProcessor, never another processor's)
review
Payments (invoice payments, card charge rows)
Read; add your own rows through the core API; as a card processor, answer the core's gateway calls
Change core payment rows, tax tables or totals; book money outside the POS flow (a card processor never writes a charge row, a terminal payment or a Payment Entry)
review
Taxes
Read
Change templates, rates or the tax base
review
Customer PII (license number, date of birth, address)
Read what you need, masked in the UI
Send it to another host unless declared with network: and explained in the README; write it to logs
first_party is accepted only from publisher_id"osa"and an id on the list shipped with the core (FIRST_PARTY_IDS in ffl_core/extensions/lint.py): osa_ai, osa_ca_compliant, osa_consignment, osa_dropship, osa_range (lint). No third-party id can be added without a core release. First-party extensions may also call a documented set of core functions others may not (dealer-transfer dispositions, custody flags, the consignment warehouses, settlement invoicing, the ShipStation client) and register the first-party hooks; reading the bound book does not make them derive compliance_read. Every other rule applies unchanged.
pyproject.toml at the app root, [project].dependencies met by the core or by pure-Python wheels (py3-none-any, py2.py3-none-any) directly in wheels/
Bundle a package the core already has; a wheel with compiled files, keys or dumps; a wheel whose top-level names clash with the core, your id or another extension
Three sections. For the counter: two or three sentences on what staff can do. For the manager: installation, each setting, roles needed, external accounts, every network: host and what is sent to it. For developers: hooks and core functions used, the data model in one sentence, the commands that run the tests, the lint and the API-docs generator. Hand-written API overviews go in docs/api/README.md; the generator leaves it alone.
A reviewer checks, beyond the lint: the feature belongs in an extension, not the core; no red line is touched; every network: host is explained in the README; off means invisible; uninstall leaves no orphan Custom Field, Role, Workspace shortcut or Scheduled Job Type; the settings page follows the standard; staff text has no code words; scheduled tasks are idempotent, short and incremental; tests cover off / no-role / idempotency and never reach the network; release notes are plain language; the package has no secrets.