Skip to content
Skillpedia
Documentation46k · #6323

doc-generator

What it does

It guides your agent to create API reference pages from code, covering each endpoint, its parameters, its responses, and example calls. It is for developers who need clear docs for the people who use their API.

When to use it

  • ✓When you need documentation written for an API's endpoints.
  • ✓When you want an OpenAPI or Swagger specification generated or updated.
  • ✓When you need example code for calling an API in several languages.

Skill link

https://github.com/luongnv89/claude-howto/blob/main/03-skills/doc-generator/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/luongnv89/claude-howto/blob/main/03-skills/doc-generator/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you write API docs for my users endpoint, with cURL and Python examples?”

5 new skills a week. 1 minute to read.

How it works

The agent reads the source code for each endpoint, then fills in a standard layout with parameters, success and error responses, and example calls.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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**
```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:

FAQ

Where do the examples come from?

The skill is built to document what the source code does, so the examples should reflect the code.

What does each endpoint section include?

A description, a parameters table, success and error responses, and examples in cURL, JavaScript, and Python.

Can it create an OpenAPI spec?

Yes. The skill says it generates OpenAPI or Swagger specifications.

Details

Original description by the author

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.

repo: luongnv89/claude-howto

Popularity

GitHub stars
46k
Ranking position
#6323
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills