/devops-skills:infrastructure-as-codefrom devops-skills
Treats infrastructure changes as version-controlled, reviewable configuration using Terraform, CloudFormation, or Pulumi. Covers state management, plan review, environment parity, and guardrails against irreversible changes.
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.
Read when SKILL.md points to them.
The value of IaC isn't that it's faster than clicking through a console — it's that the configuration file is the single source of truth, and anyone can read it to know what the system actually is without logging into anything. The moment someone makes a change out of band, that promise breaks, and every plan after it lies a little.
Terraform is the default lens here because it's the common ground across clouds, but the discipline applies equally to CloudFormation, Pulumi, or Bicep.
If the state of the system can't be reconstructed by reading the repo, it isn't infrastructure as code — it's infrastructure with extra steps.
For Terraform specifics — plan symbols, state operations, backends, forced replacement, and drift
detection — read references/terraform.md.
terraform plan exists so nobody has to trust their own diff — read the actual output, every
time, even for changes that feel trivial. The plan is the one place a typo becomes visible before
it becomes an incident: a renamed resource that Terraform reads as destroy-then-create, a
provider default that shifted, a variable that resolved to something unexpected.
policy-as-code) should see the diff before it lands.Done when: the plan output for every production apply is attached to its approval record, so what was approved can be compared against what was applied.
Terraform state is the map between your configuration and real-world resource IDs. Lose it, and you haven't lost a file — you've lost the ability to manage anything without manual reconciliation. Corrupt it with a concurrent write, and two applies can fight over the same resource.
Done when: state is remote, locked, encrypted, and scoped one-per-environment, with no
history of a local .tfstate file ever being committed or emailed around.
The first time someone copies a module directory to make a "staging version," the two copies start drifting the moment either one is edited alone. The environments are supposed to be the same system at different sizes — the code should say so.
# environments/staging.tfvars
instance_count = 2
instance_type = "t3.medium"
# environments/prod.tfvars
instance_count = 6
instance_type = "m5.xlarge"
One module, one set of .tf files, and a .tfvars file per environment. See
environment-management for the fuller promotion and parity story — this is the mechanical
enabler of it.
Done when: creating a new environment means adding a values file, not copying and editing a directory of resource definitions.
Most changes — adding a server, resizing a queue — are cheap to undo if wrong. A few are not:
dropping a database, deleting a bucket with force_destroy, or shrinking a cluster below what a
stateful workload needs. Automation should treat those differently from everything else.
prevent_destroy on anything that can't be cheaply recreated — primary databases,
KMS keys, anything holding data with no upstream source of truth.terraform destroy unattended, even in non-prod, without
a separate confirmation step.Done when: every irreversible resource has a lifecycle guard or a required manual approval standing between a plan and its apply.
Copy-pasting the same 20 lines into a third resource is the signal to modularize — not the first
time you write it, and often not even the second. A module built from one use case guesses at an
interface; a module built from three real ones has an interface backed by evidence. See
terraform-modules for how to design the interface once you're actually there.
Done when: every module in the repo can point to at least two real call sites that justified its extraction, not a single speculative one.
Config declares the intended state, but consoles, CLIs, and other teams' scripts can still change
the real one. Without a scheduled plan run comparing intent to reality, drift accumulates
silently until an apply surfaces it as a surprise diff touching things nobody meant to change.
Done when: a scheduled job reports diff-or-clean on every environment, and someone actually looks at the diffs.
State which environments have remote, locked, encrypted state, whether irreversible resources are guarded, and the outcome of the most recent scheduled drift check. Name the honest gap — usually an environment still on local state, a lifecycle guard that was never added, or drift detection that isn't wired up yet — rather than implying the whole estate is fully reconciled.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
terraform, cloudformation, pulumi, state-management, plan-review, drift-detection
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skillsOther plugins' skills for the same job
88 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`.