Skip to content

zer0-CMS documentation

Every document in this repository's own trees, one line each — the root docs of record, the long-form guides, ADRs and plan in docs/, and each product directory's README.

Start with the root README.md for what zer0-CMS is, and AGENTS.md for how to work here. The current target is ADR 0006, described in plan/TARGET.md. The projects imported under packages/, sites/ and apps/, and rails/, are sources being absorbed and keep their own documentation in their own trees; MONOREPO.md lists them and bin/zer0 list prints them. A product README below links the deeper guides inside its directory; src/README.md carries a generated index of its own.

Backlog of record: GitHub Issues with the fleet labels (.github/sdlc.yml), and the order of work in plan/PLAN.md § 3.

The rule these documents follow

Every document here describes the code as it is, not as a plan intended it. When they disagree with the source, the source is right and the document is a bug — so a change to configuration, to the JSON schema, or to the layer boundary is not finished until the matching document moves with it.

Where the source holds the facts, the reference is generated rather than written. The settings tables in CONFIG.md §5 come from package.json's contributes.configuration (python3 tools/check-config-docs.py --write), so adding a setting means editing the manifest and the settings layer in src/config.ts, then regenerating; adding a zer0.json key means editing the schema, src/core/shared/types.ts, src/core/shared/config.ts and CONFIG.md §3. The index below comes from each document's own summary line (tools/docs_index.py, vendored from the hub). python3 tools/check-config-docs.py --write regenerates both, and CI runs it without --write, failing while either is stale or while a document cites a setting that does not exist.

Markdown here is one paragraph per line — no soft wrapping. CI enforces it, skipping SCHEMA.md and CHANGELOG.md; run python3 tools/unwrap-prose.py --write --exclude '(^|/)SCHEMA\.md$' --exclude '(^|/)CHANGELOG\.md$' after editing.

Repository root

Document What it covers
AGENTS.md zer0-CMS's direction is to become the ultimate open home for all things markdown site operations: data, tools, resources and transparency, with a governed studio, a human publish gate, and agent-declared effects, for everyone…
CONTRIBUTING.md How to set up, the rules the build enforces, style, tests, and how to report a problem — for anyone sending a change to zer0-CMS.
CHANGELOG.md Release history: the notable changes in each version, newest first.
SECURITY.md Supported versions and how to report a vulnerability privately.
CODE_OF_CONDUCT.md The standards of behaviour for everyone taking part.
PRD.md What the product must do, with stable requirement ids (FRn, NFRn) that features in features/features.yml name under prd:. The constitution (§ 3) ranks this document under AGENTS.md and above the feature…
ATTRIBUTION.md Where zer0-CMS came from — a fork of Front Matter CMS, since rewritten from scratch — what of its design remains, and the MIT notice that covers it.
content/ The Django 5.2 + Wagtail 7.4 platform — pages and revisions, the agent harness and tool registry, suggestions, the graph, the outbox, the operational baseline, and its GraphQL, REST and MCP surfaces — and how to run it.
media/ The extension's design system: four stylesheets, the --z-* token layer, themes, metrics and icons, and the rules for adding a style.
src/ The VS Code extension's layers — the pure core, the MCP server, the webviews and the vscode shell — the shell's files, and the five things in it that are easy to get wrong.
web/ The React frontend: the studio where people write, create and review content and follow agent runs, the shared packages it is built from, and the site renderer to come.

docs/

Document What it covers
docs/ARCHITECTURE.md The design decisions D1–D17 and why the code follows them: the src/core layer boundary, the six bundles, the webview contract, the ledger, the Fleet console's guards, and the shared-files boundary with the Rails CMS…
docs/CICD.md Every workflow and what its green means, the reusable doctor, the commands to run before a PR, and the specs CI actually pins.
docs/CONFIG.md Every configuration key: the three layers and their precedence, all of zer0.json, every zer0Cms.* setting (generated from package.json), the placeholder tokens, and which layer a decision belongs in.
docs/constitution.md The rules every change to this repo must satisfy, whoever makes it — a human or an AI agent. Agents read this before AGENTS.md conventions, the PRD, or the feature catalog. Ratified…
docs/DISTRIBUTION.md Distribution on the platform — channels (LinkedIn, X, WordPress, GitHub pull requests, newsletters), the queue, the brand guard, a person's approval, the ledger and statistics — and the LinkedIn and X lanes a site that is still files runs…
docs/MONOREPO.md Every project under packages/, sites/ and apps/ — the sources the platform is absorbing (ADR 0006) — how workspace.yml and bin/zer0 manage them as one repository, how they were imported with their history, and what still runs…
docs/RELEASING.md What release-please owns, the repo-owned marketplace job and the secrets it needs, and the operator steps still outstanding.
docs/SUBSTACK.md Carrying a book's chapters — a serial such as the books library's cost-line pilot — to a Substack publication: the sanctioned routes (an RSS feed for Substack's importer, a paste-ready copy), the unofficial adapter that is off by…
docs/ZER0-STACK.md The zer0 stack from this repository's side: the three pillars, the consumer contract zer0 doctor checks, and the reusable workflow that runs it.
docs/adr/ The architecture decision records, 0001–0010, one per decision that changes how the repository is put together; ADR 0006 (one Python platform with a React frontend, every merged repository absorbed, no Ruby) is the current target.
docs/amendments/ The numbered, append-only record of every change to the constitution, with its status.

schemas/

Document What it covers
schemas/events/ The CloudEvents contracts between the planes: every event type, who publishes and consumes it, and the schema its data is validated against.

tools/

Document What it covers
tools/history/ graft.sh, which restores the imported history a squash merge dropped (cutover milestone C0), and how to run it safely.
tools/workspace/ The tooling behind bin/zer0 (Python 3.9+ and PyYAML since PLAN P5): every command, the contract bin/zer0 check enforces, ownership of files, and the library's layout.

docs/plan/

Document What it covers
docs/plan/agent-native-design.md The design note the plan implements ("the note"): agent runs as content-adjacent data — Wagtail revisions, moderation tasks and graph edges — across a Django/Wagtail content plane and a Rails experience plane.
docs/plan/newsroom-journalism-discovery.md Discovery for epic #92 (a full journalism and media-agency platform, centred on journalist workflow UX): the gap against today's studio, user stories and one journey, low-fidelity UX, the…
docs/plan/PLAN.md The build plan: ADR 0006's order of work (§ 3), every milestone and phase with what is done, what is blocked and what overtook it, and the open decisions.
docs/plan/rails-cms-spec.md What the deleted Rails fleet CMS (rails/) did that the platform does not do yet — one section per open capability, with what Rails did, where the platform stands and what to build — so the code could go while its behaviour stays…
docs/plan/TARGET.md A comprehensive application for writing articles, creating content, brainstorming ideas, gathering information, operating a news site and writing books — a robust React frontend over a Python and Postgres backend, with AI integrations and…