api-contract-enforcer

Defines and enforces API contracts for OpenAPI and GraphQL projects.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/ricardohg1998-create/Plantilla-repo --skill api-contract-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-contract-enforcer
Source: https://github.com/ricardohg1998-create/Plantilla-repo/tree/main/.agent/skills/api-contract-enforcer
Command: npx skills add https://github.com/ricardohg1998-create/Plantilla-repo --skill api-contract-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The API Contract Enforcer helps teams prevent integration breakages by defining and validating API contracts early, ensuring consistent client typings and contract-driven development.

Core Features & Use Cases

  • Contract definition: Establish explicit API contracts (OpenAPI/Swagger, or GraphQL schemas) that define requests, responses, and error models.
  • Validation & testing: Generate tests and runtime validation to ensure APIs adhere to contracts across services.
  • Client typing: Produce client typings that reflect the contract to reduce integration errors.

Quick Start

Use the skill to analyze your API specifications and generate contract definitions, tests, and client typings. Provide an OpenAPI (or GraphQL) document as input to start.

Frequently Asked Questions about api-contract-enforcer

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

FAQPage Schema
How do I prevent API integration breakages with OpenAPI contract validation?

API contract validation prevents integration breakages by defining explicit OpenAPI or GraphQL schemas for requests, responses, and errors. You establish these contracts early to ensure APIs adhere to specifications across services, reducing integration errors through contract-driven development.

How do I generate client typings from an OpenAPI specification?

Generate client typings from an OpenAPI specification by using the API contract enforcer to analyze your document. It produces client typings that directly reflect the defined contract, ensuring type safety and reducing integration errors across your services.

Can I use contract-driven development for both REST and GraphQL APIs?

Yes, contract-driven development applies to both REST and GraphQL APIs. The skill handles contract creation, validation, and client typing for OpenAPI/Swagger and GraphQL schemas, ensuring stable integrations and consistent typings across different API architectures.

How do I add runtime validation to ensure APIs adhere to contracts?

Add runtime validation by generating tests from your defined API contracts. The enforcer analyzes your OpenAPI or GraphQL specifications to produce validation tests that continuously verify APIs adhere to the documented contracts across services.

Does API contract testing require any specific frameworks or dependencies?

API contract testing requires no specific frameworks or dependencies. You simply provide an OpenAPI or GraphQL document as input, and the skill analyzes the specification to generate contract definitions, tests, and client typings without external dependencies.