← ClaudeAtlas

api-documentation-generatorlisted

Generates OpenAPI-compatible documentation for REST API endpoints from code or route definitions.
Notysoty/openagentskills · ★ 9 · API & Backend · score 80
Install: claude install-skill Notysoty/openagentskills
# API Documentation Generator ## What this skill does This skill reads REST API route handlers (Express, FastAPI, Go net/http, Rails, Django, or any framework) and generates complete OpenAPI 3.0 YAML documentation. It extracts paths, HTTP methods, path/query/body parameters, response shapes, and error codes, then writes properly structured YAML with example request and response bodies. The output can be loaded directly into Swagger UI, Redoc, or any OpenAPI-compatible tool. Use this when you have undocumented API code and need to produce accurate, usable API documentation quickly. ## How to use ### Claude Code / Cline Copy this file to `.agents/skills/api-docs-generator/SKILL.md` in your project root. Then point the agent at your routes file and ask: - *"Use the API Documentation Generator skill on `server/routes.ts`."* - *"Generate OpenAPI docs for all routes in `src/api/` using the API Documentation Generator skill."* The agent will read the route files and any referenced handler functions to extract parameter and response shapes. ### Cursor Add the "Prompt / Instructions" section to your `.cursorrules` file. Open your routes file in the editor and ask Cursor to generate the OpenAPI YAML. ### Codex Paste your route definitions and handler code into the chat along with the instructions below. Include type definitions or schema files if they exist — they help Codex produce accurate request/response schemas. ## The Prompt / Instructions for the Agent When asked t