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.
From openapi-spec-generationnpx claudepluginhub grailautomation/claude-plugins --plugin openapi-spec-generationThis skill uses the workspace's default tool permissions.
references/sdk-generation.mdreferences/template-complete-spec.mdreferences/template-fastapi-python.mdreferences/template-tsoa-typescript.mdreferences/template-validation-linting.mdPatterns 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/: