Create comprehensive OpenAPI 3.1 specifications for REST APIs using design-first, code-first, or hybrid approaches. Includes templates, validation patterns, and SDK generation guidance.
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「openapi-spec-generation」を使用しています。 Create an OpenAPI 3.1 spec for a users API
期待される結果:
A complete OpenAPI specification with /users endpoint (GET, POST), /users/{id} endpoint (GET, PATCH, DELETE), User schema with uuid, email, name, status, role fields, Bearer authentication, pagination parameters, and standard error responses.
「openapi-spec-generation」を使用しています。 Add rate limiting headers to responses
期待される結果:
Updated spec with RateLimited response including Retry-After, X-RateLimit-Limit, and X-RateLimit-Remaining headers with integer schemas.
「openapi-spec-generation」を使用しています。 Generate TypeScript client from spec
期待される結果:
TypeScript fetch client with typed methods for each endpoint, proper authentication headers, and TypeScript interfaces matching the schema.
セキュリティ監査
安全This skill provides instructional documentation for OpenAPI specification generation. All static findings are false positives: shell command examples are documentation samples, hardcoded URLs are example domains (example.com, localhost), JWT references are standard API authentication definitions, and there is no malicious code execution. The skill is safe for marketplace publication.
中リスクの問題 (1)
低リスクの問題 (2)
品質スコア
作れるもの
New API Design
Create OpenAPI specs for new APIs using design-first approach with comprehensive examples for authentication, pagination, and error handling.
Existing API Documentation
Generate documentation from existing codebases using FastAPI or Express with tsoa annotations.
SDK Generation Workflow
Generate client SDKs in multiple languages from OpenAPI specs for frontend and external consumers.
これらのプロンプトを試す
Create an OpenAPI 3.1 specification for a [RESOURCE] API with CRUD operations. Include authentication via Bearer token, pagination support, and standard error responses.
Add JWT Bearer authentication and API key security schemes to an existing OpenAPI spec. Include 401 and 403 error responses.
Generate a Python client SDK from this OpenAPI specification. Include authentication handling and proper error types.
Create Spectral linting rules for this OpenAPI spec that enforce operation IDs, require descriptions, and validate security definitions.
ベストプラクティス
- Use $ref to reuse schemas, parameters, and responses across the spec
- Include real-world examples in the spec to help API consumers
- Define all possible error codes and include descriptive messages
- Version your API in the URL path and use semantic versioning for spec changes
回避
- Avoid generic descriptions like 'Gets a resource' - be specific about what is returned
- Do not skip security definitions - every endpoint should have authentication documented
- Do not mix naming conventions - stay consistent with camelCase or snake_case throughout
よくある質問
What is the difference between design-first and code-first?
Which languages are supported for code-first generation?
How do I validate my OpenAPI spec?
Can this skill generate server code?
What authentication schemes are supported?
How do I version my API spec?
開発者の詳細
作成者
sickn33ライセンス
MIT
リポジトリ
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/openapi-spec-generation参照
main
ファイル構成