documentation-plugin/skills/docs-generate/SKILL.md
Generate or update docs from code annotations, docstrings, and git history. Use when wanting API reference, README from code, or CHANGELOG from conventional commits.
npx skillsauth add laurigates/claude-plugins docs-generateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Use this skill when... | Use docs-sync instead when... | |---|---| | Generating fresh API reference docs from docstrings, type signatures, and module structure | Reconciling existing skill/command/agent catalogs with the current codebase | | Updating README.md from code analysis (installation steps, feature list, badges) | Fixing wrong counts or stale entries in CLAUDE.md / README catalogs | | Producing a CHANGELOG from conventional-commit history | Preparing a service teardown checklist (use docs-decommission) | | Building documentation pages that will be served via GitHub Pages or similar | Converting Markdown to print-ready PDF (use docs-latex) |
find . -maxdepth 1 \( -name 'pyproject.toml' -o -name 'package.json' -o -name 'Cargo.toml' -o -name 'go.mod' \)find . -maxdepth 1 \( -name 'README.md' -o -type d -name 'docs' \)find . -type f \( -name "*.py" -o -name "*.ts" -o -name "*.js" \)find . -type f -name "*.py" -not -path '*/node_modules/*' -not -path '*/.claude/worktrees/*'--api: Generate API reference documentation--readme: Update README.md based on code analysis--changelog: Update CHANGELOG.md from git historyDelegate this task to the documentation agent.
Use the Agent tool with subagent_type: documentation to generate or update project documentation. Pass all the context gathered above and the parsed parameters to the agent.
The documentation agent should:
Analyze codebase:
Generate requested documentation:
If --api:
If --readme:
If --changelog:
If no flags: Generate all documentation
Follow documentation standards:
Output summary:
Provide the agent with:
The agent has expertise in:
For large projects, spawn teammates for parallel documentation generation:
| Teammate | Focus | Value | |----------|-------|-------| | API docs teammate | Extract and generate API reference | Parallel with README generation | | README teammate | Update project README and guides | Parallel with API docs | | Changelog teammate | Generate changelog from git history | Independent of other doc tasks |
This is optional — the skill works with a single agent for most projects.
development
Debug HTTP APIs: trace requests, inspect headers. Use when a request fails: check status first.
documentation
Render architecture diagrams from text sources. Use when documenting system topology.
tools
Inspect JSON payloads and extract nested fields. Use when parsing API responses.
tools
--- name: no-description allowed-tools: Read --- # No Description This skill has no description and must be dropped with a warning.