/devops-skills:infrastructure-testingfrom devops-skills
Tests infrastructure and config before shipping with validate-and-plan checks, policy enforcement, unit/integration tests for IaC modules, and ephemeral test environments. Helps catch plan-level mistakes that break production.
Ships in devops-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.
Infrastructure changes fail differently than application code — a syntactically valid Terraform plan can still delete a production database, and a Kubernetes manifest that passes schema validation can still deploy a container that can't reach anything it needs. "It applied without error" is not evidence of correctness; it's evidence the tool understood the syntax.
Most infrastructure testing gaps come from treating plan output as sufficient review, when a plan
only tells you what will change, never whether that change is safe. Test infrastructure changes
against the same rigor as application code — fast local checks first, real environments before
production, no exceptions for "it's just config."
Application testing pyramids assume unit tests are cheap and environment tests are expensive; for infrastructure the same shape holds but the layers look different — a fast static check catches most mistakes, and a real environment is reserved for what nothing else can validate.
| Layer | What it catches | Speed |
|---|---|---|
| Lint / format | Syntax, style, drift from conventions | Seconds |
| Validate / plan | Type errors, what would actually change | Seconds–minutes |
| Policy check | Violations of security or cost rules | Seconds |
| Unit test (module) | A module produces correct output for given inputs | Seconds–minutes |
| Integration test | Real resources actually work together | Minutes–hours |
Done when: every change passes lint, validate, and policy checks before it reaches a step that provisions anything real.
A terraform plan or kubectl diff tells you what will change, not whether that change is what
you meant. The dangerous failure is a plan that's technically correct but does something the
author didn't intend — a renamed resource that Terraform reads as delete-then-recreate, a changed
selector that silently orphans running pods.
Done when: every apply against a stateful or production resource has had its plan output reviewed by a human against what the change was intended to do.
A policy check that runs and reports violations without blocking the change is documentation, not
enforcement — it gets ignored under deadline pressure exactly when it matters most. See
policy-as-code for writing the rules; this skill is about making sure they actually stop a bad
change rather than just noting it happened.
Done when: a change violating a required policy cannot merge or apply without an explicit, logged override, not just a warning in CI output.
An IaC module that's reused across a dozen environments deserves the same input-output testing
discipline as a shared library — feed it a set of inputs, assert the plan or rendered output looks
right, without provisioning anything real. See terraform-modules for the module structure this
tests against.
Done when: every reusable module has tests covering its documented inputs that run without provisioning real infrastructure.
Some things — actual network reachability, real IAM policy evaluation, an autoscaler's real behavior under load — can't be validated by static analysis. An ephemeral environment, spun up per change and torn down after, gives you that proof without the cost or drift risk of a permanent shared test environment.
environment-management for keeping environments consistent.Done when: every change that can't be fully validated statically runs against a fresh, isolated environment before reaching production, and that environment is torn down afterward.
State which pyramid layers are enforced as required gates, whether policy failures block or just report, and what ephemeral-environment coverage exists for changes static checks can't validate.
Name the honest gap — usually a policy check that reports but doesn't block yet, or a module with no input-coverage tests — rather than claiming the pipeline fully prevents bad infrastructure changes from shipping.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.