Designs, validates, and maintains OpenAPI 3.x specifications for REST API contracts. Covers schema patterns, security schemes, versioning, and code generation integration.
Ships in nickcrew-claude-ctx-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Design, validate, and maintain OpenAPI 3.x specifications for REST API contracts. Covers schema patterns, security schemes, versioning, and code generation integration.
| Resource | Purpose | Load when |
|---|---|---|
references/spec-patterns.md | Schema patterns, security schemes, validation, versioning, reusable components | Designing or reviewing specs |
Phase 1: Design → Define API overview, resources, and operations
Phase 2: Schema → Build data models with reusable components
Phase 3: Validate → Lint and verify the spec for correctness
Phase 4: Integrate → Generate docs, SDKs, and contract tests
Start with a high-level design before writing the spec:
openapi: 3.1.0
info:
title: [API Name]
version: 1.0.0
description: [What this API does]
paths:
/resources:
get:
summary: List resources
operationId: listResources
post:
summary: Create a resource
operationId: createResource
/resources/{id}:
get:
summary: Get a resource
operationId: getResource
components:
schemas: {}
securitySchemes: {}
Build data models using components/schemas for reuse:
$ref to reference shared schemas -- never duplicate definitionsallOf for composition, oneOf / anyOf for polymorphismexample values to every schema and propertyrequired arrays explicitly -- don't rely on implicit behaviortype: [string, "null"] (3.1) or nullable: true (3.0)Run validation before committing any spec changes:
# Spectral (recommended)
spectral lint openapi.yaml
# Redocly
redocly lint openapi.yaml
# swagger-cli
swagger-cli validate openapi.yaml
| Issue | Fix |
|---|---|
Missing operationId | Add unique operationId to every operation |
| Unused schema | Remove from components or add a $ref |
Missing response description | Add description to every response code |
| Path parameter not in path | Match {param} in path with parameter definition |
No 2xx response defined | Add at least one success response per operation |
Use the validated spec to generate downstream artifacts:
$ref to components/schemas for anything reused200 OK for create operations -- use 201 Created4xx and 5xx consistentlyadditionalProperties: true without clear justificationWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
openapi, rest-api, api-specification, schema-design, api-validation
/nickcrew-claude-ctx-plugin:openapi-specificationfrom nickcrew-claude-ctx-plugin
nickcrew-claude-ctx-plugin@cascade-code-languages-misc-1 is listed by joshuarweaver/cascade-code-languages-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin nickcrew-claude-ctx-plugin156 skills in this plugin
/accessibility-auditFast, high-signal accessibility triage for pages, components, or PRs targeting WCAG 2.2 AA compliance./agent-loopsComplete operational workflow for implementer agents (Codex, Gemini, etc.) making code changes and writing tests. Drives all work through atomic commits — each loop operates on the smallest complete, reviewable change. Defines the Code Change Loop, Test Writing Loop, Lint Gate, and Issue Filing process with circuit breakers, severity levels, and escalation rules. Requires `cortex git commit` for all commits. Includes bundled provider-aware review scripts that keep same-model shell-outs as the last resort, plus a fresh-context Codex fallback for code review and test audit. Use this skill when starting any implementation task./Other plugins' skills for the same job