MCP HubMCP Hub
返回技能列表

api-documentation-generator

luongnv89
更新于 Today
56 次查看
228
25
228
在 GitHub 上查看
wordapi

关于

This skill generates comprehensive API documentation from source code, including OpenAPI specifications and endpoint details. It's ideal for creating or updating API docs when users mention endpoints or documentation needs. The tool produces structured documentation with parameters, responses, and code examples for each endpoint.

快速安装

Claude Code

推荐
插件命令推荐
/plugin add https://github.com/luongnv89/claude-howto
Git 克隆备选方式
git clone https://github.com/luongnv89/claude-howto.git ~/.claude/skills/api-documentation-generator

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

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": "[email protected]",
  "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()

GitHub 仓库

luongnv89/claude-howto
路径: 03-skills/doc-generator

相关推荐技能