devops-databases
БесплатноБез исполняемых скриптовНе проверенUse when operating (not designing) databases - PostgreSQL installation and tuning (postgresql.conf, pg_hba.conf, roles), PgBouncer pooling, backups and…
от Fusengine★ 36 звёзд на GitHubОб этом скилле
DevOps Databases
Agent Workflow (MANDATORY)
Before ANY change on a database host or cluster, spawn in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - find existing configs, migrations, operator manifests, backup jobs
- fuse-ai-pilot:research-expert - verify the parameter or command for the server's major version at postgresql.org/docs, pgbackrest.org, patroni.readthedocs.io, cloudnative-pg.io
- mcp__context7__query-docs -
/websites/postgresql,/pgbackrest/pgbackrest,/patroni/patroni,/pgbouncer/pgbouncer,/cloudnative-pg/cloudnative-pg
Then read the target read-only (SELECT version(), SHOW ALL, backup info, replication state) BEFORE proposing anything. After writing files, run fuse-ai-pilot:sniper.
Versions (checked 2026-11-10)
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.
Overview
| 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 |
Critical Rules
- Version first -
SELECT version();before any parameter or command; parameters appear and disappear between majors - Backup proof before any risky step - a listed backup is not a proof; the proof is a completed restore test (restore-test-pitr-runbook.md)
- Destructive actions are proposed, not run - ACTION / EFFECT / PROOF / WAIT-FOR-GO, naming what is unrecoverable (destructive-actions.md)
- Read-only first - discovery queries and
info/statuscommands; the agent never runs a statement against a real database that it has not shown - No credential on a command line or in a file -
CHANGE_MEplaceholders in templates; real secrets fromdevops-secrets,PGPASSFILEor.pgpass - One writer - never promote or restore while another node may still accept writes (split brain)
- Never invent a parameter, flag or CRD field - cite the doc page; unknown = "not verified"
Reference Guide
Concepts
| 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 r |
Установить devops-databases в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл devops-databases?
Use when operating (not designing) databases - PostgreSQL installation and tuning (postgresql.conf, pg_hba.conf, roles), PgBouncer pooling, backups and point-in-time recovery (pg_dump, pg_basebackup, pgBackRest, restore tests), streaming and logical replication, Patroni high availability and failover/switchover, major version upgrades (pg_upgrade, logical route), vacuum/bloat/transaction ID wraparound, monitoring queries, lock-safe schema changes in production, PostgreSQL on Kubernetes with CloudNativePG; plus MySQL/MariaDB (GTID replication, backup tools), Redis/Valkey (RDB/AOF, Sentinel vs Cluster) and MongoDB pointers. Not for application schema or ORM modelling (framework experts), generic backup/storage strategy (devops-storage-backup), exporters and dashboards (devops-observability), secret stores (devops-secrets) or managed cloud databases.
Как установить скилл devops-databases?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devops-databases запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub