api-contract-validator

Validate API implementations against OpenAPI, AsyncAPI, GraphQL, and Protobuf contracts.

3|2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/robotijn/ctoc --skill api-contract-validator-robotijn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-contract-validator
Source: https://github.com/robotijn/ctoc/tree/main/skills/specialized/api-contract-validator
Command: npx skills add https://github.com/robotijn/ctoc --skill api-contract-validator-robotijn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

API contract drift and uncaught breaking changes cause silent production outages for API consumers, where client integrations fail at runtime despite passing build-time checks. This Skill eliminates that risk by validating API implementations against their declared contracts and enforcing evolutionary schema design rules before code ships.

Core Features & Use Cases

  • Multi-format contract validation: Supports OpenAPI 3.1, AsyncAPI 3, GraphQL SDL, and Protobuf/gRPC contract specifications across all major programming languages and frameworks.
  • Breaking change detection: Automatically classifies changes as breaking or safe, enforces semantic versioning requirements, and blocks releases of unapproved breaking changes.
  • Use Case: For a team updating a public user API, use this Skill to review the OpenAPI spec changes in a pull request, flag removed required fields and changed endpoint types, and ensure no breaking changes are deployed to existing mobile and web clients.

Quick Start

Use the api-contract-validator skill to review the latest API contract changes in your pull request and identify any breaking modifications that would impact existing consumers.

Frequently Asked Questions about api-contract-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect breaking changes in an OpenAPI specification during a pull request review?

To detect breaking changes in an OpenAPI specification, validate the API implementation against declared contracts to flag removed required fields and changed endpoint types. This prevents silent production outages by blocking unapproved breaking modifications before deployment.

What is API contract drift and how does breaking change detection prevent runtime failures?

API contract drift occurs when an implementation diverges from its declared specification, causing client integrations to fail at runtime. Breaking change detection automatically classifies schema modifications as breaking or safe and enforces semantic versioning compliance to prevent these failures.

Can I use contract testing to validate GraphQL SDL and Protobuf gRPC schemas in a CI/CD pipeline?

Yes, you can validate GraphQL SDL and Protobuf gRPC schemas in a CI/CD pipeline using multi-format contract validation. It applies consumer-driven contract testing and evolutionary schema design rules across REST, event-driven, and RPC APIs during pre-release validation.

Does schema drift validation work with AsyncAPI 3 specifications for event-driven APIs?

Schema drift validation supports AsyncAPI 3 specifications for event-driven APIs across all major programming languages and frameworks. It enforces breaking change detection and semantic versioning compliance to prevent silent production outages from event schema incompatibilities.

What is the best way to enforce semantic versioning compliance for API updates across multiple formats?

The best way to enforce semantic versioning compliance is by validating API implementations against declared contracts including OpenAPI 3.1, AsyncAPI 3, GraphQL SDL, and Protobuf. This automatically classifies changes as breaking or safe and blocks releases of unapproved modifications.

Why does my API client integration fail at runtime despite passing build-time checks?

API client integrations fail at runtime despite passing build-time checks due to contract drift and uncaught breaking changes. Validating implementations against declared specifications eliminates this risk by enforcing evolutionary schema design rules before code ships.