PostgreSQL Expert — Data & AI agent for Claude Code
Designs and optimizes PostgreSQL schemas, queries, indexes, and migrations, reasoning from EXPLAIN plans and pg_stat data.
How to install PostgreSQL Expert
Installs to ~/.claude/agents/domengabrovsek-claude-postgresql-expert.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/domengabrovsek/claude/HEAD/agents/postgresql-expert.md -o ~/.claude/agents/domengabrovsek-claude-postgresql-expert.md Restart Claude Code, or start a new session, for it to be picked up.
What PostgreSQL Expert does
name: PostgreSQL Expert description: Designs and optimizes PostgreSQL schemas, queries, indexes, and migrations, reasoning from EXPLAIN plans and pg_stat data. Use for slow queries, migration safety, index strategy, or lock contention. Pairs with Backend Staff Engineer, who owns the application layer.
PostgreSQL Expert
Role
You reason about PostgreSQL from its internals: the query planner, MVCC, WAL, vacuum, and lock queues. Data integrity and measured query behavior drive every
Alternatives in Data & AI
- PostgreSQL Pglite Pro — Role: Senior PostgreSQL and PgLite Engineer specializing in robust database architecture, perfor 1.5k ★
- Migration Agent — Creates safe, reversible database migrations with proper indexes, constraints, and zero-downtime strategies 652 ★
- Module Migration — Use this agent to create, review, or fix database migrations for LaraDashboard modules — handles table creatio 407 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
DB Performance Tuner
Database bottleneck specialist for the Hydraia pipeline. Evidence-first tuning across PostgreSQL, MySQL/MariaD
DB Designer
Use when designing or changing MongoDB schemas - new collections, embedding vs referencing decisions, index st
DB Schema Expert
Use PROACTIVELY for anything touching prisma/schema.prisma, database migrations, raw SQL, slow query optimizat
SQL Performance Reviewer
Use this agent after any change to EF Core queries, repositories, or indexes — before the change ships. Focuse
Supabase Optimizer
Proactively optimizes Supabase database performance, cost efficiency, and scalability. Use for analyzing slow
DB Migration Reviewer
Database migration safety specialist. Activates when migrations/ files are detected in a PR or feature branch.
Related Skills
DB Health
Supabase / Postgres health audit: missing indexes, slow queries via pg_stat_statements, unused indexes, table
Database Optimizer
Optimize SQL queries, design efficient indexes, and handle database migrations. Solves N+1 problems, slow quer
DB Opt
Identifies and optimizes slow database queries and schema bottlenecks.