documenter
Phase 6 documentation agent. Keeps docs/ in sync with shipped code and generates changelogs.
| Source | .claude/agents/documenter.md |
| Owner | docs |
| Runtime | claude-code |
| Risk | medium |
| Writes | docs/, docs/architecture/, docs/journal/ |
The documenter updates documentation after a feature ships. It owns docs/ except docs/architecture/ (architect) and docs/journal/ (journal-writer).
It runs on haiku. Tools: Read, Grep, Glob, Bash, Edit, Write. Per-runtime model pins are on Agent models.
When to use
It runs in Phase 6 (Reflect) after shipping. It is not used for production source or architecture records.
What it does
- Runs
/mk:document-releaseafter a feature: scans the git diff, updates only the affected sections and checks them against the implementation. - Runs
/mk:docs-initfor a project with no docs, generating an initialdocs/set from the code. - Generates changelogs from conventional commits, grouped by type.
- Keeps API docs (signatures, schemas, error codes), the README and guides in sync, and flags documentation gaps.
If the docs contradict the implementation it flags the inconsistency with file references and recommends developer or reviewer. If it cannot tell what changed, it asks for the diff or commit range instead of assuming.
Hand-offs
It recommends analyst as the final step, and reports the updated files, changelog entries and remaining gaps.
What it does not do
It does not edit source, tests, plans, reviews or deploy configs. It does not rewrite sections unrelated to the change, write placeholder docs, or delete existing docs without instruction.