Doc writer
Documentation templates and standards: README structure, API reference format, changelog (Keep a Changelog), and comment guidelines. Use when creating or updating documentation. Loaded automatically by the doc-writer agent.From its SKILL.md
npx -y skills add claude-world/director-mode-lite --skill doc-writerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
2.9 KB, 637 tokens by cl100k_base, as published. Nobody here has run it
Doc Writer Skill
Director Mode Lite - Documentation Specialist
Documentation Types
1. README.md
Essential sections:
# Project Name
Brief description (1-2 sentences)
## Quick Start
\`\`\`bash
npm install # Installation
npm start # Run
\`\`\`
## Features
- Feature 1
## Documentation
- [Getting Started](docs/getting-started.md)
- [API Reference](docs/api.md)
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)
## License
MIT
2. API Documentation
For each endpoint/function:
## `functionName(param1, param2)`
Brief description.
**Parameters:**
- `param1` (string): Description
- `param2` (number, optional): Description. Default: `10`
**Returns:**
- `ResultType`: Description
**Example:**
\`\`\`javascript
const result = functionName('hello', 5);
// => { success: true }
\`\`\`
**Throws:**
- `ValidationError`: When param1 is empty
For REST endpoints, document the method and path, request headers/body, success and error responses, and a runnable curl example.
3. Code Comments
Comment complex algorithms, non-obvious business logic, workarounds (and why), and TODOs with context. Do NOT comment self-explanatory code or restate what the code already says.
// Calculate compound interest using continuous compounding formula
// This matches the bank's calculation method (see SPEC-123)
const interest = principal * Math.exp(rate * time);
4. CHANGELOG.md
Follow Keep a Changelog format:
# Changelog
## [1.2.0] - 2025-01-15
### Added
- New feature X
### Changed
- Improved performance of Y
### Fixed
- Bug in Z
### Removed
- Deprecated API endpoint
5. Architecture Docs
Cover the system overview, component relationships, data flow, and design decisions with their rationale.
Documentation Standards
Style
- Use active voice; keep sentences concise
- Define acronyms on first use; use consistent terminology
- Write for scanning: H1 for the title, H2/H3 for sections, lists, and bold key terms
Code Examples
- Make examples complete and runnable; include expected output
- Show both basic and advanced usage; handle errors
Principles
- Keep it current: update docs in the same PR as the code change
- Write for the reader: assume minimal context, lead with the common case
- Test your docs: follow your own instructions; verify every example runs
Output Format
## Documentation Update
### Files Created/Updated
- `README.md` - Added Quick Start section
### Summary
[What documentation was added/changed and why]
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 1 of the 12 instructions most readme changelog skills give in 637 tokens
Counted across 446 of the 460 authors here whose files we hold, read 2026-09-06
- Follow Keep a Changelog formathere, and in 24 of 446
- Collect commits since the last git tagin 15 of 446, across 13 files
- Omit empty sectionsin 14 of 446
- Put breaking changes first with migration stepsin 14 of 446
- Include migration guidance for breaking changesin 11 of 446, across 10 files
- Categorize commits by conventional commit prefixin 11 of 446
- Mark breaking changes prominentlyin 10 of 446
- Prepend the new entry to CHANGELOG.mdin 9 of 446
- Highlight breaking changes with migration notesin 8 of 446, across 7 files
- Classify changes into Keep a Changelog categoriesin 8 of 446, across 7 files
- Group related commits into single entriesin 8 of 446
- Write the changelog from commitsin 8 of 446
Said here and by no other author read
- Comment complex algorithms and non-obvious business logic
- Verify every example runs
- Use active voice and concise sentences
- Write for scanning with headings, lists, and bold terms
- Include a runnable curl example for REST endpoints
- Cover data flow and design decisions with rationale
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.