This one handles the full spectrum of code documentation, from inline docstrings to full API specs and dev portals. It walks through discovery, analysis, documentation, and validation with actual test commands (doctest, tsc, Redocly CLI) to make sure your examples aren't broken. Ships with reference guides for Google/NumPy/Sphinx docstrings, JSDoc, OpenAPI, and major frameworks like FastAPI, Django, NestJS, and Express. The workflow is methodical: it asks your format preference upfront, detects your stack, finds undocumented code, applies consistent formatting, validates everything compiles, then gives you a coverage report. Good if you need to document an API or clean up a codebase that's been accumulating tech debt, and you want the examples to actually work.

skills.sh installs
6K
GitHub stars
12.3K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/jeffallan/claude-skills
Categories
Backend & APIs, Documentation

More from jeffallan/claude-skills

All 66
1forcedotcom avataragentforce-generateforcedotcom/sf-skillsBuild, modify, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, modifies, optimizes, or asks about .agent files or a6Kskills.sh installs
2affaan-m avatarreact-patternsaffaan-m/eccReact 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management 5.9Kskills.sh installs
3dimillian avatarswiftui-liquid-glassdimillian/skillsImplement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing 5.9Kskills.sh installs
4software-mansion-labs avatarreact-native-best-practicessoftware-mansion-labs/skillsSoftware Mansion's best practices for production React Native and Expo apps on the New Architecture. MUST USE before writing, reviewing, or debugging ANY code i5.9Kskills.sh installs
5affaan-m avatarreact-performanceaffaan-m/eccReact and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills). Organi5.9Kskills.sh installs
6anthropics avatardeploy-checklistanthropics/knowledge-work-pluginsPre-deployment verification checklist. Use when about to ship a release, deploying a change with database migrations or feature flags, verifying CI status and a5.8Kskills.sh installs