Auto Doc Generator
Analyzes specified code files or modules to auto-generate documentation including function signatures, parameter descriptions, return values, and usage examples.
/docs [file]Open source maintainer behind on documentation? Run /docs src/utils to auto-generate from signatures to examples
How It Works
Skill Code
Copy and paste into your CLAUDE.md to start using immediately.
How Auto Doc Generator Works
Doc Generator reads your source code files, extracts function signatures, class structures, and inline comments, then produces formatted API documentation with parameter descriptions, return types, and usage examples.
When to Use Auto Doc Generator
Invaluable when you need to document an existing codebase that has grown without documentation — it understands code intent from implementation patterns and generates docs that actually help users of your API.
Key Strengths
- Extracts documentation from code structure, not just comments
- Generates usage examples based on actual function signatures
- Supports multiple output formats (Markdown, JSDoc, etc.)
- Keeps docs in sync with code changes on each run