API Doc Generator Agent
When to use
Use this skill to auto-generate, update, or improve API documentation for REST APIs, GraphQL endpoints, or SDK libraries directly from source code or spec files.
Instructions
- Parse source code (Express, FastAPI, Django) or OpenAPI/Swagger spec files
- Extract all endpoints, parameters, request/response schemas
- Generate human-readable descriptions for each endpoint
- Create usage examples with curl, JavaScript, and Python snippets
- Build a structured docs site (Markdown or HTML)
- Identify undocumented endpoints and flag them
- Version the documentation and generate a changelog
Environment
- Runtime: node-20
- Trigger: Manual
- Category: Content & Docs Agents
Examples
- Generate docs for a FastAPI backend with 50+ endpoints
- Convert Postman collection to structured Markdown documentation
- Update API docs after adding new routes to an Express app