/iac-automation-skills:pact-configuration-validationfrom iac-automation-skills
Gates deployments on actual contract compatibility using Pact's can-i-deploy check and deployment-tracking API. Verifies a specific consumer or provider version is safe to deploy to a given environment based on every other currently-deployed party's contract state.
Ships in iac-automation-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Writing and passing consumer/provider contract tests (see
pact-contract-testing-configuration)
answers "does this provider version satisfy this consumer's contract" in
isolation — it does not by itself answer the deploy-time question that
actually matters: "given everything currently deployed in this specific
environment, is it safe to deploy this version right now?" A provider
might satisfy the consumer's latest contract while the consumer's
currently deployed version still depends on an older, incompatible
contract shape. Pact's can-i-deploy check and deployment-tracking API
close that gap by asking the broker the actual, environment-specific
compatibility question at deploy time, and this skill covers wiring that
check into CI/CD as a real, enforced gate rather than treating "provider
verification passed at some point" as sufficient.
can-i-deploy gate to a deployment pipeline so an
incompatible version is blocked automatically rather than caught after
a bad deploy causes integration failures.pact-broker / pact CLI, bundled with most Pact
language SDKs or installable standalone) available in the CI/CD
pipeline's deploy stage.can-i-deploy — a mismatch in what "version" means at each
step breaks the whole check.staging, production) used consistently when
recording deployments — see
environment-promotion-strategy.Run can-i-deploy as a required, blocking step immediately before
the actual deploy action, not as an informational check that's
logged but ignored:
pact-broker can-i-deploy \
--pacticipant order-service \
--version "$(git rev-parse --short HEAD)" \
--to-environment production \
--broker-base-url "$PACT_BROKER_URL" \
--broker-token "$PACT_BROKER_TOKEN"
This asks the broker: "given every provider that order-service
depends on and that is currently recorded as deployed to
production, is this order-service version compatible with all
of them?" A non-zero exit code means the deploy should not proceed —
wire it as a pipeline gate whose failure blocks the deploy job, the
same way a failing test would.
Check compatibility in both directions — a consumer being deployed needs to check compatibility against currently-deployed providers, and a provider being deployed needs to check against currently-deployed consumers, so a provider change that breaks an existing consumer is caught before the provider ships, not only when the consumer next deploys:
# inventory-service (provider) checking it's safe to deploy given
# every consumer currently deployed to production
pact-broker can-i-deploy \
--pacticipant inventory-service \
--version "$(git rev-parse --short HEAD)" \
--to-environment production \
--broker-base-url "$PACT_BROKER_URL"
Record every successful deploy back to the broker immediately
after it completes, so the next can-i-deploy check has an
accurate picture of what's actually live — a stale deployment record
makes the check either falsely permissive (checking against a version
that's no longer deployed) or falsely restrictive (blocking a
compatible deploy because the broker still thinks an old, incompatible
version is live):
pact-broker record-deployment \
--pacticipant order-service \
--version "$(git rev-parse --short HEAD)" \
--environment production \
--broker-base-url "$PACT_BROKER_URL"
Place this call right after the deploy step succeeds, in the same pipeline job, so it can never be skipped independently of the deploy actually happening.
Handle a failed can-i-deploy check as a real deploy block, with a
clear message about which contract is incompatible, not a check
that's silently bypassed under time pressure:
Warning: Treating a failed
can-i-deployresult as advisory and deploying anyway defeats the entire purpose of contract validation — if there is a genuine emergency requiring an override, treat it with the same explicit, logged, accountable-approval discipline as any other emergency gate bypass (see emergency-hotfix-deployment-procedure), never a silent skip. The broker's output names the specific incompatible pact (consumer/provider version pair), which should be surfaced directly in the pipeline's failure output so the responsible team knows exactly what to fix.
For services that deploy independently across multiple
environments (staging, then production), run can-i-deploy at each
promotion step, checked against that specific target environment —
compatibility in staging does not guarantee compatibility in
production if the two environments have different versions currently
deployed:
pact-broker can-i-deploy --pacticipant order-service --version "$SHA" \
--to-environment staging ...
# ...later, promoting the same build to production:
pact-broker can-i-deploy --pacticipant order-service --version "$SHA" \
--to-environment production ...
Use can-i-deploy's "pending pacts" / "WIP pacts" features
deliberately when a provider team wants early visibility into an
in-progress consumer contract without blocking the provider's normal
deploys on a contract that isn't finalized yet — this avoids the
common failure mode of provider teams disabling contract validation
entirely because an in-progress consumer change kept blocking
unrelated provider deploys.
can-i-deploy as a hard gate in the deploy job itself, immediately
before the deploy action, not as a separate report someone checks
manually.can-i-deploy in both consumer and provider directions for
every service that plays both roles, so a breaking provider change is
caught before it ships, not only when its consumers next deploy.can-i-deploy check meaningless.can-i-deploy result as something to bypass
silently — route any genuine override through the same explicit,
accountable emergency process as any other deploy gate.Symptom: can-i-deploy reports "safe to deploy" but the deploy
still breaks integration with a service that was, in fact, already
deployed.
Fix: Almost always a stale deployment record — the broker thinks
an old version of the other service is deployed because
record-deployment wasn't called after its last deploy (step 3);
audit whether every service's deploy pipeline actually calls
record-deployment on success, not just on the service being checked.
Symptom: A provider team disables Pact verification/can-i-deploy
entirely because an in-progress consumer contract keeps blocking their
unrelated deploys.
Fix: Use pending/WIP pact support (step 6) so an unfinished
consumer contract doesn't block the provider's normal deploys, instead
of removing the gate altogether and losing protection against real
breaking changes too.
Symptom: can-i-deploy passes in staging, and the team assumes
it's therefore also safe for production, but the production deploy
still breaks compatibility.
Fix: Run can-i-deploy separately against each target environment
(step 5) — staging and production frequently have different versions
of dependent services currently deployed, so compatibility in one
doesn't imply compatibility in the other.
Symptom: Under release pressure, someone deploys despite a failed
can-i-deploy check "because the contract change looks harmless."
Fix: Treat this the same as bypassing any other deploy gate under
pressure — it must go through an explicit, logged, accountable
emergency-override process (step 4), never a silent manual bypass,
since "looks harmless" is exactly the judgment can-i-deploy exists to
replace with an actual check.
Symptom: Two services use different version identifiers when
publishing contracts versus when running can-i-deploy (e.g., a
semantic version tag in one place and a commit SHA in another).
Fix: Standardize on one version identifier scheme (commit SHA is
simplest and always unique) and use it consistently across contract
publish, verification publish, can-i-deploy, and
record-deployment calls — a mismatch here makes the broker unable to
correlate records correctly.
Scenario: order-service (consumer) is ready to deploy build a1b2c3
to production, where inventory-service (provider) is currently running
build f9e8d7.
order-service runs, immediately before the
deploy step:
pact-broker can-i-deploy --pacticipant order-service --version a1b2c3 \
--to-environment production --broker-base-url "$PACT_BROKER_URL"
order-service@a1b2c3's published contract
have a successful verification result recorded against
inventory-service@f9e8d7 (the version currently recorded as deployed
to production)? Yes — the check passes, deploy proceeds.pact-broker record-deployment --pacticipant order-service --version a1b2c3 \
--environment production --broker-base-url "$PACT_BROKER_URL"
so the broker now shows order-service@a1b2c3 as the current
production version.inventory-service prepares to deploy build g1h2i3
to production, which renamed a response field in a way that breaks
compatibility with order-service@a1b2c3's contract (no verification
result exists for that pair). Its pipeline runs
can-i-deploy --pacticipant inventory-service --version g1h2i3 --to-environment production and gets a failing result, naming the
specific incompatible contract with order-service. The deploy is
blocked automatically — the breaking change is caught before it ships,
not discovered as a production incident.can-i-deploy reads.can-i-deploy plugs into as one more required
check before a build moves to the next environment.can-i-deploy result
under genuine time pressure, handled explicitly rather than silently
bypassed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin iac-automation-skills14 skills in this plugin
/ansible-playbook-and-role-designDesigns and safely runs Ansible playbooks, roles, and inventories for configuration management, including idempotent task design, Ansible Vault for secrets, and choosing config-management (Ansible) versus provisioning (Terraform/CloudFormation) for a given change. Use when the user asks to "write an Ansible playbook/role for X," "structure an Ansible inventory across environments," "make this task idempotent," "encrypt secrets with Ansible Vault," "dry-run a playbook before production," or "should this be Ansible or Terraform."
/aws-cloudformation-templatesAuthors and safely operates AWS CloudFormation templates (YAML/JSON), including stacks, change sets, nested and cross-stack references, StackSets for multi-account/multi-region deployment, and drift detection. Use when the user asks to "write a CloudFormation template for X," "structure nested CloudFormation stacks," "deploy the same stack across AWS accounts/regions," "review a CloudFormation change set before applying," "detect/reconcile drift on a stack," or "migrate/compare CloudFormation with Terraform" for an AWS-native IaC choice.
/chef-puppet-saltstack-legacy-config-managementProvides a comparative overview of Chef, Puppet, and SaltStack for teams maintaining existing legacy configuration-management estates alongside or instead of Ansible — agent-based pull architecture, DSL/resource models (Chef recipes/cookbooks, Puppet manifests/catalogs, Salt states/pillars), and a candid assessment of where each still earns its keep in a modern enterprise versus where it's inertia. Use when the user asks to "maintain this existing Chef/Puppet/Salt estate," "write a Chef recipe/Puppet manifest/Salt state," "should we migrate off Puppet to Ansible," "why is our Puppet run applying a change we didn't expect," or "compare Chef vs. Puppet vs. SaltStack."
/feature-flag-configuration-launchdarkly-and-unleashDesigns and operates feature flag configuration with LaunchDarkly or Unleash, covering flag lifecycle (create, target, roll out, retire), kill-switch patterns for fast incident mitigation without a redeploy, targeting/segmentation rules, and cleaning up stale flag debt before it accumulates into unreadable conditional logic. Use when the user asks to "add a feature flag for X," "set up a kill switch for this feature," "configure LaunchDarkly/Unleash targeting rules," "roll out a flag gradually by percentage," "clean up old feature flags," or "should we use LaunchDarkly or self-host Unleash."
/gremlin-chaos-engineering-configurationConfigures Gremlin-specific chaos engineering attacks — installing the Gremlin agent/sidecar, defining resource, state, and network attacks via the Gremlin API/CLI or Terraform provider, scoping blast radius with targets and halt conditions, and running Gremlin Scenarios for multi-step failure sequences. Use when the user asks to "configure a Gremlin attack," "set up the Gremlin agent in Kubernetes/EC2," "write a Gremlin Scenario," "scope a Gremlin blast radius/halt condition," or "use Gremlin to test our failover." For the general chaos-engineering principles (steady-state hypothesis, game days, tool-agnostic blast radius scoping) this configures against, use the SRE chaos-engineering-and-resilience-testing skill instead.
/infrastructure-post-deployment-validation-and-smoke-testingVerifies that a Terraform apply, CloudFormation deploy, or Ansible playbook run actually produced working infrastructure — resource existence and configuration checks, connectivity/health smoke tests, and automated post-apply assertions — rather than treating a clean "apply succeeded" exit code as proof the system works. Use when the user asks to "verify this deployment actually worked," "write a smoke test after terraform apply/cloudformation deploy," "check the resource is actually reachable/configured correctly post-deploy," "add post-deployment validation to the pipeline," or "our apply succeeded but the service is down."
Other plugins' skills for the same job