code-documentation
Installation
SKILL.md
Code Documentation
Write documentation that stays close to the code, tells the next reader what to do, and remains maintainable by both humans and agents.
Core model
Documentation in this repo falls into five surfaces:
- Inline docs — docstrings, JSDoc/TSDoc, comments, types
- In-folder docs —
README.md,ARCHITECTURE.md,TESTS.md, and related files that explain one directory - Root instruction docs —
AGENTS.md,PLAN.md,SPEC.md,SOUL.md,PRINCIPLES.md,DESIGN.md - Operational runbooks — workflow-specific procedures in
runbooks/or a localRUNBOOK.md - Project docs —
docs/for references, audits, guides, memories, specs, and longer-form artifacts
Default rule: put the doc in the narrowest place that future readers will naturally look first.