/devops-skills:configuration-managementfrom devops-skills
Covers Ansible, Chef, and Puppet for managing mutable systems declaratively with idempotent tasks, convergence toward desired state, inventory organization, and roles. Use when writing playbooks, cookbooks, or manifests, debugging convergence, organizing host inventories, or deciding between config management and immutable infrastructure.
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.
A shell script installs a package. A configuration management tool declares that the package should be installed — and then checks, every time it runs, whether that's already true before doing anything. That distinction is the entire value: a script run twice can fail or duplicate work, but a well-written playbook run a hundred times against a host that's already correct does nothing at all, safely.
Ansible, Chef, and Puppet exist to describe desired state, not a sequence of steps. The moment a task is written as an imperative command instead of a declared outcome, that guarantee is gone.
If running the same playbook twice changes anything the second time, it isn't idempotent — and if it isn't idempotent, it isn't safe to run in a hurry, which is exactly when you'll need to.
command: apt-get install -y nginx runs every time, whether or not nginx is already there, and
Ansible has no way to know if it changed anything. The apt or package module, by contrast,
checks state first and reports back "changed" or "ok" honestly.
- name: Ensure nginx is installed and running
apt:
name: nginx
state: present
- name: Ensure nginx is enabled and running
service:
name: nginx
state: started
enabled: true
creates:, changed_when:, or
equivalent guard so the run can still report truthfully.Done when: running the playbook twice in a row against the same host reports zero changes on the second run.
Configuration management earns its keep at scale, and that requires hosts to be grouped by role and environment so a change can target "all web servers in staging" instead of a hand-maintained list of IPs someone has to update every time a server is added or removed.
Done when: adding or removing a host requires no edit to any playbook, only an inventory change.
A role that configures nginx, sets up log rotation, and hardens SSH all at once can't be reused
for a host that needs only one of those things, and it's harder to test in isolation. Roles are
the module system of configuration management — see terraform-modules for the equivalent
discipline in Terraform, though the composition mechanics differ.
nginx, log-rotation, ssh-hardening as separate roles
composed together on a host, not merged into one.Done when: each role can be applied to a fresh host on its own and produce a correct, working result without depending on another role having already run.
The instinct when a host is in an unknown state is to write a script that walks it from wherever it is to where it should be. Configuration management inverts that: declare where it should end up, and let the tool figure out what, if anything, needs to change. This is what makes it safe to run against a fleet in mixed, unknown states — a freshly imaged host and a three-year-old one converge to the same result from the same playbook.
Done when: the same playbook can be run unmodified against a brand-new host and an existing, drifted one, and both end up in the identical target state.
Configuration management manages long-lived, mutable hosts well. It manages the problem of "this
host has drifted and I need to reconcile it" — a problem that doesn't exist at all if hosts are
never mutated after boot. If the fleet is autoscaled, frequently replaced, or the goal is a
byte-identical fleet, baking a golden image and replacing rather than converging is usually
simpler and more reliable. See immutable-infrastructure for that model and how to decide
between the two.
Done when: the choice between config management and image-baking for this fleet is a documented decision, not a default nobody reconsidered.
A playbook that's only ever been run manually against production is a playbook that's never
actually been tested — it's been performed. Run it in CI against a container or ephemeral VM,
asserting both that the first run converges and the second run is a no-op. See
infrastructure-testing for the broader pattern this fits into.
Done when: every playbook change runs through an automated convergence test before it's applied to a real fleet.
State which roles and playbooks exist, what inventory groups they target, and whether idempotency was verified with a two-run test. Name the honest gap — usually a play still using raw shell commands without change guards, an inventory that's manually maintained instead of dynamic, or a fleet that was never evaluated against the immutable-infrastructure alternative — rather than implying the whole fleet reliably converges.
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`./artifact-managementVersions, stores, and promotes build outputs — registries, immutability, build-once-promote-many, retention and garbage collection, and provenance metadata. Use this whenever the user sets up an artifact or container registry, asks how to promote a build between environments without rebuilding, needs a retention or cleanup policy, or wants to trace where an artifact came from. For an image's contents and size use `image-optimization`; for vulnerability scanning use `image-scanning`./autoscalingCovers scaling Kubernetes workloads and nodes to demand — HPA on the right metric, VPA, cluster autoscaler, custom/external metrics, avoiding thrash with stabilization windows, and requests as the foundation underneath it all. Use this whenever the user is configuring an HPA, deciding between HPA and VPA, debugging autoscaling that flaps, or sizing a cluster autoscaler. For the requests/limits autoscaling depends on use `kubernetes-operations`; for cost tradeoffs use `cost-optimization`./backup-and-restoreDefines the discipline of building backups you can actually restore under pressure — RPO-driven frequency, restores rehearsed on a schedule, offsite immutable copies, encryption, and treating a backup that has never been restored as equivalent to no backup at all. Use this whenever the user sets up a backup job, chooses a retention policy, argues about RPO or RTO, asks whether current backups are enough, or plans for ransomware or accidental deletion. For the wider recovery plan use `disaster-recovery`, and for stateful platform durability use `stateful-workloads`.