API Documentation Generator
Generate production-ready API documentation from endpoint descriptions. Outputs OpenAPI 3.0, markdown reference docs, and SDK quickstart guides.
Usage
Describe your API endpoints and this skill generates:
- OpenAPI 3.0 spec — machine-readable, import into Swagger/Postman
- Markdown reference — human-readable endpoint docs with examples
- SDK quickstart — copy-paste integration guide for developers
Instructions
When the user describes API endpoints (routes, methods, parameters, responses):
- Generate a complete OpenAPI 3.0 YAML specification
- Create markdown documentation with:
- Authentication section
- Each endpoint: method, path, description, parameters table, request/response examples
- Error codes reference
- Rate limiting notes
- Generate a quickstart guide with curl examples and common language snippets (Python, JavaScript, Go)
Output Format
# openapi.yaml — full OpenAPI 3.0 spec
# API Reference — human-readable docs
# Quickstart Guide — integration examples
Quality Standards
- Every endpoint must have request AND response examples
- Use realistic sample data, not "string" or "example"
- Include error responses (400, 401, 403, 404, 500)
- Document pagination, filtering, and sorting patterns
- Note breaking changes and versioning strategy
Tips
- Paste your route files or controller code for automatic extraction
- Works with REST, GraphQL (schema-first), and gRPC (proto-first)
- Combine with CI/CD to auto-generate docs on every deploy
Built by AfrexAI — AI-powered business tools for teams that ship fast.
1---2name: afrexai-api-docs3description: API Documentation Generator4---5# API Documentation Generator67Generate production-ready API documentation from endpoint descriptions. Outputs OpenAPI 3.0, markdown reference docs, and SDK quickstart guides.89## Usage1011Describe your API endpoints and this skill generates:12131. **OpenAPI 3.0 spec** — machine-readable, import into Swagger/Postman142. **Markdown reference** — human-readable endpoint docs with examples153. **SDK quickstart** — copy-paste integration guide for developers1617## Instructions1819When the user describes API endpoints (routes, methods, parameters, responses):20211. Generate a complete OpenAPI 3.0 YAML specification222. Create markdown documentation with:23 - Authentication section24 - Each endpoint: method, path, description, parameters table, request/response examples25 - Error codes reference26 - Rate limiting notes273. Generate a quickstart guide with curl examples and common language snippets (Python, JavaScript, Go)2829### Output Format3031```yaml32# openapi.yaml — full OpenAPI 3.0 spec33```3435```markdown36# API Reference — human-readable docs37```3839```markdown40# Quickstart Guide — integration examples41```4243### Quality Standards44- Every endpoint must have request AND response examples45- Use realistic sample data, not "string" or "example"46- Include error responses (400, 401, 403, 404, 500)47- Document pagination, filtering, and sorting patterns48- Note breaking changes and versioning strategy4950## Tips51- Paste your route files or controller code for automatic extraction52- Works with REST, GraphQL (schema-first), and gRPC (proto-first)53- Combine with CI/CD to auto-generate docs on every deploy5455---5657Built by [AfrexAI](https://afrexai-cto.github.io/context-packs/) — AI-powered business tools for teams that ship fast.