/devops-skills:database-operationsfrom devops-skills
Covers operational discipline for production databases: connection pooling, online schema changes, replication topology, failover, and runbook habits. Use when sizing pools, adding indexes to live tables, setting up replicas, debugging lag, or planning failover drills.
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 database is the one component in most systems that cannot simply be redeployed when something goes wrong — it holds state that no other system has a copy of. That changes the math on every operational decision: a connection leak that would be a shrug in a stateless service can take down every service sharing that database, and a "quick" index build can lock a table your whole product depends on.
The job is not keeping the database running — it mostly runs itself. The job is making sure every change to it, and every failure mode around it, has already been thought through before it happens under pressure.
Treat the database as the one thing you cannot roll back to a clean slate — every operation against it should assume that.
Every connection costs the database memory and a backend process, and the limit is far lower than the number of application instances that want one. The default failure mode is each service opening its own pool sized for its own convenience, and the sum quietly exceeding what the database can hold.
Done when: the sum of every service's max pool size is known and stays under the database's connection limit with headroom.
A migration that locks a table is a maintenance window nobody scheduled. Most modern databases support adding columns, indexes, and constraints without blocking reads and writes, but only if you use the online variant and avoid the naive one.
For the full multi-phase pattern of changing a schema without downtime, including backfills
and dual-writes, see data-migration — this section is about the mechanics of one statement,
not the sequencing of a whole change.
Done when: the migration's lock behavior has been verified on a realistic data volume before it runs against production.
A replica that only exists for failover is doing half its job. Routing read-heavy traffic to replicas takes load off the primary, but it only works if the application tolerates the replication lag that comes with it.
Done when: every read query has a documented tolerance for staleness, and its target (primary or replica) matches that tolerance.
A failover procedure that has only ever been diagrammed will surprise you the first time it runs for real — DNS caches, stale connection pools, and application retry logic all behave differently than the diagram assumed.
Done when: a failover has been executed end to end, including client reconnection, within the last quarter.
By the time a database is down, it is too late to prevent the incident — the useful signals are the ones that predict trouble minutes or hours ahead.
Done when: an alert exists for at least long-running transactions, lock contention, and disk growth rate — not only for the database being unreachable.
A database with no owner accumulates configuration drift and unreviewed changes until someone has to reverse-engineer it during an incident. Ownership is what makes the previous five sections actually happen instead of staying aspirational.
Done when: every production database has a named owner and a runbook that a different engineer could follow unassisted.
State the connection pool budget and current headroom, the replication topology and its measured lag, and the date of the last failover drill. Name the honest gap — usually a failover procedure that has never been tested end to end, or an owner that exists on paper but has not touched the database's runbook in months — rather than presenting the setup as fully rehearsed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
connection-pooling, schema-migrations, replication, failover, runbooks
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`.