Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 91
  • 13k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-pro

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install postgres-pro in Claude Code

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

A

No 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 →
hugging-face-datasetssickn33
94

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.

AAA Skill 50k
db-repairgarrytan
94

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.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

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.

AAA Skill 116k
fix-slow-queriespaperclipai
94

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.

AAA Skill 119k
prisma-8prisma
94

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.

AAA Skill 48k

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.

postgres-pro Install

Add to stack

Loading.