Generates and maintains OpenAPI 3.1 specs from code, design-first specs, and validation patterns. Use for API docs, SDK generation, or contract compliance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/documentation-generation:openapi-spec-generationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Comprehensive patterns for creating, maintaining, and validating OpenAPI 3.1 specifications for RESTful APIs.
Comprehensive 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 |
Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.
3plugins reuse this skill
First indexed Jul 7, 2026
npx claudepluginhub wshobson/agents --plugin documentation-generationGenerates and maintains OpenAPI 3.1 specs from code, design-first specs, and validation patterns. Use for API docs, SDK generation, or contract compliance.
Generates and validates OpenAPI 3.1 specs from code or design-first contracts. Use when creating API docs, generating SDKs, or ensuring contract compliance.
Generates and maintains OpenAPI 3.1 specs from code or design-first, validates API implementations, and generates SDKs.