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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00038 | $0.00405 |
| Sonnet 5.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 3mo 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.
- 3mo 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 (7 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 1,012 once invoked, about $0.0004 per session on Opus 5.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.
pact-generator compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pact-generatorpactflow/pactflow-agent-skills | Agent | 7 | today | MIT | A | 96 | Claude Code |
| feasibility-analystsd0xdev/sd0x-harness | Agent | 196 | 6d ago | MIT | A | 35 | Claude Code |
| solution-architectsd0xdev/sd0x-harness | Agent | 196 | 6d ago | MIT | A | 26 | Claude Code |
| strict-reviewersd0xdev/sd0x-harness | Agent | 196 | 6d ago | MIT | A | 29 | Claude Code |
| refactor-reviewersd0xdev/sd0x-harness | Agent | 196 | 6d ago | MIT | A | 20 | Claude Code |
| code-simplifiersd0xdev/sd0x-harness | Agent | 196 | 6d ago | MIT | A | 20 | Claude Code |
| verify-appsd0xdev/sd0x-harness | Agent | 196 | 6d ago | MIT | A | 21 | Claude Code |