スキル一覧に戻る
Rehan-Ul-Haq

openapi-generator

by Rehan-Ul-Haq

9🍴 2📅 2026年1月8日
GitHubで見るManusで実行

SKILL.md


name: openapi-generator description: | Generates OpenAPI 3.x specifications from existing code or API designs. This skill should be used when users want to document APIs, generate OpenAPI specs from Flask/FastAPI/Express routes, or create API contracts.

OpenAPI Generator

Generate standards-compliant OpenAPI specifications.

What This Skill Does

  • Analyzes code to extract API structure
  • Generates OpenAPI 3.0/3.1 compliant specs
  • Documents parameters, schemas, responses
  • Validates output against OpenAPI spec

What This Skill Does NOT Do

  • Generate code FROM OpenAPI (use openapi-generator-cli)
  • Create API mocks
  • Deploy documentation (use Swagger UI, Redoc)

Before Implementation

SourceGather
CodebaseRoute definitions, models, decorators
ConversationAPI description, auth method, versioning
Skill ReferencesOpenAPI patterns from references/

Required Clarifications

ClarificationWhy
FrameworkFlask/FastAPI/Express affects extraction
OpenAPI version3.0 vs 3.1 differences
Output formatYAML vs JSON
Auth methodAffects security schemes

Generation Workflow

1. Discover Routes → 2. Extract Schemas → 3. Map to OpenAPI → 4. Validate

1. Discover Routes

FrameworkLook For
Flask@app.route, @blueprint.route
FastAPI@app.get/post/etc, Pydantic models
Expressapp.get/post, router.*

2. Extract Schemas

  • Request bodies from validation schemas
  • Response types from return statements/models
  • Path/query params from decorators

3. Map to OpenAPI

See references/openapi-patterns.md for structure.

Key components:

  • info: API metadata
  • paths: Endpoints with operations
  • components/schemas: Reusable models
  • security: Auth configuration

4. Validate

Check against OpenAPI spec:

  • Required fields present
  • $ref references resolve
  • Valid HTTP methods
  • Proper schema types

Pre-Delivery Checklist

  • All routes documented
  • Schemas extracted to components
  • Examples provided for complex types
  • Security schemes defined
  • Validates with OpenAPI validator

Reference Files

FileUse When
references/openapi-patterns.mdStructuring the spec
references/schema-mapping.mdType mappings by framework

スコア

総合スコア

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

レビュー

💬

レビュー機能は近日公開予定です