---
name: API Documentation Generator
slug: api-documentation-generator
category: Writing
description: API Documentation Generator creates accurate API documentation from source code, including OpenAPI specifications, endpoint references, SDK examples, and integration guides. Use it when creating or updating API docs, generating OpenAPI specs, or documenting endpoints.
github: "https://github.com/luongnv89/claude-howto/tree/main/03-skills/doc-generator"
language: Python
stars: 41000
forks: 5015
install: "npx degit https://github.com/luongnv89/claude-howto/tree/main/03-skills/doc-generator ~/.claude/skills/doc-generator"
installs_to: ~/.claude/skills/doc-generator
source_path: 03-skills/doc-generator/SKILL.md
collection_size: 25
category_size: 1012
collection_url: "https://dirskills.com/collections/luongnv89/claude-howto"
added: 2026-08-13T07:37:00.205Z
last_synced: 2026-08-13T07:37:00.205Z
canonical_url: "https://dirskills.com/skills/api-documentation-generator"
---

# API Documentation Generator

API Documentation Generator creates accurate API documentation from source code, including OpenAPI specifications, endpoint references, SDK examples, and integration guides. Use it when creating or updating API docs, generating OpenAPI specs, or documenting endpoints.

**Install:**

```bash
npx degit https://github.com/luongnv89/claude-howto/tree/main/03-skills/doc-generator ~/.claude/skills/doc-generator
```

## README

# 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

````markdown
## 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**
```json
{
  "id": "usr_123",
  "name": "John Doe",
  "email": "john@example.com",
  "created_at": "2025-01-15T10:30:00Z"
}
```

**404 Not Found**
```json
{
  "error": "USER_NOT_FOUND",
  "message": "User does not exist"
}
```

### Examples

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

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

**Python**
```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, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
