contract-testing-designer

contract-testing-designer is a skill for Claude Code, Codex from codebygarv/Ai-skills. It costs 24 tokens per session (300 once invoked), scanned A, original, MIT.

A guide for designing contract tests, which check that services and their clients agree on the shape and meaning of requests and responses.

In plain words
What is it for?
Use it to plan consumer-driven tests with Pact or OpenAPI for HTTP, gRPC, or message-based services and run them in CI.
Why use it?
It helps prevent one service or backend API change from breaking another service or a frontend, without relying on a large shared end-to-end environment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan consumer-driven tests with Pact or OpenAPI for HTTP, gRPC, or message-based services and run them in CI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codebygarv/ai-skills/contract-testing-designer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add codebygarv/Ai-skills --skill contract-testing-designer
Clone the repo
git clone --depth 1 https://github.com/codebygarv/Ai-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for contract-testing-designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/codebygarv/ai-skills/contract-testing-designer.svg)](https://agentmods.dev/skills/codebygarv/ai-skills/contract-testing-designer)
Your own site
<a href="https://agentmods.dev/skills/codebygarv/ai-skills/contract-testing-designer"><img src="https://agentmods.dev/badge/skills/codebygarv/ai-skills/contract-testing-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 300 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00300
Opus 5 $0.00012 $0.00150
Sonnet 5 $0.00005 $0.00060
Haiku 4.5 $0.00002 $0.00030

Measured 3d ago against content hash a168ae381b2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

contract-testing-designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/testing/contract-testing-designer/SKILL.md · 33 lines

What it actually says

Purpose

Design consumer-driven contract testing suites (Pact, OpenAPI contract validators) to ensure microservices and frontend/backend interfaces stay compatible without requiring expensive, brittle end-to-end test environments.

When to Use

  • Microservices that communicate over HTTP REST, gRPC, or message queues.
  • Preventing frontend outages caused by uncoordinated backend API payload changes.
  • Replacing flaky end-to-end staging environments with fast, isolated CI contract verification.

What to Analyze

  1. Consumer Expectations: What fields does the client actually read and rely on?
  2. Provider State Definitions: Setting up backend database fixtures to satisfy contract scenarios.
  3. Contract Serialization (Pact JSON / OpenAPI Schema): Contract artifact published to a central broker.
  4. CI Verification Gate: Provider builds verifying against all active consumer contracts before deploying (can-i-deploy).

Output Format

  • Consumer Contract Test: Pact consumer test asserting request shape and response mock.
  • Provider Verification Test: Provider test running against the contract with state handlers.
  • CI Pipeline Workflow: Integration with Pact Broker or schema registry.

Avoid

  • Writing contracts that assert on every unused field in the response (violates consumer-driven principle).
  • Relying on manual human reviews to detect breaking JSON changes.
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 33 lines · 24 tokens per session scan A a168ae381b2b

Subscribe to this mod's changes

contract-testing-designer is a skill published in the GitHub repository codebygarv/Ai-skills (25 stars, last pushed 18d ago), licensed MIT. It adds 24 tokens to every session and 300 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

bun-api

Bun runtime API reference for TypeScript scripts. Covers Bun.serve() HTTP/HTTP/2 server with routes and WebSockets, fetch() transport options, Bun.file(), Bun.write(), Bun.$() shell, Bun.spawn(), Bun.Glob, Bun.env, bun:sqlite, Bun.sql() for PostgreSQL/MySQL via DATABASEURL, Bun.s3 for S3-compatible storage, Bun.redis…

dmythro/agent-skills · 250 tokens

bun-cli

Bun CLI reference for package management, script running, testing, bundling, and compilation. Covers bun install/add/remove/update, bun run, bun test, bun build, bunx, bun patch, bun audit fix, bun dedupe, bun prune, bun why, bun pm, bun repl, bunfig.toml, bun.lock, workspace catalogs, isolated installs and the global…

dmythro/agent-skills · 179 tokens

thirdparty-api-integration-test

Create and run gated Go integration tests for third-party APIs with real external calls, strict configuration gates, bounded timeouts, and safe runtime controls. Use for vendor/client contract verification and failure triage.

johnqtcg/awesome-skills · 47 tokens

endpoint-validator

Deterministic API endpoint validation with pass/fail reporting.

notque/vexjoy-agent · 15 tokens

django-tdd

Django testing strategies with pytest-django, TDD methodology, factoryboy, mocking, coverage, and testing Django REST Framework APIs.

loulanyue/awesome-claude-notes · 32 tokens

springboot-tdd

Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.

loulanyue/awesome-claude-notes · 42 tokens