Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
oakoss avatar

Openapi

  • 130 installs
  • 14 repo stars
  • Updated March 2, 2026
  • oakoss/agent-skills

Helps with ai & agent building tasks during AI-assisted development.

About

openapi is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • openapi
  • AI & Agent Building
  • AI-coding skill

Openapi by the numbers

  • 130 all-time installs (skills.sh)
  • +10 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #3,681 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/oakoss/agent-skills --skill openapi

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs130
repo stars14
Last updatedMarch 2, 2026
Repositoryoakoss/agent-skills

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

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

PatternElementKey Points
Document rootopenapi, info, pathsopenapi: '3.1.0' required at top level
Path item/resources/{id}Curly braces for path parameters
Operationget, post, put, delete, patchEach operation needs operationId and responses
Parameters`in: path\query\
Request bodyrequestBody.contentKeyed by media type (application/json)
Responseresponses.200.contentAt least one response required per operation
Component ref$ref: '#/components/schemas/Name'Reuse schemas, parameters, responses
Schema types`type: string\number\
CompositiononeOf, anyOf, allOfModel polymorphism and intersection types
Discriminatordiscriminator.propertyNameHint for code generators with oneOf/anyOf
SecuritysecuritySchemes + top-level securityBearer, API key, OAuth2, OpenID Connect
Tagstags on operationsGroup operations for documentation
Type generationopenapi-typescriptZero-runtime TypeScript types from spec
Typed fetchopenapi-fetchType-safe HTTP client using generated types
React Queryopenapi-react-queryType-safe React Query hooks from spec
Schema-firstzod-openapiGenerate OpenAPI documents from Zod schemas

Common Mistakes

MistakeCorrect Pattern
Using nullable: true in 3.1Use type: ["string", "null"] (3.0 syntax removed)
Missing operationId on operationsAlways set unique operationId for code generation
Path parameter not in requiredPath parameters are always required (required: true)
Inline schemas everywhereExtract to components/schemas and use $ref
allOf with conflicting required fieldsMerge required arrays; allOf unions them
Discriminator without shared propertyAll schemas in oneOf/anyOf must include the discriminator property
Empty description on responsesEvery response needs a meaningful description
Using type: object without propertiesAlways define properties or use additionalProperties
Circular $ref chainsBreak cycles with lazy resolution or restructure schemas
Mixing 3.0 and 3.1 syntaxChoose one version; 3.1 drops nullable, changes exclusiveMinimum to number

Delegation

  • API design review: Use Task agent to audit spec completeness and consistency
  • Type generation: Use Explore agent to find project-specific OpenAPI tooling config
  • Code review: Delegate to code-reviewer agent for generated client usage patterns
If the typescript-patterns skill is available, delegate advanced TypeScript typing questions to it.

References

  • Schema design: paths, operations, parameters, components, and $ref
  • Data types: formats, composition, discriminators, and nullable
  • Code generation: openapi-typescript, openapi-fetch, openapi-react-query, and Zod OpenAPI
  • Documentation: Swagger UI, Redoc, and API docs best practices

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.