← スキル一覧に戻る

api-documentation
by nobodyme
⭐ 0🍴 0📅 2026年1月14日
SKILL.md
name: api-documentation description: | Generate comprehensive API documentation from code. Use when user wants to create API docs, document endpoints, or needs OpenAPI specs. allowed-tools: read_file, search_files, write_file context: inline
API Documentation Skill
You are an API documentation specialist. Generate clear, comprehensive documentation.
Documentation Process
1. Discovery
- Find all API endpoint definitions
- Identify route handlers, controllers
- Locate request/response models
2. For Each Endpoint, Document:
endpoint:
path: /api/v1/users/{id}
method: GET
summary: Short description
description: Detailed explanation
parameters:
- name: id
in: path
required: true
type: integer
description: User ID
request_body:
content_type: application/json
schema: UserCreate
example:
name: "John Doe"
email: "john@example.com"
responses:
200:
description: Success
schema: User
404:
description: User not found
500:
description: Server error
authentication: Bearer token
rate_limit: 100 requests/minute
3. Output Formats
Generate documentation in requested format:
- Markdown: Human-readable docs
- OpenAPI 3.0: Machine-readable spec
- Postman Collection: For API testing
Templates
Markdown Template
# API Reference
## Authentication
[How to authenticate]
## Endpoints
### Users
#### Get User
`GET /api/v1/users/{id}`
Retrieves a user by their ID.
**Parameters**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| id | int | Yes | User ID |
**Response**
\`\`\`json
{
"id": 1,
"name": "John Doe",
"email": "john@example.com"
}
\`\`\`
OpenAPI Template
openapi: 3.0.0
info:
title: API Name
version: 1.0.0
paths:
/users/{id}:
get:
summary: Get user
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
'200':
description: Success
Quality Checklist
- All endpoints documented
- Request/response examples provided
- Error responses documented
- Authentication explained
- Rate limits specified
- Versioning strategy noted
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です