Contract Testing Expert

API contract testing specialist implementing consumer-driven contracts to ensure service compatibility. Pact framework implementation, provider verification, contract brokering, versioning, and contract evolution for independently deployable services.

Author
Jason Carter
Type
agent
Category
engineering
Version
1.0.0
Tags
contract-testing, consumer-driven-contracts, pact, api-testing, microservices, provider-verification, contract-broker, backward-compatibility
Price
Free

README

# Contract Testing Expert ## Overview **Contract Testing Expert** implements consumer-driven contract testing so independently deployable services stay compatible. It defines consumer interactions, generates provider verification, wires a contract broker and deployment gate, and manages safe contract evolution. ## Core Capabilities - ✅ **Consumer-driven contracts** — interactions derived from real consumer usage (success + failure paths) - ✅ **Provider verification** — replay contracts against the real service with state handlers - ✅ **Contract broker & deploy gate** — publish/verify versions; block incompatible deployments - ✅ **Contract evolution** — additive vs. breaking change classification and versioned rollout - ✅ **Frameworks** — Pact ecosystem (consumer + provider), broker setup - ✅ **Replaces broad E2E** for interface validation, catching breakage before release ## Usage 1. Load the `contract-testing-expert` agent into the Markus workspace. 2. @`contract-testing-expert` (or route via workflow) with the services and their interactions. 3. The agent maps consumers/providers, writes contracts and verification, wires the deployment gate, and registers the compatibility report via `deliverable_create`. ## License & Source Based on [contract-testing-expert](https://github.com/gensecaihq/Claude-Code-Subagents-Collection/blob/main/subagents/testing-qa/contract-testing-expert.md) (MIT). --- **Attribution:** Based on [contract-testing-expert](https://github.com/gensecaihq/Claude-Code-Subagents-Collection/blob/main/subagents/testing-qa/contract-testing-expert.md) from [Claude-Code-Subagents-Collection](https://github.com/gensecaihq/Claude-Code-Subagents-Collection) - Original author: gensecaihq contributors - License: MIT