Skill Detail

OpenAPI Specification Validator

Validates and lints OpenAPI 3.x specifications using swagger-parser, spectral, and openapi-typescript. Generates type-safe client SDKs and detects breaking API changes via oasdiff.

Library & API ReferenceCursor
Library & API Reference Cursor Security Reviewed
Tool match: swagger โญ 1.2k GitHub stars โฌ‡ 4.3M/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill openapi-specification-validator-agent Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
swagger-parser, @stoplight/spectral, openapi-typescript, oasdiff, Redocly CLI
Install & setup
npm install @apidevtools/swagger-parser
Author
API Dev Tools
Last updated
Mar 24, 2026
Quick brief

The OpenAPI Specification Validator performs comprehensive validation of OpenAPI 3.0 and 3.1 documents using swagger-parser for structural validation and @stoplight/spectral for style and convention enforcement. It applies custom Spectral rulesets that enforce organizational API standards including naming conventions, pagination patterns, and error response schemas. The skill uses openapi-typescript to generate TypeScript type definitions from validated specs, ensuring frontend-backend type safety. It integrates oasdiff for detecting breaking changes between API versions, generating detailed compatibility reports that highlight removed endpoints, changed parameter types, and modified response schemas. The tool also leverages redocly/openapi-cli for spec bundling, splitting multi-file specs, and generating interactive API documentation. It supports validation of x-extension fields for custom metadata and ensures proper security scheme definitions across OAuth2, API key, and JWT bearer authentication patterns.