/ai-stuff:postgres-backup-recoveryfrom ai-stuff
Plan, implement, and verify PostgreSQL backups and recovery: physical base backups with continuous WAL archiving, point-in-time recovery (PITR), pg_basebackup and PG17 incremental backups, pg_receivewal, backup tools (pgBackRest, Barman, WAL-G), snapshots, delayed replicas, restore testing, RPO/RTO, data checksums and corruption checks. Use when designing a backup strategy, restoring to a point in time, debugging WAL archiving or a filling pg_wal, or checking whether existing backups are trustworthy.
Ships in ai-stuff. 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.
A playbook distilled from Scaling Postgres. Evidence, tool status and history
are in reference.md. For failover and replicas, use
postgres-replication-ha.
pg_dump is a logical export for small databases, schema moves, and
cross-version copies. It is not a backup strategy at scale.pg_basebackup only takes the copy. Check each tool's current maintenance
status before adopting it.DELETE immediately.archive_command makes pg_wal grow until the disk fills
and the server stops. Alert on pg_stat_archiver.failed_count,
last_failed_time, and pg_wal size.archive_library (PG15+).pg_receivewal streams WAL with less loss than file-by-file archiving.
Pair it with a replication slot, and watch that slot.restore_command, plus a recovery_target_time /
recovery_target_lsn / recovery_target_name, and
recovery_target_action (pause lets you inspect before promoting).recovery.signal (not recovery.conf, which went away in PG12).
Start the server, verify the data, then promote.initdb --data-checksums, or pg_checksums --enable
offline. Newer versions enable them by default.amcheck (bt_index_check, heapallindexed) periodically and before
trusting an old backup. Keep at least one known-good backup outside the
corruption window.postgres-upgrades).pg_wal growth alerts.amcheck.pg_backup_start/pg_backup_stop or a tool that handles it, and
restore-tested like any other backup.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
25 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./dispatching-parallel-agentsUse ONLY when the developer has explicitly told you to dispatch subagents — never infer or self-authorize it. Splits 2+ independent tasks across isolated subagents, assigns them cheap models, and polls at a per-harness cadence that preserves prompt cache (Claude Code vs Codex/opencode).npx claudepluginhub pauldotsh/ai-stuff --plugin ai-stuff