Claude Code Plugins

Community-maintained marketplace

Feedback

Generate or update API documentation. Tracks changes since last documentation run using commit markers.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name docs
description Generate or update API documentation. Tracks changes since last documentation run using commit markers.

Generate Documentation

Updates API documentation for source files that changed since the last documentation run.

Process

  1. Check state: Read .claude/data/docs-state.json for last_documented_commit
  2. Find changes: Run git diff <last_commit>..HEAD --name-only -- src/ to get changed files
  3. Filter: Only process files that define public APIs (components, modules, types)
  4. Generate: For each changed file, create or update corresponding doc in docs/
  5. Update state: Write current HEAD commit hash to docs-state.json

State File

.claude/data/docs-state.json:

{
  "last_documented_commit": "abc123def",
  "last_run": "2024-01-15T10:30:00Z"
}

If missing, document everything and create it.

Arguments

  • --full: Ignore state, regenerate all documentation
  • --dry-run: Show what would be documented without writing

Output Structure

Mirror source structure under docs/:

src/components/button.rs  →  docs/components/button.md
src/git/repository.rs     →  docs/git/repository.md

Documentation Style

Use the docs agent guidelines. Each doc should have:

  • Overview with basic example
  • Topics grouped by purpose
  • See Also for related items

After Running

Report:

  • Files documented (new)
  • Files updated
  • Files unchanged
  • Current commit hash stored