---
name: API Documentation Generator
slug: api-documentation-generator-2
category: Writing
description: API Documentation Generator creates comprehensive, accurate API documentation from source code. Use it to generate OpenAPI specifications, endpoint docs, SDK usage examples, and integration guides.
github: "https://github.com/luongnv89/claude-howto/tree/main/uk/03-skills/doc-generator"
language: Python
stars: 41000
forks: 5015
install: "npx degit https://github.com/luongnv89/claude-howto/tree/main/uk/03-skills/doc-generator ~/.claude/skills/doc-generator"
installs_to: ~/.claude/skills/doc-generator
source_path: uk/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:03.300Z
last_synced: 2026-08-13T07:37:03.300Z
canonical_url: "https://dirskills.com/skills/api-documentation-generator-2"
---

# API Documentation Generator

API Documentation Generator creates comprehensive, accurate API documentation from source code. Use it to generate OpenAPI specifications, endpoint docs, SDK usage examples, and integration guides.

**Install:**

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

## README

# Навичка генерації документації API

## Генерує

- Специфікації OpenAPI/Swagger
- Документацію ендпоінтів API
- Приклади використання SDK
- Посібники з інтеграції
- Довідники кодів помилок
- Посібники з автентифікації

## Структура документації

### Для кожного ендпоінту

````markdown
## GET /api/v1/users/:id

### Опис
Короткий опис призначення цього ендпоінту

### Параметри

| Назва | Тип | Обовʼязковий | Опис |
|-------|-----|-------------|------|
| id | string | Так | ID користувача |

### Відповідь

**200 Успіх**
```json
{
  "id": "usr_123",
  "name": "John Doe",
  "email": "john@example.com",
  "created_at": "2025-01-15T10:30:00Z"
}
```

**404 Не знайдено**
```json
{
  "error": "USER_NOT_FOUND",
  "message": "Користувач не існує"
}
```

### Приклади

**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()
```
````
