with one click
docs
// Generates/updates README, API docs, architecture notes. Triggers: docs, README, API docs, architecture note, documentation.
// Generates/updates README, API docs, architecture notes. Triggers: docs, README, API docs, architecture note, documentation.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | docs |
| description | Generates/updates README, API docs, architecture notes. Triggers: docs, README, API docs, architecture note, documentation. |
| user-invocable | true |
| effort | high |
| argument-hint | [type: readme/api/architecture-note] |
| agent | documenter |
| context | fork |
| allowed-tools | Read, Write, Grep, Glob |
$ARGUMENTS
Generate or update documentation.
/docs [type] [target]
| Type | Description |
|---|---|
readme | Generate/update README |
api | API documentation |
architecture-note | Architecture note |
changelog | Generate changelog |
comments | Add code comments |
kb | Knowledge base entry (enforces KB structure) |
When creating or updating documents in the kb/ directory, follow the documentation-standards knowledge skill (auto-loaded). Key rules:
category: howto → kb/howto/)Full spec: see app/skills/documentation-standards/SKILL.md.
# [Project Name]
[Auto-generated description]
## Installation
[Detected from package manager]
## Usage
[Extracted from code/examples]
## API
[Extracted from code]
## License
[Detected]
# Architecture Note: [TITLE]
## Status
Proposed
## Context
[What is the issue?]
## Decision
[What was decided?]
## Consequences
[What are the results?]
## Date
[Today's date]
## Documentation Report
### Generated
- [file 1]
- [file 2]
### Updated
- [file 3]: [what changed]
### Skipped
- [file 4]: [reason]
### Next Steps
- [ ] Review generated docs
- [ ] Add missing details
- [ ] Commit changes
| Excuse | Why It's Wrong |
|---|---|
| "The code is self-documenting" | Code shows how, not why — decisions, constraints, and context need prose |
| "Nobody reads docs anyway" | People don't read bad docs — good docs are the first thing consulted |
| "I'll document it when it's stable" | Unstable code needs docs most — document intent so others can contribute |
| "Comments get stale" | That's an argument for maintaining docs, not skipping them |
| "The tests are the documentation" | Tests verify behavior but don't explain architecture, trade-offs, or setup |
Documentation settings in:
.claude/settings.jsonGenerated documentation should be reviewed. AI may miss context or make assumptions.
Run the bundled script to audit documentation coverage and find gaps:
python3 ${CLAUDE_SKILL_DIR}/scripts/doc-inventory.py .
If the inventory script reports doc_coverage_percent < 50 and the project has multiple modules, use Agent Teams for parallel documentation:
Create an agent team for documentation:
- Teammate 1 (documenter): "Document the [module-1] directory. Generate docstrings for all public functions." Use Sonnet.
- Teammate 2 (documenter): "Document the [module-2] directory. Generate docstrings for all public functions." Use Sonnet.
- Teammate 3 (documenter): "Generate README sections: installation, usage, API reference." Use Opus.
Teammates should NOT overlap — each owns their assigned scope.
/council for multi-perspective analysis first/explore to understand structure before documenting/write-a-prd for structured product requirements/analyze for coverage gaps