validating-api-contracts

Solid

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".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
92
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## 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**: ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Solid

automating-api-testing

This skill automates API endpoint testing, including request generation, validation, and comprehensive test coverage for REST and GraphQL APIs. It is used when the user requests API testing, contract testing, or validation against OpenAPI specifications. The skill analyzes API endpoints and generates test suites covering CRUD operations, authentication flows, and security aspects. It also validates response status codes, headers, and body structure. Use this skill when the user mentions "API testing", "REST API tests", "GraphQL API tests", "contract tests", or "OpenAPI validation".

2,266 Updated today
jeremylongshore
Testing & QA Solid

pact-contract-testing

Consumer-driven contract testing with Pact framework. Generate consumer contracts, configure Pact Broker publishing, execute provider verification, detect breaking changes, and integrate with CI/CD pipelines.

1,034 Updated today
a5c-ai
Testing & QA Listed

api-tests

API contract testing with Pact, OpenAPI validation, and Zod/AJV schemas. Use when setting up contract tests, validating OpenAPI compliance, or adding breaking-change CI checks.

35 Updated today
laurigates
Testing & QA Solid

api-contract-testing

Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing microservices communication, preventing breaking changes, or validating OpenAPI specifications.

160 Updated 2 weeks ago
secondsky
AI & Automation Solid

validating-authentication-implementations

This skill enables Claude to validate authentication implementations against security best practices and industry standards. It analyzes various authentication methods, including JWT, OAuth, session-based authentication, and API keys. Use this skill when you need to perform an authentication security check, assess password policies, evaluate MFA implementation, or analyze session security. Trigger this skill with phrases like "validate authentication," "authentication check," or "authcheck."

2,266 Updated today
jeremylongshore