Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

code-documenter

Skill by Jeffallan

Generates, formats and validates docstrings, JSDoc, OpenAPI and Swagger specs, API docs and user guides. Built for developers who need accurate, tested technical documentation for Python and TypeScript or JavaScript code.

  • Score 91
  • 13k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install code-documenter

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Jeffallan/claude-skills /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/skills/code-documenter ~/.claude/skills/code-documenter

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install code-documenter in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Code Documenter is an agent skill that generates, formats and validates technical documentation. It covers Python docstrings in Google and NumPy styles, JSDoc annotations, OpenAPI and Swagger specs, API docs for FastAPI, Django, NestJS and Express, and documentation sites and user guides.

The skill follows a workflow: it asks for format preference and exclusions, detects the language and framework, finds undocumented code, documents it, tests code examples, and reports coverage. Validation uses doctest, pytest, tsc and the Redocly CLI. The skill also loads reference files on demand for specific styles, frameworks and doc systems. It is aimed at developers who need docstrings, API specs, or guides kept accurate and maintainable.

Written from the project's SKILL.md and checked against it.

What it can do

  • Python docstringsWrites Google, NumPy and Sphinx style docstrings with parameters, returns and errors.
  • JSDoc annotationsAdds JSDoc annotations with types, parameters, return values, errors and examples.
  • OpenAPI and Swagger specsWrites OpenAPI and Swagger specs and lints them with the Redocly CLI.
  • Framework API docsDocuments API endpoints for FastAPI, Django, NestJS and Express.
  • Documentation sitesBuilds doc sites with Docusaurus, MkDocs or VitePress.
  • Guides and tutorialsWrites getting started guides, tutorials, troubleshooting pages and FAQs.
  • Example testingChecks code examples with doctest, pytest and tsc before reporting.
  • Coverage reportProduces a coverage summary of the documentation it generates.

What you need

  • Python, for doctest and pytest checks
  • Node.js, for tsc and npx Redocly CLI checks

Try asking

  • Add Google-style docstrings to all public functions in this Python module
  • Write an OpenAPI spec for this REST API and lint it
  • Create a getting started guide for this library

Good to know

  • Asks for format preference before starting, so output depends on that answer.
  • Validation depends on doctest, pytest, tsc and the Redocly CLI being available.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/code-documenter/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to code-documenter

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

code-documenter: common questions

Which docstring styles does it support?

The source names Google, NumPy and Sphinx docstring styles. It asks which format to use before documenting code.

Does it check that code examples work?

Yes. The source says it tests examples with doctest, pytest, tsc or the Redocly CLI, and fixes failures before reporting.

Which frameworks does it cover for API docs?

The source lists FastAPI, Django, NestJS and Express, and mentions OpenAPI 3.0 and 3.1 in its knowledge reference.

How do I install code-documenter?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is code-documenter free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is code-documenter safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to code-documenter?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

code-documenter Install

Add to stack

Loading.