postgres-pro
Skill by Jeffallan
Guides an AI assistant through PostgreSQL work: query tuning with EXPLAIN, JSONB indexing, replication setup, extensions and VACUUM tuning. Written for database engineers and administrators.
Install postgres-pro
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Jeffallan/claude-skills /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/skills/postgres-pro ~/.claude/skills/postgres-proRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Jeffallan/claude-skills /tmp/claude-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-skills/skills/postgres-pro ~/.gemini/antigravity-cli/skills/postgres-proAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
PostgreSQL Pro is a skill for AI assistants that covers PostgreSQL database administration and performance work. Its core workflow runs EXPLAIN (ANALYZE, BUFFERS) to find bottlenecks, designs B-tree, GIN, GiST or BRIN indexes, rewrites slow queries, sets up streaming or logical replication, and monitors health through pg_stat views. The skill includes example SQL for slow query analysis, JSONB GIN indexes, VACUUM and bloat checks, and replication lag monitoring.
The skill points to reference guides for performance, JSONB, extensions, replication and maintenance, and names PostGIS, pgvector, pg_trgm and pg_stat_statements among supported extensions. Its constraints require concurrent index creation in production and verification that the planner uses new indexes. It is aimed at database engineers and administrators who work with PostgreSQL 12 to 16.
Written from the project's SKILL.md and checked against it.
What it can do
- EXPLAIN analysisRuns EXPLAIN (ANALYZE, BUFFERS) to find slow queries and bottlenecks.
- Index designChooses B-tree, GIN, GiST or BRIN indexes and checks them with EXPLAIN.
- JSONB operationsSets up GIN indexes and containment queries on JSONB columns.
- Replication setupConfigures streaming or logical replication and monitors replication lag.
- VACUUM tuningChecks dead tuples, tunes autovacuum and runs manual VACUUM with ANALYZE.
- Extension usageCovers PostGIS, pg_trgm, pgvector, uuid-ossp and pg_stat_statements.
- Performance monitoringUses pg_stat views to track slow statements, bloat and replication state.
What you need
- PostgreSQL 12 to 16
Try asking
- Analyze this slow query with EXPLAIN ANALYZE and suggest an index
- Create a GIN index for my JSONB events table and show a containment query
- Check which tables have high dead tuple counts and tune autovacuum
Good to know
- The knowledge reference covers PostgreSQL 12 to 16.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/postgres-pro/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to postgres-pro
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
postgres-pro: common questions
What PostgreSQL versions does postgres-pro cover?
The skill's knowledge reference lists PostgreSQL 12 to 16. It does not state support for other versions.
Does postgres-pro create indexes in production?
The skill recommends CREATE INDEX CONCURRENTLY to avoid table locks in production. It also says indexes should be verified with EXPLAIN before and after creation.
Which extensions does postgres-pro mention?
The source names PostGIS, pg_trgm, pgvector, uuid-ossp and pg_stat_statements. It has a reference guide for extension usage.
How do I install postgres-pro?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is postgres-pro free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is postgres-pro safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to postgres-pro?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
