document
Installation
SKILL.md
/document - Focused Documentation Generation
Generate focused documentation for specific components, functions, APIs, and features. This skill is runtime-neutral and works in Claude Code, OpenCode, and Codex.
Arguments
/document [what to document] [format: inline/api/guide/external]
The argument may be a file path, function name, feature area, or description of what to document. An optional format hint (inline, api, guide, external) controls the output style. If omitted, infer the best format from context.
Behavioral Flow
- Analyze: Examine target component structure, interfaces, and functionality
- Identify: Determine documentation requirements and target audience context
- Generate: Create appropriate documentation content
- Format: Apply consistent structure and organizational patterns
- Integrate: Ensure compatibility with existing project documentation ecosystem