Layout – one folder, three sections
Every product gets one folder, docs/crafthall/canon/<id>/, where <id> is one logical product (not an app: a product can span several apps). The source of this layout in code is SECTIONS and HUB_PATHS in src/index.ts.
Where Crafthall writes: docs/crafthall/
Everything a Crafthall product writes into a repository, and that belongs in version control, lives under docs/crafthall/, one folder per product: docs/crafthall/canon/ for the Canon hub, docs/crafthall/hq/ for what Crafthall adds to the agent team (teams, team names, agent icons). Local, private state that is never committed stays in .crafthall/<product>/ at the repository root (for example the Crafthall Optimize store), with its own .gitignore.
Up to 0.2.x the hub lived in docs/product-hub/. A repository that has only that folder still works: canon check, canon new and canon init read and write it and print a note with the move command:
mkdir -p docs/crafthall && git mv docs/product-hub docs/crafthall/canon
A link from a hub README to an app climbs one more level after the move (../../../../apps/<app>/ instead of ../../../apps/<app>/); canon check reports every link the move broke. --hub-dir <dir> still picks any other folder.
The hub folder’s README: upkeep
docs/crafthall/canon/README.md (in the legacy folder docs/product-hub/README.md) is the hub folder’s own page; besides it the folder holds only product folders. Its front matter key upkeep says whether agents keep the pages current:
---
upkeep: active # default: agents update the hub pages in every change (skill everything-as-code)
---
upkeep: pausedpauses the upkeep and keeps every page:canon checkstill checks them, printsUpkeep is paused (upkeep: paused in docs/crafthall/canon/README.md) – pages are checked but not kept current.after its verdict and reports"upkeep": "paused"in--json; the skilleverything-as-codeonly says, in one line, that upkeep is paused and how to resume. Setupkeep: active(or remove the key) to resume.- No README, no front matter or no key means
active. Any other value is a structure problem (rulefront-matter). canon newandcanon initwrite a minimal README withupkeep: activewhen the folder has none; an existing one is never changed.
One product folder
docs/crafthall/canon/<id>/
README.md # hub index: status (= stage), apps, links to every page, metrics, changelog
business-product/
overview.md # what it is, who it is for, the main flow
value-proposition.md # customer, problem, value, alternatives
competitive-index.md # optional: scored comparison with alternatives
business-plan.md # executive summary first, full plan below
business-model.json # scenario model the plan's numbers come from
competition-landscape.md # optional: appendix of the plan – competitors and where the product stands
monetization.md # offer, pricing, entitlements, revenue gates
go-to-market.md # segments, channels, funnel, launch steps
marketing.md # only once marketing runs
brand.md # name, logo, palette, type, voice
roadmap.md # releases in order + every gate in one table
experiments.md # optional: hypotheses with metric, go/kill, owner, revisit-by, result
use-cases.md # optional: what a user can do, one stable id per use case, linked to features
releases/<release>.md # the plan of one release
features/
README.md # feature catalog: one row per feature page
<slug>.md # one page per feature
candidates.md # ideas, not counted as features
architecture-engineering/
overview.md # runtime paths, environments
components-and-data-flows.md # what talks to what; data, privacy, security
technology-stack.md # stack and why
decisions/
README.md # decision index
NNNN-<slug>.md # one record per material decision
technical/*.md # testing, limits, risks, user guide …
ai-development-workflow/
agent-instructions.md # which agents work here, product-only rules
documentation-rules.md # product-only additions to the framework rules
definition-of-done.md # one checklist: tests, docs, design, release gate
documentation-skills.md # which skills keep these pages current
The three sections
| Section | Answers | Pages |
|---|---|---|
| Business & Product | What is it, who is it for and how does it earn? | overview, value proposition, business plan, monetization, go-to-market, brand, roadmap, feature catalog |
| Architecture & Engineering | How is it built and why that way? | architecture overview, components and data flows, technology stack, decision records, technical documentation |
| AI & Development Workflow | How do agents and people work on it? | agent instructions, documentation rules, definition of done, documentation skills |
Page rules
- Front matter on every Markdown page:
product,page,status,updated(YYYY-MM-DD).statusis the page’s own:current | draft | historical; the hub README uses the product status (idea | validation | building | live | paused | retired), feature pages the feature status (specified | building | built | partial | later | removed), decision records the decision status (proposed | accepted | superseded | rejected). - Fixed names, lowercase kebab-case, one topic per file. A topic lives in one file; others link to it. The business plan is the exception: it is a standalone document that covers offer, money and channel in one place, so the topic check does not compare it with the topic pages (they link its numbers).
- Optional pages (
competitive-index.md,competition-landscape.md,experiments.md) are allowed at every stage and never required by their name alone.competitive-index.mdis the scored comparison the hub view shows next to the value proposition;competition-landscape.mdis an appendix of the business plan (who competes and where the product stands;canon new --planmoves it from the plan folder along with the plan) – the check accepts it, the hub view does not render it as a card, and it is never read as the competitive index. - Pages appear when the stage requires them (lifecycle) – no empty placeholders. The hub README lists the missing ones as “not due yet”.
- A feature is something a user can do or see, or a capability other features depend on. Group tiny items; no page per button.
- Use cases (optional page
business-product/use-cases.md) are the outcomes a user would name, one## <ID> · <title>section each (for exampleUC-HQ-01), with Status (current | planned | deferred | retired), Actor, Goal, Acceptance, Source, Features and Verified by. Once the page exists, everybuilding,builtorpartialfeature page names its use cases in the front matter (use-cases: [UC-HQ-01], oruse-cases: []for a supporting capability), and the Features line of each use case links exactly those pages.canon checkreports any disagreement (ruleuse-case), so the list changes in the same pull request as the features. Acurrentuse case needs a feature and a Verified by line; ids are never reused (retiredkeeps the section). - Global rules stay global. The workflow pages hold only product-specific additions and link to the shared rules.
App tags
The hub README names the product’s code folders (app: in its front matter and the “Primary app” row). Each named project in apps/ or libs/ carries the tag product:<id> in its package.json ("nx": { "tags": ["product:<id>"] }), and a project with that tag needs the hub docs/crafthall/canon/<id>/. canon check reports a named folder that does not exist, a named project without the tag (rule app), a tagged project without a hub (tagged-without-hub) and a package.json that is not valid JSON (package-json). The change-coupled check uses the same tags to find which product a code change belongs to.
Example front matter
---
product: acme-ledger
page: feature
status: built
updated: 2026-11-26
---
# Invoice import