
Api Documentation Writer
- 293 installs
- 237 repo stars
- Updated July 15, 2026
- onewave-ai/claude-skills
api-documentation-writer is an agent skill that generates comprehensive API documentation from code, schemas, and OpenAPI specs with examples and guides for developers shipping or maintaining HTTP APIs.
About
api-documentation-writer is a Documentation skill from onewave-ai/claude-skills that turns existing API source material into publishable reference docs. The skill ingests code, JSON schemas, and OpenAPI specifications to produce endpoint descriptions, request and response examples, authentication notes, and getting-started guides. It reduces manual doc drift when handlers change faster than markdown pages. Developers reach for api-documentation-writer when an API is implemented but docs are missing, outdated, or scattered across comments and spec files that need a unified developer-facing reference before partner integration or public launch.
- Claude Code skill
- Agent capability extension
- Developer productivity
- Workflow automation
- Easy integration
Api Documentation Writer by the numbers
- 293 all-time installs (skills.sh)
- +4 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #2,333 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/onewave-ai/claude-skills --skill api-documentation-writerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 293 |
|---|---|
| repo stars | ★ 237 |
| Last updated | July 15, 2026 |
| Repository | onewave-ai/claude-skills ↗ |
How do you generate API documentation from OpenAPI specs?
Generates comprehensive API documentation from code, schemas, and OpenAPI specs with examples and guides.
Who is it for?
Backend developers with implemented APIs, OpenAPI specs, or schemas who need unified reference documentation and examples before launch or partner onboarding.
Skip if: Marketing landing page copy or qualitative media meta-analysis across unrelated content corpora.
When should I use this skill?
An HTTP API has code or OpenAPI specs but lacks complete reference documentation, examples, or getting-started guides.
What you get
API reference pages, endpoint examples, authentication notes, and getting-started guides
- API reference documentation
- Request and response examples
- Getting-started guide
Files
API Documentation Writer
Generate comprehensive, developer-friendly API documentation.
Contents
references/documentation-structure.md— every section to cover (overview, auth, endpoints, errors, rate limits, SDKs, webhooks, GraphQL)references/output-template.md— canonical REST Markdown template with worked examplesreferences/best-practices.md— best practices, developer-experience tips, and the output quality checklist
Workflow
1. Gather API information. Determine the API type (REST, GraphQL, WebSocket, gRPC), authentication method (API key, OAuth, JWT), base URL and versioning strategy, available endpoints and their purposes, request/response formats, and any rate limiting or usage restrictions.
2. Build the documentation structure. Cover every section in references/documentation-structure.md, ordering the most common operations first.
3. Generate the output. Follow references/output-template.md for REST APIs; adapt to schema, query, mutation, and subscription examples for GraphQL. Replace all placeholders with realistic example data and show both request and response.
4. Document errors and rate limits. Include the standard error response format, common error codes, troubleshooting guidance, limits, headers to check, and how to handle 429 responses.
5. Provide code samples in multiple languages (curl, JavaScript, Python) and link SDKs, Postman collections, or OpenAPI specs where available.
6. Verify quality against the checklist in references/best-practices.md before delivering.
Example Triggers
- "Write API documentation for my REST endpoints"
- "Create OpenAPI spec for my API"
- "Document this GraphQL schema"
- "Generate developer docs for my webhook API"
- "Write authentication guide for API"
Documentation Best Practices and Quality Bar
Documentation Best Practices
- Start with a working example (copy-paste ready)
- Show both request and response
- Use realistic example data
- Include error cases
- Explain every parameter
- Provide code examples in multiple languages
- Use consistent formatting
- Add "Try it" interactive examples when possible
- Link related endpoints
- Include changelog and versioning
Developer Experience Tips
- Include a "Quick Start" with a working example in 60 seconds
- Provide a Postman collection or OpenAPI spec
- Show common use cases and workflows
- Include a troubleshooting section
- Add a testing/sandbox environment
- Provide SDKs with installation instructions
- Include rate limiting details upfront
- Show pagination patterns
- Explain filtering and sorting options
Output Quality Checklist
Ensure documentation:
- Starts with a working example
- Explains every parameter and field
- Shows realistic request/response examples
- Includes error handling
- Provides code samples in multiple languages
- Uses consistent formatting
- Is organized logically (most common operations first)
- Includes authentication clearly
- Covers edge cases and limitations
- Follows REST/GraphQL best practices
- Is scannable with good use of headers
- Includes interactive examples when possible
Complete Documentation Structure
Cover each section below when generating full API documentation.
Overview Section
- What the API does (1-2 sentences)
- Key capabilities
- Getting started checklist
- Support and resources
Authentication
- How to obtain credentials
- Where to include auth tokens
- Example authenticated request
- Token refresh process (if applicable)
Base URL and Versioning
- Production and sandbox URLs
- Version format (path, header, query param)
- Current version and changelog link
Endpoints (for each endpoint)
- HTTP method and path
- Description of what it does
- Path parameters
- Query parameters
- Request headers
- Request body schema
- Response codes and meanings
- Response body schema
- Example request (curl, JavaScript, Python)
- Example response (formatted JSON)
Error Handling
- Standard error response format
- Common error codes and meanings
- Troubleshooting guide
Rate Limiting
- Limits and windows
- Headers to check
- How to handle rate limit errors
SDKs and Libraries
- Official client libraries
- Community libraries
- Installation instructions
Webhooks (if applicable)
- Available webhook events
- Setup process
- Payload examples
- Security verification
GraphQL APIs
Adapt the structure to show:
- Schema definitions
- Query examples
- Mutation examples
- Subscription examples
- Variables and directives
REST API Documentation Template
Use this Markdown structure as the canonical output shape for a REST API. Replace bracketed placeholders with real values and realistic example data.
````markdown
[API Name] Documentation
Overview
[Brief description of what the API does]
Base URL: https://api.example.com/v1
Authentication: API Key via Authorization header
Quick Start
1. [Step 1] 2. [Step 2] 3. [Step 3]
Authentication
All requests require an API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYGet your API key from [dashboard link].
Endpoints
GET /resource
Retrieve a list of resources.
Parameters:
limit(optional, integer): Number of results (max 100, default 10)offset(optional, integer): Pagination offset (default 0)filter(optional, string): Filter by field
Request Example:
curl -X GET "https://api.example.com/v1/resource?limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"Response (200 OK):
{
"data": [
{
"id": "123",
"name": "Example",
"created_at": "2024-01-15T10:00:00Z"
}
],
"total": 100,
"limit": 10,
"offset": 0
}Response Codes:
200- Success400- Bad request (invalid parameters)401- Unauthorized (invalid API key)429- Rate limit exceeded500- Server error
POST /resource
Create a new resource.
Request Body:
{
"name": "string (required)",
"description": "string (optional)",
"metadata": "object (optional)"
}Request Example:
curl -X POST "https://api.example.com/v1/resource" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Resource",
"description": "A test resource"
}'Response (201 Created):
{
"id": "124",
"name": "My Resource",
"description": "A test resource",
"created_at": "2024-01-15T10:30:00Z"
}Error Handling
All errors follow this format:
{
"error": {
"code": "invalid_request",
"message": "The 'name' field is required",
"details": {
"field": "name"
}
}
}Common Error Codes:
invalid_request- Malformed requestauthentication_failed- Invalid API keynot_found- Resource doesn't existrate_limit_exceeded- Too many requestsinternal_error- Server error
Rate Limiting
Limits: 1000 requests per hour
Headers:
X-RateLimit-Limit: Total requests allowedX-RateLimit-Remaining: Requests remainingX-RateLimit-Reset: Timestamp when limit resets
When rate limited, the API returns a 429 status code.
Code Examples
JavaScript (Node.js)
const response = await fetch('https://api.example.com/v1/resource', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();Python
import requests
response = requests.get(
'https://api.example.com/v1/resource',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
data = response.json()Support
- Documentation: https://docs.example.com
- Support: support@example.com
- Status: https://status.example.com
````
Related skills
FAQ
What inputs does api-documentation-writer accept?
api-documentation-writer accepts source code, JSON schemas, and OpenAPI specifications. The skill generates comprehensive API reference pages, request and response examples, authentication notes, and getting-started guides from those artifacts.
When should developers use api-documentation-writer?
api-documentation-writer fits when an HTTP API is implemented but documentation is missing or outdated relative to handlers and schemas. Skip it for unrelated marketing copy or non-API content layout tasks.