api-documentation-generator

Solid

Generates OpenAPI-compatible documentation for REST API endpoints from code or route definitions.

API & Backend 9 stars 1 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
33
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
Notysoty
Repository
Notysoty/openagentskills
Created
5 months ago
Last Updated
6 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category