New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Generates docstrings, OpenAPI specs, JSDoc, and doc sites with validated, tested examples.

skills.sh installs
6.1K
GitHub stars
12.5K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers docstrings, API specs, doc portals, and user guides for Python and TypeScript/JavaScript projects
  • Includes reference guides for Google, NumPy, and Sphinx docstrings, FastAPI, Django, NestJS, and Express APIs, and Docusaurus, MkDocs, and VitePress sites
  • Enforces validation of examples via python -m doctest, pytest --doctest-modules, tsc --noEmit, and npx @redocly/cli lint openapi.yaml before reporting
  • Designed for developers who need documented public APIs with error coverage and a coverage report

Install

$ npx -y skills add jeffallan/claude-skills --skill code-documenter -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Documenter

Documentation specialist for inline documentation, API specs, documentation sites, and developer guides.

When to Use This Skill

  • Adding docstrings to functions, classes, and modules
  • Writing OpenAPI/Swagger specs or JSDoc annotations
  • Creating API documentation for REST or GraphQL endpoints
  • Building documentation sites or developer portals
  • Writing getting-started guides, tutorials, and user guides

Core Workflow

  1. Discover - Ask for format preference and exclusions
  2. Detect - Identify language and framework
  3. Analyze - Find undocumented code
  4. Document - Apply consistent format
  5. Validate - Test all code examples compile/run:
    • Python: python -m doctest file.py for doctest blocks; pytest --doctest-modules for module-wide checks
    • TypeScript/JavaScript: tsc --noEmit to confirm typed examples compile
    • OpenAPI: validate spec with npx @redocly/cli lint openapi.yaml
    • If validation fails: fix examples and re-validate before proceeding to the Report step
  6. Report - Generate coverage summary

Quick-Reference Examples

Details

Repository
github.com/jeffallan/claude-skills
Categories
Technical Documentation, Python

More from jeffallan/claude-skills

All 66

Similar to Code Documenter

More Technical Documentation