openapi

Installation
SKILL.md

OpenAPI

Overview

OpenAPI Specification (OAS) 3.1 is the industry standard for describing HTTP APIs. It defines a machine-readable contract covering endpoints, request/response schemas, authentication, and error formats. OpenAPI 3.1 is a strict superset of JSON Schema Draft 2020-12, enabling full JSON Schema compatibility for data validation and type generation.

When to use: Designing REST APIs, generating typed clients (TypeScript, Python, Go), producing interactive documentation, validating request/response payloads, contract-first API development, API gateway configuration.

When NOT to use: GraphQL APIs (use the GraphQL schema), gRPC services (use Protocol Buffers), WebSocket-only protocols, internal function calls that never cross a network boundary.

Quick Reference

Pattern Element Key Points
Document root openapi, info, paths openapi: '3.1.0' required at top level
Path item /resources/{id} Curly braces for path parameters
Operation get, post, put, delete, patch Each operation needs operationId and responses
Parameters in: path|query|header|cookie Path params are always required: true
Request body requestBody.content Keyed by media type (application/json)
Related skills
Installs
63
GitHub Stars
11
First Seen
Feb 22, 2026