swagger-contract-testing
v1.3.0Expert assistant for PactFlow and Pact contract testing — consumer-driven contracts, provider verification, can-i-deploy, BDCT, Drift CLI, and OpenAPI spec parsing. Includes specialized agents for reviewing and generating pact tests.
By Kevin Rohan Vaz6 GitHub starsUpdated 2 months ago
Directory evidence
- Runtimes
- Codex, Claude Code, and Agent Plugins
- Parsed components
- 7 skill or MCP entries
- Source updated
- Oct 4, 2026
- Manifest status
- Canonical path parsed
The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology →
Install swagger-contract-testing for Codex and Claude Code
codex plugin marketplace add pactflow/pactflow-agent-skills
codex plugin marketplace upgrade pactflow-agent-skills
codex plugin add swagger-contract-testing@pactflow-agent-skillsPaste and run these commands in a terminal with Codex. They add and refresh the pactflow-agent-skills catalog, then install this plugin.
Compatibility: the page URL and API slug “swagger-contract-testing” remain stable.
- Codex:
swagger-contract-testing@agent-plugin-marketplace→swagger-contract-testing@pactflow-agent-skills
The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.
Get the source manually
git clone https://github.com/pactflow/pactflow-agent-skillsClone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is plugins/swagger-contract-testing/.
Plugin files
├── .codex-plugin/plugin.json├── .claude-plugin/plugin.json├── plugin.json├── skills/asyncapi-generator/SKILL.md├── skills/asyncapi-parser/SKILL.md├── skills/drift-testing/SKILL.md├── skills/oas-generator/SKILL.md├── skills/openapi-parser/SKILL.md├── skills/pactflow/SKILL.md└── .mcp.json
Included Skills6
Generates an AsyncAPI 3.x YAML spec from a service codebase using ripwire when no spec exists. Invoke this skill whenever the user needs an AsyncAPI spec for an event-driven service that doesn't have one published — phrases like "generate an asyncapi spec from the code", "there's no asyncapi for this service", "document our Kafka topics as a spec", "create a spec from the producers and consumers", "reverse-engineer the event contract", or any time a Drift/AsyncAPI testing workflow (asyncapi-parser, drift-testing) is blocked because the spec is missing. Uses ripwire to find message producers and consumers and extract topics/queues and payload shapes across Kafka, SNS/SQS, RabbitMQ/AMQP, NATS, Google Pub/Sub, MQTT, Redis and WebSocket clients in Node.js, Python, Java/Kotlin, Go, Ruby and other ripwire-supported languages. Always ask for the codebase path if not provided. Requires ripwire on PATH.
Parses AsyncAPI 3.x specs and generates Drift test cases from them. Use whenever the user wants to generate, write, or scaffold Drift tests from an AsyncAPI spec — especially when the spec contains complex message schemas: oneOf/anyOf/allOf, discriminators, polymorphism, $ref chains, or multiple message variants. Use when the user wants to test async event-driven services (Kafka, SNS, SQS), when they ask to "create tests for a channel", "cover all message variants", "generate test cases from the AsyncAPI spec", or says anything like "each viable combination of messages". Use when the user is trying to understand what payload variants a message schema produces, or when they paste an AsyncAPI operation and ask what tests to write.
Verifies API implementations against OpenAPI specifications using the Drift CLI, catching spec drift and supporting Bi-Directional Contract Testing (BDCT). Use when the user mentions Drift, API contract testing, provider contract testing, provider verification, spec drift, API conformance testing, OpenAPI verification, BDCT, drift expressions, drift datasets, drift lifecycle hooks, or Lua scripting in a testing context. Use when the user asks to write, run, or debug Drift test cases. Use when the user wants to test their API against an OpenAPI spec, generate tests from an OpenAPI spec, or check whether their API has drifted from its spec. Use when the user wants full endpoint coverage, wants all tests to pass, or asks to "keep running until everything passes". Also use when the user mentions AsyncAPI, event-driven API testing, Kafka contract testing, SNS or SQS testing, async message contracts, or wants to verify that a service publishes or consumes messages matching an AsyncAPI spec.
Generates an OpenAPI 3.x YAML spec from a provider codebase using ripwire when no spec exists. Invoke this skill whenever the user needs an OpenAPI spec for a service that doesn't have one published — phrases like "generate an openapi spec from the code", "there's no oas for this service", "create a spec from the codebase", "the provider doesn't have a spec", or any time a pact-coverage or contract testing workflow is blocked because the provider spec is missing. Uses ripwire to extract HTTP route definitions and handler schemas across Ruby (Rails/Sinatra), Node.js (Express/Fastify), Python (Flask/FastAPI), and other ripwire-supported languages. Always ask for the codebase path if not provided. Requires ripwire on PATH.
Parses complex OpenAPI specs and generates Drift test cases from them. Use whenever the user wants to generate, write, or scaffold Drift tests from an OpenAPI spec — especially when the spec contains complex schemas: anyOf/oneOf/allOf, discriminators, polymorphism, inheritance, $ref chains, regex patterns, enums, or optional fields. Use when the user asks to "create tests for an endpoint", "cover all response variants", "generate test cases from the spec", or says anything like "each viable combination of responses". Use when the user is trying to understand what values are valid for a complex schema field, or when they paste a spec path and ask what tests to write.
Expert assistant for PactFlow and Pact contract testing. Use this skill whenever the user mentions PactFlow, Pact, contract testing, consumer-driven contracts, provider verification, can-i-deploy, pact broker, pacticipants, bi-directional contract testing (BDCT), publishing pacts, recording deployments, provider states, the contract matrix, or managing environments and versions in a PactFlow workspace. Also trigger when the user wants to generate or review Pact tests using AI, check deployment safety, investigate why a consumer-provider verification failed, or integrate contract testing into CI/CD. Trigger even if the user doesn't say "PactFlow" explicitly — phrases like "safe to deploy?", "check compatibility between services", "consumer test", "OpenAPI contract", "AsyncAPI contract", or "service compatibility matrix" are strong signals.
MCP servers1
- command
- npx
- args
- -y @smartbear/mcp@latest
- env.PACT_BROKER_BASE_URL
- ${user_config.pact_broker_base_url}
- env.PACT_BROKER_TOKEN
- ${user_config.pact_broker_token}
Plugin manifests3
{
"name": "swagger-contract-testing",
"description": "Expert assistant for PactFlow and Pact contract testing — consumer-driven contracts, provider verification, can-i-deploy, BDCT, Drift CLI, and OpenAPI spec parsing. Includes specialized agents for reviewing and generating pact tests.",
"version": "1.3.0",
"author": {
"name": "Kevin Rohan Vaz",
"email": "[email protected]"
},
"skills": "./skills/",
"agents": [
"./agents/pact-generator.md",
"./agents/pact-implementor.md",
"./agents/pact-reviewer.md",
"./agents/bdct-tester.md",
"./agents/pact-maintainer.md",
"./agents/pact-coverage.md"
],
"mcpServers": "./.mcp.json",
"userConfig": {
"pact_broker_base_url": {
"title": "PactFlow Base URL",
"description": "Your PactFlow or Pact Broker URL (e.g. https://yourorg.pactflow.io)",
"type": "string",
"sensitive": false
},
"pact_broker_token": {
"title": "PactFlow API Token",
"description": "PactFlow API token — get it from app.pactflow.io/settings/api-tokens",
"type": "string",
"sensitive": true
}
}
}{
"name": "swagger-contract-testing",
"description": "Expert assistant for PactFlow and Pact contract testing — consumer-driven contracts, provider verification, can-i-deploy, BDCT, Drift CLI, and OpenAPI spec parsing. Includes specialized agents for reviewing and generating pact tests.",
"version": "1.3.0",
"author": {
"name": "Kevin Rohan Vaz",
"email": "[email protected]"
},
"skills": "./skills/",
"agents": [
"./agents/pact-generator.md",
"./agents/pact-implementor.md",
"./agents/pact-reviewer.md",
"./agents/bdct-tester.md",
"./agents/pact-maintainer.md",
"./agents/pact-coverage.md"
],
"mcpServers": "./.mcp.json",
"userConfig": {
"pact_broker_base_url": {
"title": "PactFlow Base URL",
"description": "Your PactFlow or Pact Broker URL (e.g. https://yourorg.pactflow.io)",
"type": "string",
"sensitive": false
},
"pact_broker_token": {
"title": "PactFlow API Token",
"description": "PactFlow API token — get it from app.pactflow.io/settings/api-tokens",
"type": "string",
"sensitive": true
}
}
}{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "swagger-contract-testing",
"version": "1.3.0",
"description": "Expert assistant for PactFlow and Pact contract testing — consumer-driven contracts, provider verification, can-i-deploy, BDCT, Drift CLI, and OpenAPI spec parsing. Includes specialized agents for reviewing and generating pact tests.",
"author": {
"name": "Kevin Rohan Vaz",
"email": "[email protected]"
},
"homepage": "https://github.com/pactflow/pactflow-agent-skills",
"repository": "https://github.com/pactflow/pactflow-agent-skills",
"extensions": {
"com.anthropic.claude": {
"agents": [
"./agents/pact-generator.md",
"./agents/pact-implementor.md",
"./agents/pact-reviewer.md",
"./agents/bdct-tester.md",
"./agents/pact-maintainer.md",
"./agents/pact-coverage.md"
],
"userConfig": {
"pact_broker_base_url": {
"title": "PactFlow Base URL",
"description": "Your PactFlow or Pact Broker URL (e.g. https://yourorg.pactflow.io)",
"type": "string",
"sensitive": false
},
"pact_broker_token": {
"title": "PactFlow API Token",
"description": "PactFlow API token — get it from app.pactflow.io/settings/api-tokens",
"type": "string",
"sensitive": true
}
}
}
}
}For maintainers
If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.
[swagger-contract-testing on Agent Plugins Marketplace](https://pluginsmp.com/plugins/swagger-contract-testing)