From rhombus-developer
Generate API documentation from source code, including endpoint descriptions, request/response schemas, and usage examples. Use this skill when the user asks to document an API, generate API docs, create endpoint documentation, or write OpenAPI/Swagger specs. Also trigger on: API documentation, document endpoints, REST docs, API reference, endpoint docs, swagger, openapi spec, API schema, route documentation, document this API, generate docs for routes.
npx claudepluginhub rhombussystems/claude-code-plugins --plugin rhombus-developerThis skill is limited to using the following tools:
Generate clear, complete API documentation from source code.
Verifies tests pass on completed feature branch, presents options to merge locally, create GitHub PR, keep as-is or discard; executes choice and cleans up worktree.
Guides root cause investigation for bugs, test failures, unexpected behavior, performance issues, and build failures before proposing fixes.
Writes implementation plans from specs for multi-step tasks, mapping files and breaking into TDD bite-sized steps before coding.
Share bugs, ideas, or general feedback.
Generate clear, complete API documentation from source code.
**/routes/**, **/controllers/**, app.get/post/put/delete**/*router*, @app.get/post/put/delete**/urls.py, **/views.py**/*Controller*, @GetMapping/@PostMappingFor each endpoint, document:
GET /api/v1/users/:idGenerate documentation in Markdown:
# API Reference
## Authentication
<describe auth mechanism>
## Endpoints
### <Resource Name>
#### <METHOD> <path>
<description>
**Authentication:** Required / Optional / None
**Parameters:**
| Name | In | Type | Required | Description |
|------|-----|------|----------|-------------|
**Request Body:**
```json
{
"field": "type — description"
}
Response (200):
{
"field": "type — description"
}
Errors:
| Status | Description |
|---|
Example:
curl -X METHOD https://api.example.com/path \
-H "Authorization: Bearer <token>" \
-d '{"field": "value"}'
### 4. Additional Output Options
If the user asks for OpenAPI/Swagger format, output a valid OpenAPI 3.0 YAML spec instead of Markdown.
## Guidelines
- Infer descriptions from function names, comments, and logic — don't leave fields as "TODO"
- Include all status codes the endpoint can return (check error handling)
- Group endpoints by resource/domain
- Note any rate limiting, pagination, or versioning patterns
- If types are available (TypeScript, Python type hints), use them for schemas