/fuse-devops:devops-databasesfrom fuse-devops
Operates production databases: PostgreSQL tuning, auth, PgBouncer pooling, pgBackRest backup/PITR, streaming/logical replication, Patroni HA, major upgrades, vacuum/wraparound, monitoring, lock-safe schema changes, CloudNativePG on Kubernetes; plus MySQL/MariaDB GTID replication, Redis/Valkey RDB/AOF and Sentinel vs Cluster, and MongoDB pointers.
Ships in fuse-devops. 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.
Before ANY change on a database host or cluster, spawn in parallel, one Agent call each with a name:
/websites/postgresql, /pgbackrest/pgbackrest, /patroni/patroni, /pgbouncer/pgbouncer, /cloudnative-pg/cloudnative-pgThen read the target read-only (SELECT version(), SHOW ALL, backup info, replication state) BEFORE proposing anything. After writing files, run fuse-ai-pilot:sniper.
PostgreSQL supports a major version for 5 years; 18.6, 17.11, 16.15, 15.19 are supported and 14.24 gets its final release on 2026-11-12 - treat 14 as end of life this week; 13 and older are unsupported; 19 is at RC1 (https://www.postgresql.org/support/versioning/). pgBackRest 2.60.0 (2026-10-18), Patroni 4.1.5 (2026-08-12), PgBouncer 1.26.1 (2026-10-14, fixes three CVEs: run 1.26.1 or later), CloudNativePG 1.30.1 (1.30.x supports Kubernetes 1.34-1.36 and PostgreSQL 14-18). Details and sources inside each reference.
| Area | Decision in one line |
|---|---|
| Version | New builds on the newest supported major with the current minor; plan a move off any major within 12 months of its final release |
| Pooling | PgBouncer in transaction mode with max_prepared_statements > 0; session features break in that mode |
| Backup | Physical (pgBackRest or CNPG Barman Cloud plugin) + WAL archive for PITR; pg_dump is a complement, never the only copy; a backup counts only after a restore test |
| HA | Patroni + a 3-node DCS (etcd) on VMs; CloudNativePG on Kubernetes; failover automatic, switchover planned |
| Upgrade | pg_upgrade --check first; logical replication route for near-zero downtime; take a new base backup after |
| Maintenance | Keep autovacuum on; watch age(datfrozenxid); never VACUUM FULL on a live table without a window |
| Migrations | lock_timeout on every DDL, CREATE INDEX CONCURRENTLY, NOT VALID then VALIDATE |
| Other engines | MySQL/MariaDB: GTID replication, official dump/backup tools; Redis/Valkey: persistence is a choice, Sentinel for HA |
SELECT version(); before any parameter or command; parameters appear and disappear between majorsinfo/status commands; the agent never runs a statement against a real database that it has not shownCHANGE_ME placeholders in templates; real secrets from devops-secrets, PGPASSFILE or .pgpass| Topic | Reference | When to Consult |
|---|---|---|
| Versions and config | postgres-versions-config.md | Install, postgresql.conf memory/WAL/checkpoints |
| Roles and auth | postgres-roles-auth.md | pg_hba.conf, SCRAM, least-privilege roles |
| Pooling | connection-pooling-pgbouncer.md | Too many connections, transaction mode pitfalls |
| Backup and PITR | backup-pitr-pgbackrest.md | pgBackRest stanza, WAL archive, restore to a point in time |
| Dump and base backup | backup-logical-physical.md | pg_dump, pg_basebackup, incremental, Barman pointer |
| Replication | replication-streaming-logical.md | Replicas, slots, lag, logical replication |
| High availability | ha-patroni.md | Patroni, etcd, failover vs switchover, split brain |
| Major upgrades | major-upgrades.md | pg_upgrade, logical route, extensions |
| Vacuum | vacuum-bloat-wraparound.md | Bloat, autovacuum tuning, XID wraparound |
| Monitoring | monitoring-queries.md | Activity, locks, slow queries, lag |
| Safe migrations | schema-changes-safe.md | DDL on a busy table |
| Kubernetes | postgres-on-kubernetes-cnpg.md | CloudNativePG cluster, backup, upgrade, alternatives |
| Destructive catalogue | destructive-actions.md | Any irreversible command |
| MySQL / MariaDB | mysql-mariadb-ops.md | Backup, GTID replication, divergence |
| Redis / Valkey | redis-valkey-ops.md | Persistence, Sentinel vs Cluster, eviction |
| MongoDB | mongodb-pointers.md | One-line pointers only |
| Template | When to Use |
|---|---|
| postgresql-tuned.conf | Starting parameters with the reasoning per line |
| pg_hba.conf.example | SCRAM, TLS, narrow CIDRs, replication entries |
| pgbouncer.ini | Transaction pooling with prepared statements |
| pgbackrest.conf | Repository, retention, archive settings |
| pgbackrest-commands.md | Backup, info, verify, restore command sheet |
| patroni.yml | One Patroni node with etcd3 |
| cnpg-cluster.yaml | CloudNativePG Cluster, ObjectStore, Pooler |
| cnpg-scheduledbackup.yaml | Scheduled base backups via the plugin |
| monitoring-queries.sql | Read-only health queries |
| lock-safe-migration-checklist.md | Before any production DDL |
| restore-test-pitr-runbook.md | Proving a backup and a PITR |
psql "host=db1 dbname=postgres user=ops" -Atc "select version(), pg_is_in_recovery()" # password from PGPASSFILE
pgbackrest --stanza=main info # backups and WAL range, read-only
patronictl -c /etc/patroni/patroni.yml list # topology and lag, read-only
kubectl --context "$CTX" -n "$NS" get cluster.postgresql.cnpg.io # CNPG status, read-only
pg_stat_archiver.failed_countmax_slot_wal_keep_size and disk alerts in place before a replica or slot is addedpg_dump alone as disaster recovery, or run a restore over a live instancepostgresql.conf on a Patroni or CloudNativePG member by hand: the manager owns itreferences/backup-logical-physical.md (opens in a new tab)references/backup-pitr-pgbackrest.md (opens in a new tab)references/connection-pooling-pgbouncer.md (opens in a new tab)references/destructive-actions.md (opens in a new tab)references/ha-patroni.md (opens in a new tab)references/major-upgrades.md (opens in a new tab)references/mongodb-pointers.md (opens in a new tab)references/monitoring-queries.md (opens in a new tab)references/mysql-mariadb-ops.md (opens in a new tab)references/postgres-on-kubernetes-cnpg.md (opens in a new tab)references/postgres-roles-auth.md (opens in a new tab)references/postgres-versions-config.md (opens in a new tab)references/redis-valkey-ops.md (opens in a new tab)references/replication-streaming-logical.md (opens in a new tab)references/schema-changes-safe.md (opens in a new tab)references/templates/cnpg-cluster.yaml (opens in a new tab)references/templates/cnpg-scheduledbackup.yaml (opens in a new tab)references/templates/lock-safe-migration-checklist.md (opens in a new tab)references/templates/monitoring-queries.sql (opens in a new tab)references/templates/patroni.yml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fusengine/claude-plugins --plugin fuse-devops18 skills in this plugin
/devops-ansibleUse when writing, reviewing, testing or running Ansible - choosing ansible-core and community package versions (control node and managed node Python), static and dynamic inventory with group_vars/host_vars, variable precedence, playbooks, roles and collections (ansible-galaxy, requirements.yml, FQCN), idempotency (changed_when/failed_when), handlers, tags, Jinja2 templates, Ansible Vault and no_log, privilege escalation, check mode and diff mode, --limit, serial/rolling updates and max_fail_percentage, block/rescue/always, performance (forks, pipelining, fact caching, strategy), ansible-lint, Molecule, execution environments (ansible-navigator, ansible-builder), project layout, and Ansible versus Terraform/OpenTofu. Not for Terraform/OpenTofu state and modules (devops-iac), Linux host internals (devops-linux), CI pipeline authoring (devops-cicd), secret stores (devops-secrets), Proxmox or OpenStack platform internals (devops-proxmox, devops-openstack) or a security hardening audit (fuse-security:security-expert)./devops-cicdUse when writing, reviewing or debugging CI/CD pipelines for self-hosted infrastructure - GitHub Actions (workflows, reusable workflows, composite actions, matrix, concurrency, caching, environments with required reviewers, OIDC instead of stored secrets, pinning actions by SHA or lockfile, permissions least privilege, self-hosted runners), GitLab CI (rules, needs, includes and components, environments, resource_group, protected variables, runners and executors), pointers for Jenkins / Forgejo-Gitea Actions / Woodpecker, pipeline design (build once promote many, quality gates, speed), image builds in CI (BuildKit cache, multi-arch, provenance/SBOM/signing), deploy strategies and rollback, release automation and pipeline troubleshooting. Not for GitOps controllers, Helm or Kustomize (devops-gitops-packaging), Dockerfile and registry craft (devops-docker), secret stores (devops-secrets), language-specific CI gates (framework experts), repo commit/release flow (commit agent) or a supply-chain audit (fuse-security:security-expert)./devops-dockerUse when configuring Docker Engine (daemon.json, logging, storage, live-restore), writing Compose files, building images with BuildKit/Buildx (multi-stage, cache mounts, multi-platform, SBOM/provenance, Bake), publishing ports safely next to a host firewall (iptables, experimental nftables backend, ufw/firewalld), running a private registry, signing images with cosign, running daemonless containers with Podman/Quadlet, or troubleshooting/cleaning a container host. Not for Kubernetes (devops-kubernetes), CI pipelines (devops-cicd), dependency vulnerability audits (fuse-security:dependency-audit) or Swarm./devops-gitops-packagingUse when packaging or delivering workloads to Kubernetes - Helm 4 charts (values, values.schema.json, dependencies, OCI registries, upgrade/rollback/test), Kustomize bases, overlays, patches and components, choosing Helm vs Kustomize vs both, Argo CD (Application, ApplicationSet, AppProject, sync policy, waves, hooks, app-of-apps), Flux (GitRepository, OCIRepository, Kustomization, HelmRelease, image automation), GitOps repository layout, promotion between environments, drift and rollback. Not for the Kubernetes resources themselves (devops-kubernetes), cluster install or upgrade (devops-k8s-cluster), CI pipelines that build images (devops-cicd) or secret stores (devops-secrets)./devops-iacUse when writing, reviewing or operating infrastructure as code with OpenTofu or Terraform - choosing between them, project layout, provider pinning and the lock file, remote state (S3-compatible/MinIO, HTTP, PostgreSQL, Kubernetes), locking and state encryption, state surgery (import/moved/removed blocks, state mv/rm, force-unlock), modules, variables and validation, environments (workspaces vs directories vs Terragrunt), the saved-plan review/apply workflow, drift detection, tofu/terraform test, tflint/checkov/trivy, and the providers for Proxmox VE, OpenStack, Kubernetes/Helm, Docker and libvirt. Not for Ansible (devops-ansible), Packer and cloud-init images (devops-virtualization), Proxmox or OpenStack platform internals (devops-proxmox, devops-openstack), secret stores (devops-secrets), CI pipeline authoring (devops-cicd) or public-cloud providers./devops-k8s-clusterUse when building, upgrading, repairing or choosing the Kubernetes cluster itself - kubeadm, k3s or Talos (RKE2 and Cluster API as pointers), HA control plane and API endpoint, etcd health/backup/restore, version skew and upgrade order, node join/drain/replace/remove, certificate expiry, Cilium as CNI (kube-proxy replacement, Gateway API support), bare-metal LoadBalancer IPs (Cilium LB IPAM and L2 announcements, MetalLB, kube-vip) and cluster-level troubleshooting (NotReady nodes, etcd quorum loss, API server down, CNI broken). Not for workloads, Services, Gateway resources, RBAC or day-to-day kubectl (devops-kubernetes), Helm/Kustomize/Argo CD/Flux (devops-gitops-packaging), CSI backend internals (devops-storage-backup) or VM provisioning (devops-proxmox, devops-virtualization).Other plugins' skills for the same job