Back to Skills

api-documenter

Auto-generate API documentation from code and comments. Use when API endpoints change, or user mentions API docs. Creates OpenAPI/Swagger specs from code. Triggers on API file changes, documentation requests, endpoint additions.

520stars120forksUpdated 2/18/2026

Security Assessment

Safe(100/100)
Security Score100/100

About api-documenter

The API Documenter skill automates the generation of API documentation directly from code and comments. It solves the problem of maintaining up-to-date API documentation, especially when API endpoints are frequently added or modified. Developers no longer need to manually write or update documentation every time the API changes, saving both time and effort while ensuring consistency and accuracy in the documentation.

This skill can automatically generate OpenAPI/Swagger specifications for a variety of frameworks, including Express.js, FastAPI, Django REST, Spring Boot, Gin, and Rails. It supports multiple formats such as OpenAPI 3.0 (JSON/YAML), Swagger 2.0, API Blueprint, and RAML. Additionally, it extracts essential information such as endpoint descriptions, request/response schemas, authentication requirements, and error responses, all of which are included in the generated documentation. The tool is triggered by changes to API-related files, such as route files, controller files, or any mention of API documentation requests.

This skill is highly useful for backend developers, DevOps teams, and technical writers who need to keep API documentation up to date in fast-moving projects. It ensures that the documentation evolves alongside the codebase, reducing human errors and improving collaboration across development teams. Ideal users include teams working with microservices, RESTful APIs, or GraphQL, where keeping documentation accurate and current is critical.

FAQ

How does the API Documenter skill know when to generate documentation?

The skill is triggered by changes to API-related files, such as route files or controller files, and when a user mentions API documentation, OpenAPI, or Swagger. It also generates documentation when new API endpoints are added or modified.

Which frameworks does the API Documenter skill support?

It automatically recognizes and works with frameworks like Express.js (Node.js), FastAPI (Python), Django REST (Python), Spring Boot (Java), Gin (Go), and Rails (Ruby).

Can the generated documentation be customized?

While the documentation is auto-generated, the skill does suggest additions to comments (like missing information or documentation enhancements). However, users may still need to manually adjust specific details depending on their project requirements.

What formats does the API Documenter skill support for documentation output?

The skill supports generating documentation in OpenAPI 3.0 (JSON/YAML), Swagger 2.0, API Blueprint, and RAML formats.

Does the skill work with all code comments, or only specific formats?

The skill extracts documentation from various code comments, including JSDoc comments, Python docstrings, JavaDoc, and inline comments with decorators.

All Files

2 files
SKILL.md5.7 KB
View
README.md0.7 KB
View

Install api-documenter

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill