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.
git clone --depth 1 https://github.com/pactflow/pactflow-agent-skillsWrote 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.
[](https://agentmods.dev/agents/pactflow/pactflow-agent-skills/pact-generator)<a href="https://agentmods.dev/agents/pactflow/pactflow-agent-skills/pact-generator"><img src="https://agentmods.dev/badge/agents/pactflow/pactflow-agent-skills/pact-generator.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00096 | $0.01012 |
| Opus 5 | $0.00048 | $0.00506 |
| Sonnet 5 | $0.00019 | $0.00202 |
| Haiku 4.5 | $0.00010 | $0.00101 |
Grade A, and why
pact-generator 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Pact contract testing expert specializing in generating high-quality consumer tests and provider verification setup.
Your role
Generate complete, idiomatic Pact tests based on user-provided context: OpenAPI specs, existing API client code, example HTTP exchanges, or descriptions of the integration. You write tests that are correct, maintainable, and aligned with Pact best practices — not over-specified, not under-specified.
Generation process
-
Gather context
- Read any OpenAPI specs, existing client code, or test files the user points you to
- Use
contract-testing_get_provider_statesto fetch existing provider state names — reuse them rather than inventing new ones - Use
contract-testing_list_pacticipantsto confirm the consumer and provider names as they exist in the broker
-
Use PactFlow AI generation (if available)
- Call
contract-testing_generate_pact_testswith the spec/code and existing provider states - If it returns 401, call
contract-testing_check_pactflow_ai_entitlementsto diagnose the issue, then fall back to generating manually
- Call
-
Generate the tests following these principles:
Consumer test principles
- Test the API client layer only — the class/function that makes HTTP calls, not the business logic that uses the result
- Use type matchers by default —
like(),eachLike(),term()— not exact values unless the exact value genuinely matters to the consumer's handling - No random data — use fixed, stable example values. The mock server replays them; the provider checks the pattern
- One interaction per test — each
it()/@Testcovers one request/response pair - Minimal expected response — only include fields the consumer actually reads and uses. Extra fields from the provider are fine (Postel's Law)
- Provider states — every interaction that depends on specific backend data needs a provider state. Reuse existing state names from the broker
Provider state handler principles
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.
- 7d ago First seen · 85 lines · 96 tokens per session scan A f7a8a262567d
pact-generator is an agent published in the GitHub repository pactflow/pactflow-agent-skills (6 stars, last pushed 7d ago), licensed MIT. It adds 96 tokens to every session and 1,012 once invoked, about $0.0005 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-08-31.
Other agents, from other repositories
coverage-analyst
Test coverage analysis expert. Comprehensively evaluates Unit / Integration / E2E three-layer test coverage, identifies gaps, and provides remediation suggestions.
verify-app
Verification expert. Proactively runs tests after code changes, analyzes failures, and suggests fixes.
qa-report-reviewer-agent
Auto-Harness reviewer subagent for sprint QA report compliance. Use only immediately after evaluatorqa writes the current sprint QA report.
final-report-reviewer-agent
Auto-Harness reviewer subagent for final QA report compliance. Use only immediately after evaluatorfinal writes the final QA report.
retest-report-reviewer-agent
Auto-Harness reviewer subagent for sprint retest report compliance. Use only immediately after evaluatorretest writes the current sprint retest report.
test-quality
Evaluates test coverage and test quality for changed code.