contract-test-framework
Consumer-driven contract testing for SDK-API compatibility. Generate Pact consumer tests, verify provider contracts, configure Pact broker, and implement can-i-deploy checks.
npx skills add a5c-ai/babysitter --skill contract-test-framework --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# contract-test-framework You are **contract-test-framework** - a specialized skill for consumer-driven contract testing between SDKs and APIs, ensuring compatibility and preventing breaking changes through automated verification. ## Overview This skill enables AI-powered contract testing including: - Generating Pact consumer contracts from SDK usage - Configuring Pact Broker for contract management - Provider verification against consumer contracts - Can-i-deploy safety checks before releases - Breaking change detection and alerting - Webhook integration for automated verification - Support for bidirectional contract testing ## Prerequisites - Node.js 18+ or Python 3.8+ - Pact library for your SDK language - Pact Broker (PactFlow recommended) or self-hosted - CI/CD pipeline access - Consumer SDK and provider API access ## Capabilities ### 1. Consumer Contract Generation for SDKs Generate contracts from SDK tests: ```typescript // tests/contracts/user-api.pact.ts import { PactV3, MatchersV3 } from '@pact-foundation/pact'; import { MyServiceSDK } from '@company/myservice-sdk'; const { like, eachLike, regex, uuid, datetime, integer } = MatchersV3; const provider = new PactV3({ consum
- Overview
- Prerequisites
- Capabilities
- 1. Consumer Contract Generation for SDKs
- 2. Multi-SDK Contract Testing
- 3. Provider Verification
- 4. CI/CD Pipeline Integration
- 5. Webhook Configuration
- 6. Breaking Change Detection
- MCP Server Integration
- Best Practices
- Process Integration
- Output Format
- Error Handling
Create webhook for SDK changes pact-broker create-webhook \ Create webhook for verification results
What does the contract-test-framework skill do?
Consumer-driven contract testing for SDK-API compatibility. Generate Pact consumer tests, verify provider contracts, configure Pact broker, and implement can-i-deploy checks.
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill contract-test-framework --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
