/devops-skills:immutable-infrastructurefrom devops-skills
Covers replacing servers wholesale instead of patching in place — baking golden images, treating instances as disposable cattle, rebuilding for any change, and the rollback simplicity that provides.
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.
Every server that's ever been SSH'd into to fix something is now a unique, undocumented artifact — its actual state exists only on that machine, not in any repo. Multiply that by a fleet and you get servers that have quietly diverged from each other in ways nobody can enumerate, discovered only when one of them fails differently than the rest.
Immutable infrastructure closes that gap by removing the option: nothing is ever changed on a running instance. To make a change, you build a new image and replace the instance that's running the old one. There is no in-place path, so there's no drift to accumulate.
Servers are cattle, not pets — you don't nurse a sick one back to health, you replace it and move on, and the fact that you can tell them apart at all is the bug.
The rule is absolute, not a preference: if a change needs to happen, it happens in the image build pipeline, and a new instance rolls out. SSH access for routine changes shouldn't just be discouraged — the access itself should be hard to get, because the two-second fix under pressure is exactly how drift gets reintroduced.
Done when: no instance in the fleet has ever received a change that isn't also in the image it was built from.
A golden image is only trustworthy if it's reproducible — built by a pipeline from a versioned definition (Packer template, Dockerfile, or equivalent), not assembled once by hand and then snapshotted. A hand-built image is a pet wearing a cattle costume.
# packer template excerpt
source "amazon-ebs" "app" {
ami_name = "app-{{timestamp}}"
instance_type = "t3.medium"
source_ami_filter { ... }
}
build {
sources = ["source.amazon-ebs.app"]
provisioner "shell" { script = "provision.sh" }
}
image-scanning for the vulnerability-scanning
step this pipeline should include.Done when: every image in use can be traced to a specific pipeline run and source commit, and rebuilding from that commit reproduces an equivalent image.
Deploying a change means launching new instances from the new image and retiring the old ones —
via a rolling update, blue-green swap, or autoscaling group refresh — not pushing new config to
instances that keep running. See deployment-strategies for the mechanics of how that rollout
happens safely at the traffic-shifting level.
Done when: a deploy is observable as a set of new instance IDs replacing a set of old ones, with no instance ID persisting across a deploy that changed its content.
The biggest practical payoff of immutability is that rollback stops being a special, scary procedure — it's the same replace-the-fleet mechanism, pointed at the previous known-good image instead of the new one. There's no "undo the last three config changes" reasoning to do, because there were never in-place changes to undo.
Done when: rolling back to the prior release requires no more than re-triggering the same deploy path against the previous image tag.
Instances are disposable, but data usually isn't — a database, uploaded files, or session state
baked into local disk vanishes the moment the instance is replaced. Push persistent state onto
managed, externally-attached storage (a managed database, object storage, a network volume) so
replacing the compute layer never risks the data layer. See stateful-workloads for handling the
minority of components that genuinely can't be made stateless this way.
Done when: terminating any instance in the fleet, without warning, causes no data loss.
Not everything belongs on this model — a handful of legacy systems or specialized appliances
can't be cleanly re-imaged on every change without disproportionate cost. For those, converge
them deliberately with configuration management instead of pretending they're immutable while
secretly patching them by hand. See configuration-management for that model and how to choose
between the two honestly.
Done when: every host that isn't immutable has been explicitly designated as such, with a config-management process, rather than being an accidental exception nobody decided on.
State which fleets are fully immutable, how images are built and versioned, and what (if anything) still receives in-place changes. Name the honest gap — usually a lingering SSH access path used "just this once," a legacy host quietly mutated outside the image pipeline, or state that isn't yet externalized off an instance that gets replaced — rather than claiming the whole estate is cattle.
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`.