/devops-skills:stateful-workloadsfrom devops-skills
Covers running stateful systems (databases, queues, search indexes) on Kubernetes using StatefulSets, durable storage, backup, and failover. Use when deploying stateful workloads, debugging data loss on restart, or evaluating self-hosting vs managed services.
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.
Kubernetes and most modern orchestration platforms were designed around the assumption that any instance can be killed and replaced without consequence. That assumption is exactly wrong for stateful systems — a database pod is not interchangeable with a fresh one, because the data lives on that one pod's storage and nowhere else until you've deliberately made it otherwise.
Running state on infrastructure built for stateless workloads works, but only if you actively undo the platform's default assumptions: give the workload stable identity, give it storage that outlives the pod, and give it a recovery story that does not depend on the pod ever coming back the way it left.
The platform will happily reschedule, evict, and recreate your stateful pod exactly like a stateless one — unless you've told it not to, in writing, ahead of time.
A StatefulSet gives each pod a stable name, stable network identity, and a stable claim on its own volume across restarts — that is the entire value it adds over a Deployment. It does not make the workload stateful-aware, backed up, or replicated on its own.
operators-and-crds)
built specifically for that system.Done when: each stateful pod has a stable identity the application actually depends on, not just a default StatefulSet used out of habit for something that could be a Deployment.
The single most common way to lose data on Kubernetes is storage that is tied to the node instead of the cluster — when the node dies, the data dies with it, regardless of how the pod gets rescheduled.
kubernetes-storage for the volume provisioning mechanics.Done when: a node failure or pod rescheduling event does not result in data loss, verified by an actual test, not just the StorageClass configuration.
Treating backup and failover as an afterthought added after the workload is already running in production means finding out they do not work at the worst possible time. Both need to be part of the initial deployment, not a follow-up ticket.
backup-and-restore, rather than
deferring backup setup until after the workload is handling real traffic.Done when: backup and failover have both been exercised against this specific deployment, not assumed to work because the underlying software supports them in general.
Running a database or queue yourself on Kubernetes is not free just because the compute is "already there" — it trades a monthly bill for ongoing operational burden: patching, failover tuning, backup verification, and being the one paged when it breaks at 3am.
Done when: the self-managed-versus-managed decision for this workload is written down with its actual reasoning, not left as an unexamined default.
Stateful systems degrade differently than stateless ones when they run out of room — a full disk on a database can corrupt state or halt writes entirely, not just slow down under load.
capacity-planning for the broader forecasting discipline.Done when: storage headroom and growth rate are both visible on a dashboard, with an alert before the volume is projected to fill.
The most reliable way to reduce stateful operational burden is to have less state to operate. Components that could be stateless but accumulate local state by accident inherit all of this skill's obligations without anyone deciding they should.
Done when: every component with a PersistentVolumeClaim is listed with what state it holds and why that state cannot live in a shared backend instead.
State which components are genuinely stateful, whether each uses an operator or hand-rolled failover logic, and the result of the most recent disruption test (node failure, pod deletion). Name the honest gap — usually a storage backend never tested against actual node failure, or a self-managed-versus-managed decision that was never explicitly made — rather than presenting the deployment as production-hardened.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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`.