
Api Contract Testing
This handles contract testing between microservices so you catch breaking API changes before deployment. It covers Pact for consumer-driven contracts with proper matchers and provider verification, OpenAPI validation middleware, and shows both happy path and error scenarios. The TypeScript examples are solid and include state handlers for test setup. What's nice is the focus on structure over specific values, which is the whole point of contract testing. You'll want this when you have services talking to each other and need confidence that changes won't break consumers. The best practices section actually earns its keep by steering you away from common mistakes like testing business logic in contracts.
- skills.sh installs
- 491
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill api-contract-testing --agent claude-codeInstalls into .claude/skills of the current project.
Files
API Contract Testing
Verify that APIs honor their contracts between consumers and providers without requiring full integration tests.
Key Concepts
| Term | Definition |
|---|---|
| Consumer | Service that calls an API |
| Provider | Service that exposes an API |
| Contract | Agreed request/response format |
| Pact | Consumer-driven contract testing tool |
| Schema | Structure definition (OpenAPI, JSON Schema) |
| Broker | Central repository for contracts |
Pact Consumer Test (TypeScript)
import { PactV3, MatchersV3 } from '@pact-foundation/pact';
const provider = new PactV3({
consumer: 'OrderService',
provider: 'UserService'
});
Sponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Backend & APIs, Testing & QA
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- React Native Skills490
- Technical Specification489
- Mobile App Testing480
- Api Design Principles479
- Frontend Design479
- Threejs477
- Csrf Protection474
- Ml Model Training474
- Payment Gateway Integration469
- Test Quality Analysis469
- Api Reference Documentation465
- Tanstack Router461
- Systematic Debugging457
- Interaction Design456
- Mutation Testing456
- Api Error Handling455
- Internationalization I18n455
- Security Headers Configuration454
- Seo Optimizer453
- Sequential Thinking448
- Bun Sqlite442
- Websocket Implementation440
- Mobile App Debugging439
- Root Cause Tracing438