Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

devops-databases

БесплатноБез исполняемых скриптовНе проверен

Use when operating (not designing) databases - PostgreSQL installation and tuning (postgresql.conf, pg_hba.conf, roles), PgBouncer pooling, backups and…

Fusengineот Fusengine★ 36 звёзд на GitHub

Об этом скилле

Covers running databases in production as an operator: PostgreSQL in depth (config, auth, pooling, backup and PITR, replication, Patroni HA, upgrades, vacuum, monitoring, safe migrations, CloudNativePG), then MySQL/MariaDB and Redis/Valkey essentials and MongoDB pointers. Does not cover application schema or ORMs (framework experts), generic backup and storage design (devops-storage-backup), exporters and dashboards (devops-observability) or managed cloud databases.

DevOps Databases

Agent Workflow (MANDATORY)

Before ANY change on a database host or cluster, spawn in parallel, one Agent call each with a name:

  1. fuse-ai-pilot:explore-codebase - find existing configs, migrations, operator manifests, backup jobs
  2. 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
  3. 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

  1. Version first - SELECT version(); before any parameter or command; parameters appear and disappear between majors
  2. 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)
  3. Destructive actions are proposed, not run - ACTION / EFFECT / PROOF / WAIT-FOR-GO, naming what is unrecoverable (destructive-actions.md)
  4. Read-only first - discovery queries and info/status commands; the agent never runs a statement against a real database that it has not shown
  5. No credential on a command line or in a file - CHANGE_ME placeholders in templates; real secrets from devops-secrets, PGPASSFILE or .pgpass
  6. One writer - never promote or restore while another node may still accept writes (split brain)
  7. 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
Полный SKILL.md на GitHub

Установить devops-databases в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/backup-logical-physical.mdreferences/backup-pitr-pgbackrest.mdreferences/connection-pooling-pgbouncer.mdreferences/destructive-actions.mdreferences/ha-patroni.mdreferences/major-upgrades.mdreferences/mongodb-pointers.mdreferences/monitoring-queries.mdreferences/mysql-mariadb-ops.mdreferences/postgres-on-kubernetes-cnpg.mdreferences/postgres-roles-auth.mdreferences/postgres-versions-config.mdreferences/redis-valkey-ops.mdreferences/replication-streaming-logical.mdreferences/schema-changes-safe.mdreferences/templates/cnpg-cluster.yamlreferences/templates/cnpg-scheduledbackup.yamlreferences/templates/lock-safe-migration-checklist.mdreferences/templates/monitoring-queries.sqlreferences/templates/patroni.ymlreferences/templates/pg_hba.conf.examplereferences/templates/pgbackrest-commands.mdreferences/templates/pgbackrest.confreferences/templates/pgbouncer.inireferences/templates/postgresql-tuned.confreferences/templates/restore-test-pitr-runbook.mdreferences/vacuum-bloat-wraparound.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить devops-databases с