Documentation Architecture¶
Where system documentation lives, what is canonical vs legacy, and how to make documentation changes
When to use¶
When the user asks about documentation structure, where docs live, or how to update system documentation
Directions¶
Documentation Hierarchy¶
CLAUDE.md— Agent orientation file. High-level structure, capability registry tables, operational rules. Valid to edit directly for top-level changes.knowledge/store/**/*.md— The canonical, queryable documentation store, one Markdown file per unit. All detailed subsystem docs, behavioral directions, capability declarations, and workflow definitions live here. Edit or create units via thedocs_editworkflow (or a direct.mdedit +agent_docs_rebuild); remove/relocate viadocs_delete/docs_move.CLAUDE.local.md— User-specific behavioral instructions. Not checked into git.
What is DEPRECATED / Legacy¶
work_buddy/*/README.mdfiles — These are legacy documentation from before the knowledge store existed. They are pending extraction and deletion. NEVER edit these files. If you find useful content in them that isn't in the knowledge store, extract it into a knowledge unit via thedocs_editworkflow, then mark the README for removal.metacognition/directory — Fully migrated to the personal knowledge system (knowledge_personal). The directory should not be referenced, edited, or maintained. Pattern detection usesknowledge_personalwith category/severity filters.workflows/directory — Deleted. Workflow DAGs now live askind: workflowunits (one Markdown file per workflow) underknowledge/store/.DEV.md— Deleted. Architecture patterns, design tenets, and import discipline are now in the knowledge store underdev/design-tenets,architecture/mcp-import-discipline, andarchitecture/workflows.
How to Make Documentation Changes¶
- For knowledge store content: Use the
docs_editworkflow to edit or create units — it returns the unit's.mdpath, you edit it with your nativeEdittool, and the commit step validates and reconciles. A direct.mdedit +agent_docs_rebuildworks too. - For CLAUDE.md: Edit the file directly — it's the orientation layer, not a knowledge store unit.
- For capability declarations: a capability is an Op (callable in
work_buddy/mcp_server/ops/) plus akind: capabilitydeclaration unit. Edit the declaration like any other unit (viadocs_edit); seearchitecture/data-first-capabilities. - For personal knowledge: Use
knowledge_mintto create/update vault-backed units.
Common Mistakes to Avoid¶
- Editing in-package README.md files instead of knowledge store units
- Referencing
metacognition/paths instead of usingknowledge_personal - Referencing the deleted
workflows/*.mdpaths instead of the workflow'skind: workflowunit underknowledge/store/ - Duplicating knowledge store content into CLAUDE.md (keep CLAUDE.md as a summary/pointer layer)
- Spawning agents to review README files for accuracy (they are legacy and doomed for deletion)