postgres

Automate PostgreSQL queries, schema changes, backups, and diagnostics via psql tools.

4|3|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/qhkm/zeptoclaw-skills --skill postgres-qhkm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres
Source: https://github.com/qhkm/zeptoclaw-skills/tree/main/postgres
Command: npx skills add https://github.com/qhkm/zeptoclaw-skills --skill postgres-qhkm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL administration is error-prone and time-consuming; this skill automates common tasks like queries, schema changes, backups, and performance diagnostics to improve reliability and speed.

Core Features & Use Cases

  • Querying and diagnostics: run and optimize SQL queries, inspect table stats, and identify slow operations.
  • Schema management and migrations: apply schema changes safely and track evolutions in a controlled way.
  • Backup and restore workflows: create consistent backups, restore from dumps, and manage schema-only or table-specific backups.
  • Performance tuning scenarios: analyze workloads, tune parameters, and monitor query performance.

Quick Start

Connect to your database using a DATABASE_URL and run a representative maintenance workflow.

Frequently Asked Questions about postgres

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

FAQPage Schema
How do I automate PostgreSQL database administration tasks like backups and schema changes?

Automate PostgreSQL database administration by applying workflows for schema changes, backups, and diagnostics. This requires a connection string and access to psql tools to execute reliable data management operations across development and production environments.

What is the best way to run PostgreSQL diagnostics and identify slow queries?

Run PostgreSQL diagnostics by inspecting table statistics and analyzing workloads to identify slow operations. This allows you to monitor query performance and pinpoint bottlenecks requiring performance tuning or parameter adjustments in your database environment.

Do I need psql tools installed to manage my PostgreSQL database remotely?

Yes, you need psql tools such as psql, pg_dump, and pg_restore installed alongside a valid DATABASE_URL connection string. These tools are required to execute queries, manage schema migrations, and perform backup and restore workflows remotely.

Can I create table-specific or schema-only backups for my PostgreSQL database?

Yes, you can create consistent PostgreSQL backups that are table-specific or schema-only. Using pg_dump, you can generate targeted dumps and subsequently restore them using pg_restore to manage controlled schema migrations or isolated data recovery.

How do I safely apply schema changes and track migrations in a production PostgreSQL database?

Safely apply schema changes to a production PostgreSQL database by running controlled migration workflows that track schema evolutions. This ensures reliable data management and prevents deployment errors during schema modifications in live environments.

How does performance tuning work for slow PostgreSQL query workloads?

Performance tuning for slow PostgreSQL workloads involves analyzing database operations, tuning configuration parameters, and monitoring query performance. This diagnostic process identifies slow operations and applies optimizations to improve overall workload execution speed.