Communityコーディング&開発github.com

OpenAPI 3.1 仕様生成

コード、デザインファーストの仕様、およびバリデーションパターンから OpenAPI 3.1 仕様を生成・保守します。API ドキュメント作成、SDK 生成、または API コントラクトの準拠確認に使用します。

OpenAPI 3.1 仕様生成 とは?

このスキルは、RESTful API 向けの OpenAPI 3.1 仕様の作成、保守、バリデーションに関する包括的なパターンを提供します。API ドキュメントの新規作成、既存コードからの仕様生成、設計ファーストによるコントラクト設計、実装と仕様の整合性検証、SDK 生成、API ドキュメンテーションポータルのセットアップなど、幅広いユースケースをサポートします。コアな概念として、OpenAPI 3.1 の基本構造、設計ファースト・コードファースト・ハイブリッドの 3 つのアプローチ、そして実践的なベストプラクティス($ref による再利用、例の追加、エラーコードの文書化、API バージョニング、セマンティックバージョニングなど)をカバーします。このスキルは、Claude Code、Cursor、Codex などの AI エージェントプラットフォームで動作し、`references/details.md` に詳細なテンプレートと具体例が格納されています。開発者はこのスキルを通じて、一貫性があり、保守性の高い、堅牢な API 仕様を効率的に生成・管理できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mianhtsys/landingMod3/tree/HEAD/MODULO_3_DESARROLLO_AL_LADO_DEL_CLIENTE_Y_SERVIDOR_WEB/architecture-skills-framework/.agents/skills/openapi-spec-generation

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

OpenAPI 仕様生成

RESTful API 向けの OpenAPI 3.1 仕様を作成、保守、バリデーションするための包括的なパターン。

このスキルを使用するタイミング

  • API ドキュメントをゼロから作成する場合
  • 既存のコードから OpenAPI 仕様を生成する場合
  • API コントラクトを設計する場合(設計ファーストアプローチ)
  • API 実装を仕様に対して検証する場合
  • 仕様からクライアント SDK を生成する場合
  • API ドキュメンテーションポータルをセットアップする場合

コアコンセプト

1. OpenAPI 3.1 の構造

openapi: 3.1.0
info:
  title: API タイトル
  version: 1.0.0
servers:
  - url: https://api.example.com/v1
paths:
  /resources:
    get: ...
components:
  schemas: ...
  securitySchemes: ...

2. 設計アプローチ

アプローチ説明最適な状況
設計ファーストコードの前に仕様を記述新しいAPI、契約
コードファーストコードから仕様を生成既存API
ハイブリッドコードにアノテーションし、仕様を生成進化するAPI

テンプレートと詳細な実例

テンプレートの完全なライブラリと詳細な実例は references/details.md にあります。具体的なテンプレートが必要な場合は、そのファイルを参照してください。

ベストプラクティス

推奨事項

  • $ref を使用する - スキーマ、パラメータ、レスポンスを再利用する
  • 例を追加する - 実際の値は消費者にとって役立つ
  • エラーを文書化する - すべての可能なエラーコード
  • API をバージョニングする - URL またはヘッダー内で
  • セマンティックバージョニングを使用する - 仕様変更に対して

避けるべきこと

  • 汎用的な説明を使用しない - 具体的に記述する
  • セキュリティを省略しない - すべてのスキームを定義する
  • nullable を忘れない - null について明示的にする
  • スタイルを混在させない - 一貫した命名を全体で使用する
  • URL をハードコーディングしない - サーバー変数を使用する

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

mianhtsys/landingMod3

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

mianhtsys/landingMod3

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

mianhtsys/landingMod3

Diseña y compara alternativas arquitectónicas trazables a RF/RNF sin implementar código.

mianhtsys/landingMod3

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

mianhtsys/landingMod3

Revisión adversarial de la arquitectura contra RF/RNF, detectando contradicciones, cobertura faltante y complejidad innecesaria.

mianhtsys/landingMod3

Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.

mianhtsys/landingMod3

>- Generate grounded-and-verified, engine-agnostic database documentation that reaches 100% parity with the real schema. Introspects the LIVE database as ground truth and cross-validates it against ORM models, migrations, generated types, seeds, and application queries, then proves completeness by diffing the docs back against the database. Produces ER diagrams (mermaid), per-table data dictionaries, and a machine-readable schema.json. Works with PostgreSQL, MySQL, SQL Server, and SQLite across any ORM (Prisma, TypeORM, Drizzle, Sequelize, Knex, Django, Rails) or raw SQL. Use when asked to document a database, produce an ERD or data dictionary, write db/schema docs, audit schema drift, or refresh existing DB docs.

mianhtsys/landingMod3

Compara estrategias de persistencia y motores de datos según consistencia, concurrencia, volumen, recuperación y operación.

mianhtsys/landingMod3

Design robust, scalable database schemas for SQL and NoSQL databases. Provides normalization guidelines, indexing strategies, migration patterns, constraint design, and performance optimization. Ensures data integrity, query performance, and maintainable data models.

mianhtsys/landingMod3

Consolida análisis especializados en una recomendación arquitectónica, matriz de decisión, ADR y plan de validación.

mianhtsys/landingMod3

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.

mianhtsys/landingMod3

Build and maintain web frontends — component architecture, state management, API integration, responsive layout, client-side performance, and frontend testing patterns. Framework agnostic, focused on web frontend implementation. Do not use for backend service implementation, data engineering, or platform infrastructure work.

mianhtsys/landingMod3

Evalúa despliegue, contenedores, escalado, alta disponibilidad, observabilidad, backup, recuperación y CI/CD de forma proporcional.

mianhtsys/landingMod3

Execute read-only SQL queries against multiple Microsoft SQL Server databases. Use when: (1) querying MSSQL/SQL Server databases, (2) exploring database schemas/tables, (3) running SELECT queries for data analysis, (4) checking database contents. Supports multiple database connections with descriptions for intelligent auto-selection. Blocks all write operations (INSERT, UPDATE, DELETE, DROP, etc.) for safety.

mianhtsys/landingMod3

PHP 8.0+ development — XAMPP, RESTful APIs, PDO/MySQL/MariaDB, and authentication. Use when building PHP backends, creating API endpoints, configuring XAMPP, or integrating PHP with databases.

mianhtsys/landingMod3

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

mianhtsys/landingMod3

Analiza requisitos funcionales y no funcionales, reglas, restricciones, capacidad y ambigüedades antes de seleccionar tecnologías.

mianhtsys/landingMod3

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

mianhtsys/landingMod3

>- Use when designing or implementing software securely: define security requirements, threat-model a feature, choose secure defaults, design authentication and authorization, handle untrusted data and secrets, evaluate dependencies, design multi-tenant trust boundaries, or review security-sensitive changes. Use for prevention during requirements, design, implementation, and review; not for post-build security assessments or scanning an existing codebase.

mianhtsys/landingMod3

Revisa seguridad arquitectónica, identidad, autorización, secretos, APIs, auditoría, fraude y resiliencia antes de implementar.

関連スキル