code-documenter

Installation
Summary

Generates and validates technical documentation across docstrings, API specs, and developer guides.

  • Supports multiple docstring formats (Google, NumPy, Sphinx for Python; JSDoc for TypeScript) and API specification standards (OpenAPI, AsyncAPI, gRPC)
  • Includes validation workflows for each format: doctest/pytest for Python, TypeScript compilation checks, and Redocly linting for OpenAPI specs
  • Covers inline code documentation, interactive API portals, documentation site generation, and user guides with tested code examples
  • Detects language and framework automatically to apply correct documentation strategy for FastAPI, Django, NestJS, Express, and GraphQL
SKILL.md

Code Documenter

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

When to Use This Skill

Applies to any task involving code documentation, API specs, or developer-facing guides. See the reference table below for specific sub-topics.

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
Related skills

More from jeffallan/claude-skills

Installs
2.4K
GitHub Stars
9.0K
First Seen
Jan 20, 2026