contract-testing

Community

Prevent API breaks, ensure microservice harmony.

Authorproffesor-for-testing
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents breaking changes in microservice APIs that can cause production failures in distributed systems by validating that API providers fulfill the contracts expected by their consumers.

Core Features & Use Cases

  • Consumer-Driven Contracts (Pact): Guides through defining consumer expectations and verifying provider adherence using the Pact framework.
  • Schema Validation: Ensures API responses conform to defined JSON schemas, catching structural inconsistencies early.
  • API Versioning Testing: Provides strategies for testing backward compatibility and managing deprecated fields across API versions.
  • Use Case: For a UserWebApp consuming a UserAPI, use Pact to define the expected user data structure. The UserAPI then verifies against this contract in its CI, preventing breaking changes before deployment.

Quick Start

Use the contract-testing skill to define a consumer-driven contract for the 'get user by ID' endpoint of your UserAPI, expecting specific fields and data types.

Dependency Matrix

Required Modules

@pact-foundation/pactajv

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: contract-testing
Download link: https://github.com/proffesor-for-testing/agentic-qe/archive/main.zip#contract-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.