
API Documentation Generator & Refiner
Generate fully-formatted API documentation with examples, error guides, and version tracking
What You Can Do
This skill transforms raw API specifications into production-ready documentation. You provide endpoint schemas, request/response examples, and error conditions—Claude generates comprehensive docs with consistent formatting, complete error guides, and versioning annotations. Output is immediately usable in your API reference or developer portal.
Features
Parse OpenAPI 3.0 and Swagger 2.0 specs to automatically generate endpoint documentation with zero manual formatting
Apply unified templates across all endpoints, parameters, and examples for professional, searchable documentation
Generate error code tables with HTTP status codes, descriptions, causes, and client-side solutions
Annotate changes between API versions, highlight breaking changes, and create migration guides
Create realistic, working examples in multiple languages (cURL, Python, JavaScript, Go)
Build searchable tables for all request parameters, query strings, headers, and response fields
Generate step-by-step OAuth2, API Key, JWT, and mutual TLS authentication documentation
Create clear rate limit policies, quota documentation, and guidance on handling 429 responses
Example Output
Sample Generated Documentation
POST /api/v1/messages
Send a message to a user.
Authorization: Bearer token required
Request Body:
{
"recipient_id": "user_123",
"content": "Hello world",
"priority": "normal"
}
Response (201 Created):
{
"id": "msg_456",
"status": "sent",
"timestamp": "2026-08-01T14:30:00Z"
}
Error Reference
| Error Code | HTTP Status | Meaning | Solution |
|---|---|---|---|
| INVALID_RECIPIENT | 400 | Recipient user not found | Check recipient_id exists |
| RATE_LIMITED | 429 | Too many requests | Wait 60 seconds before retrying |
| AUTH_REQUIRED | 401 | Missing authorization header | Add Authorization: Bearer YOUR_TOKEN |
Version Compatibility Matrix
| Feature | v1.0 | v2.0 | v2.1 |
|---|---|---|---|
| Messages API | ✓ | ✓ | ✓ |
| Message Threading | ✗ | ✓ | ✓ |
| Read Receipts | ✗ | ✗ | ✓ |
| Breaking Changes | — | Required auth header | — |
What's Included
- OpenAPI/Swagger spec parser: Analyze and extract endpoint definitions, schemas, and metadata from spec files
- Markdown documentation templates: Pre-built templates for endpoint docs, error guides, and authentication flows
- Error code reference generator: Transform error definitions into searchable reference tables with solutions
- Version compatibility builder: Create matrices showing which features exist in which API versions
- Example request/response formatter: Generate working code examples in multiple programming languages
- Authentication guide templates: Pre-written guides for OAuth2, API Keys, JWT, and other auth methods
Who It's For
- Backend API developers
- Technical documentation writers
- DevOps and platform engineers
- API product managers
- Solutions architects
Best For
- Documenting REST API endpoints
- Creating OpenAPI/Swagger documentation
- Building API reference guides
- Generating error handling documentation
- Managing API versioning documentation







