jeremylongshore

Validating API Contracts

@jeremylongshore/Validating API Contracts
jeremylongshore
1,004
123 forks
Updated 1/18/2026
View on GitHub

This skill validates API contracts using consumer-driven testing and OpenAPI validation. It leverages Pact for consumer-driven contract testing, ensuring that API providers adhere to the expectations of their consumers. It also validates APIs against OpenAPI specifications to guarantee compliance and identify breaking changes. Use this skill when the user asks to generate contract tests, validate API responses, check backward compatibility, or validate requests/responses using the terms "contract-test", "ct", "Pact", "OpenAPI validation", or "consumer-driven contract testing".

Installation

$skills install @jeremylongshore/Validating API Contracts
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathbackups/plugin-enhancements/plugin-backups/contract-test-validator_20251019_145203/skills/skill-adapter/SKILL.md
Branchmain
Scoped Name@jeremylongshore/Validating API Contracts

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions


name: Validating API Contracts description: | This skill validates API contracts using consumer-driven testing and OpenAPI validation. It leverages Pact for consumer-driven contract testing, ensuring that API providers adhere to the expectations of their consumers. It also validates APIs against OpenAPI specifications to guarantee compliance and identify breaking changes. Use this skill when the user asks to generate contract tests, validate API responses, check backward compatibility, or validate requests/responses using the terms "contract-test", "ct", "Pact", "OpenAPI validation", or "consumer-driven contract testing".

Overview

This skill enables Claude to generate and validate API contracts, ensuring compatibility between API providers and consumers. It uses Pact for consumer-driven contract testing and OpenAPI validation for specification compliance.

How It Works

  1. Generating Contract Tests: Claude creates Pact consumer tests based on API usage, generating provider verification tests and building OpenAPI contract validators.
  2. Validating Contracts: The skill verifies if API responses match the defined contracts.
  3. Checking Compatibility: It checks for backward compatibility to identify breaking changes in the API.

When to Use This Skill

This skill activates when you need to:

  • Generate contract tests for an API.
  • Validate API responses against existing contracts.
  • Identify breaking changes in an API.

Examples

Example 1: Generating Pact Contracts

User request: "Generate contract tests for my API using Pact."

The skill will:

  1. Analyze the API and generate Pact consumer contracts.
  2. Create provider verification tests based on the contracts.

Example 2: Validating an OpenAPI Specification

User request: "Validate my API against the OpenAPI specification."

The skill will:

  1. Validate the API against the provided OpenAPI specification.
  2. Report any discrepancies or violations of the specification.

Best Practices

  • Clarity: Be specific when requesting contract generation or validation, providing relevant API details.
  • Completeness: Ensure that your OpenAPI specifications are up-to-date for accurate validation.
  • Context: Provide context about the consumer and provider roles when using Pact.

Integration

This skill can be integrated with other testing and deployment tools in the Claude Code ecosystem to automate contract verification as part of a CI/CD pipeline.

More by jeremylongshore

View all
rabbitmq-queue-setup
1,004

Rabbitmq Queue Setup - Auto-activating skill for Backend Development. Triggers on: rabbitmq queue setup, rabbitmq queue setup Part of the Backend Development skill category.

model-evaluation-suite
1,004

evaluating-machine-learning-models: This skill allows Claude to evaluate machine learning models using a comprehensive suite of metrics. It should be used when the user requests model performance analysis, validation, or testing. Claude can use this skill to assess model accuracy, precision, recall, F1-score, and other relevant metrics. Trigger this skill when the user mentions "evaluate model", "model performance", "testing metrics", "validation results", or requests a comprehensive "model evaluation".

neural-network-builder
1,004

building-neural-networks: This skill allows Claude to construct and configure neural network architectures using the neural-network-builder plugin. It should be used when the user requests the creation of a new neural network, modification of an existing one, or assistance with defining the layers, parameters, and training process. The skill is triggered by requests involving terms like "build a neural network," "define network architecture," "configure layers," or specific mentions of neural network types (e.g., "CNN," "RNN," "transformer").

oauth-callback-handler
1,004

Oauth Callback Handler - Auto-activating skill for API Integration. Triggers on: oauth callback handler, oauth callback handler Part of the API Integration skill category.