Writing Documentation¶
All files under docs/ follow the standard defined in
standards/universal/documentation.md. This page explains how to apply it.
Frontmatter¶
Every doc file must open with this block:
---
title: "Human-readable title"
section: skills
skills-affected: [skill-name-1, skill-name-2]
last-updated: YYYY-MM-DD
---
section must be exactly one of: getting-started, user-guide, skills, standards, tools, contributing.
skills-affected is the key that keeps docs in sync with code. List every skill file
name (without .md), tool name, or standard name that the doc covers. When any of those
files changes, /update-docs will find and update this doc automatically.
Writing Rules¶
- Write in second person, imperative voice: "Run this command", not "The user should run"
- Include one concrete example per concept — never introduce a concept without showing it
- No placeholders:
TBD,TODO, or empty sections cause/standards-checkto block the PR - One level of list nesting maximum
- Use code blocks for all commands, file paths, config snippets, and output
- Write skill names in backtick code:
`/implement`not "the implement skill" - Stay within scope: cover only what
skills-affecteddeclares
Freshness¶
A doc becomes stale when any file in skills-affected is modified after last-updated.
Stale docs block PRs.
- Automatic:
/update-docsruns at the end of every/implementticket and updateslast-updatedfor any docs it touches. - Manual: if you edit a skill or standard directly (outside
/implement), updatelast-updatedin the corresponding doc before committing. For example, changelast-updated: 2026-01-15tolast-updated: 2026-04-03in the doc's frontmatter before committing.
Adding a New Doc¶
When a new skill, standard, or tool is created:
- Create the doc file at the correct path under
docs/(see Where Docs Live below) - Add complete frontmatter including
skills-affectedpointing at the new item - Write content following the rules above
- Add a link to
docs/README.mdunder the correct section
If you use /implement to add the skill, the /update-docs step will create a stub doc
automatically — you only need to fill in the content and remove the needs-content: true
flag before merging.
Where Docs Live¶
The paths below are the target structure. Create the directory if it does not exist yet.
| Content | Path |
|---|---|
| Install, first session, concepts | docs/getting-started/ |
| Memory, routing, standards, multi-project, optional setup | docs/user-guide/ |
| All skills grouped by category | docs/skills/ |
| Universal and stack-specific standards | docs/standards/ |
| Python tools | docs/tools/README.md |
| Contributing guides | docs/contributing/ |