api-docs-generator
БесплатноБез исполняемых скриптовНе проверенGenerate API documentation in OpenAPI/Swagger, Markdown, or Postman Collection formats. Use when documenting REST APIs, GraphQL schemas, or creating client…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
API Documentation Generator Skill
APIドキュメントを自動生成するスキルです。
概要
このスキルは、ソースコードから美しく、詳細で、インタラクティブなAPIドキュメントを自動生成します。OpenAPI/Swagger、Markdown、HTML、Postman Collection等の多様な形式に対応し、開発者に優しいドキュメントを作成します。
主な機能
- OpenAPI/Swagger仕様生成: REST APIの標準仕様
- Markdown形式: GitHub/GitLab対応
- インタラクティブHTML: 試せるAPIドキュメント
- Postman Collection: インポート可能なコレクション
- GraphQL Schema: GraphQL APIのドキュメント
- コード例生成: 複数言語のクライアントコード
- 認証ドキュメント: OAuth、JWT、API Key等の説明
- エラーコードリファレンス: 包括的なエラー情報
- レート制限情報: 制限とベストプラクティス
- バージョニング: API バージョン管理
サポートフレームワーク
REST API
- Express.js (Node.js)
- FastAPI (Python)
- Flask (Python)
- Django REST Framework (Python)
- Spring Boot (Java)
- ASP.NET Core (C#)
- Gin/Echo (Go)
- Rails (Ruby)
- Laravel (PHP)
GraphQL
- Apollo Server
- GraphQL Yoga
- Hasura
使用方法
基本的なドキュメント生成
このAPIエンドポイントのドキュメントを生成:
GET /api/users/{id}
実装コード:
[コードを貼り付け]
形式: OpenAPI 3.0
コントローラー全体
このコントローラーの完全なAPIドキュメントを生成:
- すべてのエンドポイント
- リクエスト/レスポンス例
- エラーケース
- 認証要件
[コントローラーコード]
プロジェクト全体
プロジェクト全体のAPIドキュメントを生成:
フレームワーク: Express.js
出力形式: OpenAPI 3.0 + Swagger UI
含める内容:
- 認証フロー
- すべてのエンドポイント
- データモデル
- エラーコード
出力形式
1. OpenAPI/Swagger 3.0
openapi: 3.0.0
info:
title: User Management API
description: API for managing users in the system
version: 1.0.0
contact:
name: API Support
email: [email protected]
servers:
- url: https://api.example.com/v1
description: Production server
- url: https://staging-api.example.com/v1
description: Staging server
paths:
/users:
get:
summary: Get all users
description: Retrieve a paginated list of users
tags:
- Users
parameters:
- name: page
in: query
description: Page number (starts at 1)
required: false
schema:
type: integer
default: 1
minimum: 1
- name: limit
in: query
description: Number of items per page
required: false
schema:
type: integer
default: 20
minimum: 1
maximum: 100
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/User'
pagination:
$ref: '#/components/schemas/Pagination'
examples:
success:
value:
data:
- id: 1
name: John Doe
email: [email protected]
created_at: "2024-01-15T10:30:00Z"
- id: 2
name: Jane Smith
email: [email protected]
created_at: "2024-01-16T14:20:00Z"
pagination:
page: 1
limit: 20
total: 2
total_pages: 1
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
security:
- bearerAuth: []
post:
summary: Create a new user
description: Create a new user with the provided information
tags:
- Users
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- email
- password
properties:
name:
type: string
minLength: 2
maxLength: 100
example: John Doe
email:
type: string
format: email
example: [email protected]
password:
type: string
format: password
minLength: 8
example: SecurePass123!
examples:
user:
value:
name: John Doe
email: [email protected]
password: SecurePass123!
responses:
'201':
description: User created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
$ref: '#/components/responses/BadRequest'
'409':
description: Email already exists
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/user
Установить api-docs-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл api-docs-generator?
Generate API documentation in OpenAPI/Swagger, Markdown, or Postman Collection formats. Use when documenting REST APIs, GraphQL schemas, or creating client code examples.
Как установить скилл api-docs-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-docs-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic