Help us improve
Share bugs, ideas, or general feedback.
This skill should be used when the user asks to "generate an OpenAPI spec", "create API documentation", "generate an SDK from a spec", "validate an API spec", "lint an OpenAPI file", "design an API contract", or when building, maintaining, or validating RESTful API specifications using OpenAPI 3.1.
npx claudepluginhub grailautomation/claude-plugins --plugin openapi-spec-generationHow this skill is triggered — by the user, by Claude, or both
Slash command
/openapi-spec-generation:openapi-spec-generationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Patterns for creating, maintaining, and validating OpenAPI 3.1 specifications for RESTful APIs.
Generates and maintains OpenAPI 3.1 specs from code, design-first contracts, and validation patterns. Use for API docs, SDK generation, or contract compliance.
Generates and maintains OpenAPI 3.1 specs from code, design-first approaches, or validation patterns for RESTful APIs, docs, SDKs, and contract compliance.
Structures OpenAPI 3.x specs with consistent naming, reusable schemas, error modeling, pagination, security schemes, and examples to produce a spec that works as a contract for code generation.
Share bugs, ideas, or general feedback.
Patterns for creating, maintaining, and validating OpenAPI 3.1 specifications for RESTful APIs.
openapi: 3.1.0
info:
title: API Title
version: 1.0.0
servers:
- url: https://api.example.com/v1
paths:
/resources:
get: ...
components:
schemas: ...
securitySchemes: ...
| Approach | Description | Best For |
|---|---|---|
| Design-First | Write spec before code | New APIs, contracts |
| Code-First | Generate spec from code | Existing APIs |
| Hybrid | Annotate code, generate spec | Evolving APIs |
Available in references/: