db-admin

Diagnose PostgreSQL production health, create verified backups, and configure replication.

110|14|Updated May 12, 2026
One-click install
npx skills add https://github.com/EliasOulkadi/shokunin --skill db-admin-eliasoulkadi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-admin
Source: https://github.com/EliasOulkadi/shokunin/tree/main/.pack/skills/db-admin
Command: npx skills add https://github.com/EliasOulkadi/shokunin --skill db-admin-eliasoulkadi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps you keep a PostgreSQL production database safe and healthy by automating backups, verifying restores, monitoring critical health signals, and configuring replication and maintenance.

Core Features & Use Cases

  • Health monitoring: checks connection saturation, active/long-running queries, cache hit ratio, dead tuple accumulation, and unused indexes to catch issues early.
  • Backup and restore workflow: creates compressed custom-format pg_dump backups and performs restore-based verification by loading into a temporary database.
  • Operations automation for production: sets scheduled backups with retention (daily/weekly/monthly), configures PgBouncer connection pooling, and supports streaming or logical replication plus WAL archiving for PITR.

Quick Start

Ask an AI to use the db-admin Skill to run a health check for your PostgreSQL database named myapp and return which metrics fail or warn.

Frequently Asked Questions about db-admin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a PostgreSQL health check for long-running queries and cache hit ratio?

PostgreSQL health monitoring checks connection saturation, active queries, cache hit ratio, dead tuple accumulation, and unused indexes. It evaluates these metrics against thresholds to generate actionable health decisions and catch production issues early before they degrade database performance.

What's the best way to verify a PostgreSQL backup and restore workflow?

A PostgreSQL backup and restore workflow creates compressed custom-format pg_dump backups and performs restore-based verification by loading the backup into a temporary database. This ensures your backup files are valid and recoverable without risking your primary production data.

How do I configure WAL archiving and streaming replication for PostgreSQL PITR?

WAL archiving and streaming replication for PostgreSQL PITR require concrete operational configurations for your database cluster. The setup provides the exact configuration parameters needed to establish continuous WAL shipping and replica nodes for point-in-time recovery and high availability.

Can I use PgBouncer connection pooling with scheduled backup retention?

PgBouncer connection pooling and scheduled backup retention can be configured together for production PostgreSQL operations. You can set daily, weekly, and monthly backup retention schedules while simultaneously applying PgBouncer pooling configurations to manage client connection saturation.

When should I use vacuum tuning for dead tuple accumulation in PostgreSQL?

Vacuum tuning for dead tuple accumulation is needed when PostgreSQL health monitoring detects significant bloat from dead rows. The health check identifies dead tuple accumulation and unused indexes, allowing you to trigger maintenance tasks before transaction ID wraparound or performance degradation occurs.