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

api-docs-generator

Skill by Mathews-Tom

Audits and enhances FastAPI and REST API documentation. It fills gaps in docstrings, parameter descriptions, examples, response codes and Pydantic models for developers who want more than auto-generated OpenAPI output.

  • Score 67
  • 345 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install api-docs-generator

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Mathews-Tom/armory /tmp/armory && mkdir -p ~/.claude/skills && cp -r /tmp/armory/skills/api-docs-generator ~/.claude/skills/api-docs-generator

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

Step-by-step: install api-docs-generator in Claude Code

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

About

The API Docs Generator skill audits FastAPI and REST API documentation for completeness. It checks endpoint descriptions, parameter descriptions, request examples, response models, error responses and tags. It is aimed at developers who want API docs that go beyond what auto-generated OpenAPI specs provide.

The workflow has four phases: inventory the endpoints and models, audit each endpoint against a checklist, generate enhanced docstrings, Pydantic examples and response codes, then output a coverage report with enhanced code. Calibration rules ask for behavior-focused descriptions, realistic example values and every error code documented. It needs access to the API source code and a known framework such as FastAPI, Flask, Django REST or Express.

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

What it can do

  • Endpoint auditChecks each endpoint for docstrings, parameter descriptions, request examples, response models, error responses and tags.
  • Docstring generationWrites endpoint descriptions that explain purpose, with a Raises section for documented errors.
  • Parameter metadataAdds description, example, ge, le and regex to Path, Query and Body parameters.
  • Model examplesAdds Field example values and model_config with json_schema_extra to Pydantic models.
  • Error response documentationDocuments 4xx and 5xx status codes with response schemas using the responses parameter.
  • Tag groupingGroups endpoints by resource or feature area.
  • Coverage reportOutputs tables of endpoint, parameter, response code and model documentation coverage with gaps by severity.

What you need

  • Access to the API source code, including route definitions and models
  • Framework identification: FastAPI, Flask, Django REST or Express

Try asking

  • Audit the documentation coverage of this FastAPI app's endpoints
  • Document the endpoints in this router with descriptions and error responses
  • Add realistic examples and Field descriptions to my Pydantic models

Good to know

  • Does not generate SDKs from OpenAPI; the source says that is a different tool.
  • For prototypes that will change significantly, the source suggests documenting after the API stabilizes.
  • If the API design itself is wrong, the source says to fix the API first.
  • For APIs with 50+ endpoints, it prioritizes undocumented and public endpoints and batches output by resource.

Security check

A

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

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

Alternatives to api-docs-generator

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

api-docs-generator: common questions

Does it work with frameworks other than FastAPI?

The source says to adapt the patterns for other frameworks and document the HTTP contract regardless of framework. It names Flask, Django REST and Express as examples.

What happens if my handlers have no type hints?

According to the source, it infers types from usage, documents the uncertainty and suggests adding type hints.

Does it generate client SDKs from an OpenAPI spec?

No. The source says SDK generation from OpenAPI is a different tool and the skill pushes back on that request.

How do I install api-docs-generator?

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

Is api-docs-generator free?

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

Is api-docs-generator safe to use?

It scores 67 of 100. Grades: maintenance A, licence A, quality B. 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 api-docs-generator?

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

api-docs-generator Install

Add to stack

Loading.