# Contract tests between services (/testing--contract-testing)

/testing--contract-testing is a Claude Code skill in the Code section. Sets up consumer-driven contract tests (Pact by default) so breakages between services are caught at build time without running both together.

- Web version: https://skills.sgomez.dev/en/s/testing--contract-testing
- Section: [Code](https://skills.sgomez.dev/en/code.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/testing/contract-testing.md
- Updated 10 Jul 2026

## How to ask for it

- `/testing--contract-testing add contract tests between my frontend and API`
- `/testing--contract-testing set up Pact between these two microservices`
- `/testing--contract-testing how do I verify consumer and provider compatibility?`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install testing-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: `**/*.test.*`, `**/*.spec.*`, `**/*_test.*`, `pacts/**`, `contracts/**`, `package.json`, `requirements*.txt`, `.github/workflows/**`
- Runs: `npm`, `npx`, `pytest`, `mvn`, `gradle`, `go test`, `dotnet test`
- Network: No
- Destructive: No

## Author's description

Add consumer-driven contract tests (Pact-style) between services

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
