Testland
Browse all skills & agents

qa-contract-testing

Contract testing for microservices: 5 skills (contract-compatibility-gate, graphql-schema-regression, openapi-contract-diff, pact-contract-testing, protobuf-compat-checking) and 2 agents (contract-drift-investigator, contract-test-scaffolder).

Install this plugin

/plugin install qa-contract-testing@testland-qa

Part of role bundles: qa-role-sdet, qa-role-backend

qa-contract-testing

Contract testing for microservices: Pact (consumer + provider + broker + can-i-deploy in one), OpenAPI / GraphQL / Protobuf compat checking, and a contract drift investigator.

Components

TypeNameDescription
Skillpact-contract-testingAuthor Pact consumer tests, publish pact files to the Broker, verify on the provider, gate deploys with can-i-deploy.
Skillopenapi-contract-diffDiff two OpenAPI specs with oasdiff breaking; classify findings ERR/WARN/INFO; gate CI with --fail-on.
Skillgraphql-schema-regressionDiff GraphQL schemas with graphql-inspector; classify BREAKING/DANGEROUS/NON_BREAKING; apply deprecation-aware rules.
Skillprotobuf-compat-checkingWrap buf breaking with category selection (FILE/PACKAGE/WIRE_JSON/WIRE), ignore patterns, and CI gating.
Skillcontract-compatibility-gateAggregate Pact / oasdiff / graphql-inspector / buf-breaking verdicts into a single severity-aware go/no-go gate with markdown + JSON artifact for CI.
Agentcontract-drift-investigatorDiff current contracts vs last-known-green; categorize drift (provider-implementation / schema-rename / removal / narrowing / consumer-expectation / data-fixture / version-skew); route to owner.
Agentcontract-test-scaffolderRead OpenAPI / GraphQL SDL / Protobuf / existing pact and emit scaffolded Pact consumer or provider tests, schemathesis fuzzing runners, or buf breaking baselines - never inventing example values the artifact does not declare.

Install

/plugin marketplace add testland/qa
/plugin install qa-contract-testing@testland-qa

Skills

contract-compatibility-gate

Builds a unified deployment-readiness gate that aggregates verdicts from any combination of Pact `can-i-deploy`, oasdiff (OpenAPI), graphql-inspector (GraphQL), and `buf breaking` (Protobuf), applies severity-aware pass/fail thresholds, and emits a single go / no-go decision with per-finding rationale. Use when authoring a CI step that gates a deployment on cross-protocol contract compatibility.

graphql-schema-regression

Diffs two GraphQL schemas with `graphql-inspector diff`, classifies each change as BREAKING / DANGEROUS / NON_BREAKING, and applies opt-in rules (suppress-removal-of-deprecated-field, consider-usage, ignore-description-changes) to gate CI on schema regressions. Use when reviewing GraphQL schema changes in a PR or evaluating Federation supergraph drift.

openapi-contract-diff

Diffs two OpenAPI versions for breaking changes (removed endpoints, deleted schemas, narrowed enums, response shape changes) using `oasdiff breaking`, severity-classifies the findings (ERR / WARN / INFO), and gates CI with `--fail-on`. Use when reviewing an OpenAPI spec change in a PR or on a release tag.

pact-contract-testing

Authors and verifies Pact consumer-driven contract tests across the full Pact lifecycle - consumer tests producing pact files, publishing to the Pact Broker, provider verification, and `can-i-deploy` deployment gates. Use when introducing a new HTTP/JSON API contract between two services, diagnosing breaking changes, or wiring contract verification into CI.

protobuf-compat-checking

Wraps `buf breaking` to compare a Protobuf schema against a past version, classifies breaking changes by category (FILE / PACKAGE / WIRE_JSON / WIRE), configures buf.yaml rule selection plus per-path exemptions, and gates CI on the exit code. Use when reviewing `.proto` changes in a PR for gRPC services, BSR modules, or schema-versioned message bus payloads.