PactFlow Agent Skills
Agent skills teach your AI coding assistant — Claude Code, GitHub Copilot, Cursor, Windsurf, and others — how to work with Pact, PactFlow, and Drift. Instead of explaining contract testing concepts every time you start a conversation, the skills give your AI persistent, deep knowledge of consumer test patterns, provider verification, can-i-deploy diagnostics, Drift test authoring, and workspace management.
The plugin goes further: it bundles the SmartBear MCP server alongside the skills, so your assistant can connect directly to your PactFlow workspace or Pact Broker. It can fetch live provider states before generating tests, query the contract matrix to diagnose a failing can-i-deploy, publish pacts and provider contracts, record deployments, and manage environments — all without leaving your editor.
There are two types of components in this repo. Skills are context files that activate when the task matches — the assistant reads them and applies the knowledge. Agents are autonomous sub-tasks the PactFlow skill delegates to: generating tests, reviewing them for best-practice violations, running a full BDCT flow end-to-end, or auditing workspace health.
| Plugin name | Skills / Agents | What it does |
|---|
swagger-contract-testing | Drift | Expert assistant for Drift — PactFlow's OpenAPI contract testing CLI. Helps write test cases, configure lifecycle hooks, debug failures, and publish results to PactFlow. |
| OpenAPI Parser | Parses complex OpenAPI specs (anyOf/oneOf/allOf, discriminators, polymorphism, $ref chains, enums, regex) and generates Drift test cases covering every viable schema combination. |
| PactFlow | Expert assistant for PactFlow and Pact contract testing. Uses the SmartBear MCP contract-testing_* tools to generate and review Pact tests with AI, publish contracts, verify providers, run can-i-deploy checks, record deployments, and manage the full PactFlow workspace (environments, pacticipants, BDCT, webhooks, secrets, metrics). |
| pact-generator | Agent: generates new Pact consumer tests and provider state handlers from existing code, OpenAPI specs, or example request/response pairs. |
| pact-reviewer | Agent: reviews Pact consumer tests and provider verification code for best-practice violations, false positives, and provider state naming issues. |
| pact-implementor | Agent: builds a new Pact client library from scratch in any language by wrapping the Pact FFI. |