documentation-writer
2
总安装量
2
周安装量
#72935
全站排名
安装命令
npx skills add https://github.com/ai-engineer-agent/ai-engineer-skills --skill documentation-writer
Agent 安装分布
trae
2
gemini-cli
2
claude-code
2
codex
2
kiro-cli
2
cursor
2
Skill 文档
Documentation Writer
Generate or improve documentation for $ARGUMENTS:
Process
- Read the codebase â understand what exists before documenting
- Identify the audience â developers? users? operators?
- Follow existing doc style in the project
- Write documentation following the guidelines below
README Structure
A good README contains:
- Title + one-line description â what this project does
- Quick start â how to get running in < 5 commands
- Installation â prerequisites, install steps
- Usage â common use cases with code examples
- Configuration â environment variables, config files
- API Reference â link or inline for library projects
- Contributing â how to contribute, dev setup
- License
Writing Style
- Write in present tense, active voice
- Use second person (“you”) for instructions
- Use code blocks with language identifiers
- One sentence per line in source (better diffs)
- Use headings hierarchically (don’t skip levels)
- Include copy-pasteable commands (not pseudo-code)
- Show expected output where helpful
API Documentation
- Document every public function/method/endpoint
- Include parameter types, descriptions, defaults
- Show at least one usage example
- Document error responses/exceptions
- Group by feature area, not alphabetically
Architecture Documentation
- Start with a high-level overview diagram
- Describe each component’s responsibility
- Document data flow between components
- Note key design decisions and trade-offs
- List external dependencies and why they were chosen
Rules
- Don’t document the obvious â focus on “why” and “how to use”
- Keep docs close to code â prefer doc comments over separate files
- Use diagrams (Mermaid, ASCII) for complex flows
- Update docs when changing the code they describe