Document Single Component
Generate or update documentation for a specific source file.
Usage
/doc-component src/components/button.rs
/doc-component Button
Accepts either a file path or a component/type name (will search for it).
Process
- Locate: Find the source file (search if name given)
- Read: Parse the source thoroughly
- Check existing: Read current doc if it exists
- Generate: Write complete documentation following
docsagent style - Output: Write to corresponding location in
docs/
Interactive Mode
If called without arguments, prompt for:
- Component name or path
- Whether to overwrite existing docs or merge
Does NOT Update State
This skill doesn't update docs-state.json since it's for targeted work, not bulk updates. Run /docs afterward if you want to mark the codebase as documented.