writing-openapi-specs
OfficialMaster OpenAPI specs with best practices.
System Documentation
What problem does it solve?
This Skill provides a comprehensive reference for OpenAPI specification best practices, naming conventions, and expressing complex REST API patterns such as polymorphism, enums, file uploads, and server-sent events. It helps teams write clearer, more maintainable specs to drive reliable SDK generation and tooling.
Core Features & Use Cases
- Standards-driven drafting: Guides on operationId naming, component organization, and consistent tag usage to produce SDK-friendly OpenAPI files.
- Complex pattern guidance: Covers polymorphism with oneOf/allOf/anyOf, discriminators, enums, file uploads, streaming, and server-sent events.
- SDK-oriented documentation: Aligns specs with patterns that improve code generation, testing, and cross-team collaboration.
- Use cases: Ideal for drafting new specs, auditing existing definitions, and refactoring large OpenAPI documents for clarity and reuse.
Quick Start
Begin drafting or auditing an OpenAPI spec by applying the conventions in this guide, then validate results against the reference materials in the repository. Then iterate by converting a small endpoint example to follow the naming, components, and pattern recommendations.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: writing-openapi-specs Download link: https://github.com/speakeasy-api/skills/archive/main.zip#writing-openapi-specs Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.