Doc Generator doc-generator

Generate comprehensive, accurate API documentation from source code.

Use it when creating or updating API documentation, generating OpenAPI specs, or when users mention API docs, endpoints, or documentation.

Works in Claude, ChatGPT, Codex and more
Our test
5/10
tested Dec 6, 2026
GitHub stars
48k
luongnv89/claude-howto
Added by
0
members
Updated
Dec 6
commit 5609e68
Content
2 files
1 script · 3 KB
License
MIT
free to use

What our test found

The skill offers a useful documentation structure and a simple Python extractor, but it does not reliably derive complete endpoint details or generate OpenAPI specifications.

Request we tested it on“Document this Python function using the skill: `def get_user(user_id: str) -> dict: """Fetch a user by ID."""`”

Limits spotted

  • The extractor only finds Python functions named with `get_` or `post_` prefixes, not routes defined through common web frameworks.
  • It omits HTTP methods, paths, status codes, request and response schemas, authentication, and error handling.
  • It may output the literal `None` for missing docstrings and does not validate generated documentation.
  • The skill claims OpenAPI and SDK generation but provides no guidance or implementation for them.
  • The examples use placeholder data and credentials that could be mistaken for verified API behavior.
View on GitHub ↗
name: doc-generator
description: Generate comprehensive, accurate API documentation from source code. Use when creating or updating API documentation, generating OpenAPI specs, or when users mention API docs, endpoints, or documentation.

API Documentation Generator Skill

Generates

  • OpenAPI/Swagger specifications
  • API endpoint documentation
  • SDK usage examples
  • Integration guides
  • Error code references
  • Authentication guides

Documentation Structure

For Each Endpoint
## GET /api/v1/users/:id

### Description
Brief explanation of what this endpoint does

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| id | string | Yes | User ID |

### Response

**200 Success**

{ "id": "usr_123", "name": "John Doe", "email": "john@example.com", "created_at": "2025-01-15T10:30:00Z" }


**404 Not Found**

{ "error": "USER_NOT_FOUND", "message": "User does not exist" }


### Examples

**cURL**

curl -X GET "https://api.example.com/api/v1/users/usr_123" \ -H "Authorization: Bearer YOUR_TOKEN"


**JavaScript**

const user = await fetch('/api/v1/users/usr_123', { headers: { 'Authorization': 'Bearer token' } }).then(r => r.json());


**Python**

response = requests.get( 'https://api.example.com/api/v1/users/usr_123', headers={'Authorization': 'Bearer token'} ) user = response.json()


Last Updated: August 4, 2026 Claude Code Version: 2.1.220 Sources:

  • https://code.claude.com/docs/en/skills

Compatible Models: Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, Claude Haiku 4.5