-
Notifications
You must be signed in to change notification settings - Fork 0
Declare Architecture
Note
Goal: Write a wiki/architecture.yml manifest so the wiki grows an Architecture section — one landing per large component, plus the nested sidebar — without hand-building any of the scaffolding.
Prereqs: the wiki-maintenance plugin installed (Install crickets plugins); a scaffolded wiki/ (Provision a repo's wiki); PyYAML available (pip install pyyaml — the manifest reader needs it); run from the target repo's root.
Architecture is the one wiki section whose contents are per-project. Rather than hard-code its sub-sections, the generator reads a small manifest — wiki/architecture.yml — listing each large component. No manifest means no Architecture section (the section is gated on bool(components)); a malformed manifest fails closed and scaffolds nothing.
-
Name your components. Pick the handful of large parts a reader needs to understand the system — typically 3–6. Each becomes one folder,
architecture/<slug>/, with its own overview landing. Decide their order now: the manifest order is the render order, top to bottom in the sidebar. -
Write
wiki/architecture.yml. Give each component four required keys —slug(folder name),title(display name),summary(the landing's one-liner),overview(the landing's basename within the folder):architecture: components: - slug: ingest title: Ingest pipeline summary: How raw events are received, validated, and queued. overview: Ingest-Pipeline - slug: store title: Storage layer summary: The durable store and its schema. overview: Storage-Layer
Any missing key on a component is a fail-closed error — the generator writes nothing until it's fixed.
-
(Optional) toggle a recurring pillar. Three components recur across paired repos and ship as one-word toggles under
pillars:—host-adapters,sibling-interface,distribution— each expanding to a repo-agnostic template:architecture: pillars: [distribution] components: - slug: core title: Core engine summary: The evaluation loop everything else feeds. overview: Core-Engine
Pillars expand first, in declared order, ahead of free-form components — so a pillar lands at the top of the section. To place a recurring component lower (or to give it repo-specific wording), free-form it under
components:with the same slug instead: acomponents:entry whose slug matches a pillar overrides that template's fields in place, keeping its position. -
Preview the scaffold. From the repo root:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/wiki_init.py" --previewIt reads the manifest and prints the gap-fill plan, writing nothing. On Claude Code,
/wiki-initruns this for you. -
Apply. Drop
--preview(add--yesto skip the prompt once you've read the plan):python3 "${CLAUDE_PLUGIN_ROOT}/scripts/wiki_init.py" --yes -
Fill the overview landings. The generator scaffolds each
architecture/<slug>/<Overview>.mdas an<!-- mode: index -->stub. Replace each stub with a real component overview — what the part is, how it works, how it fits its siblings.
For a manifest of N components, gap-fill creates: the Architecture section landing (architecture/Architecture.md) + its _Sidebar.md; one architecture/<slug>/<Overview>.md landing + architecture/<slug>/_Sidebar.md per component, in manifest order; and the third-level nest on the root _Sidebar.md — the Architecture bullet expands into one indented sub-bullet per component, each linking to its overview. Architecture is the only section that nests on the root; the run is idempotent, so a second pass is a no-op.
- Provision a repo's wiki — scaffold the seven-section frame first; this how-to fills its Architecture section.
-
Repo layout — where
wiki/architecture.ymland thearchitecture/tree sit in the repo. -
Wiki-Maintenance plugin — the plugin that bundles
wiki-initand the gate. - Wiki Section Taxonomy — why Architecture is a per-project manifest instead of hard-coded sub-sections.
🔧 How-to
- Install plugins
- Using code review
- Provision a repo's wiki
- Declare a project's Architecture
- Maintain a wiki — wiki-watcher
- Review a change — code review
- In-flight decision review — /doubt
- Author a design (pending)
- Run a named plan
- Spawn a worker in a worktree
- Run isolated tasks
- Configure main branch protection
- Integrate a worker
- See every active plan
- Run a coordinator-directed worker team (pending)
- Install the vault backend (pending)
- Sync a project board