Pg Slow — Data skill for Claude Code
Find the queries eating your PostgreSQL database (pgbot).
How to install Pg Slow
Installs to ~/.claude/skills/pymodel-pgbot-pg-slow/SKILL.md
mkdir -p ~/.claude/skills/pymodel-pgbot-pg-slow && curl -fsSL https://raw.githubusercontent.com/PyModel/pgbot/HEAD/commands/pg-slow.md -o ~/.claude/skills/pymodel-pgbot-pg-slow/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Pg Slow does
description: Find the queries eating your PostgreSQL database (pgbot) argument-hint: "[connection-string]"
Identify the queries consuming the most database time.
Use the pgbot `top_queries` MCP tool if it's connected, otherwise run `pgbot queries "$ARGUMENTS"` (fall back to `$DATABASE_URL`). Also run `pgbot tables "$ARGUMENTS"` to spot a large table taking heavy sequential scans — that's a missing-index signal, and it often correlates with a hot query filtering the same table.
Report
Alternatives in Data
- SQL Queries — Generate SQL queries from natural language across major dialects 7.8k ★
- MySQL — Safe read-only SQL queries against MySQL databases 159 ★
- Postgres Wizard — 🗄️ PostgreSQL Wizard 96 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
DB Opt
Identifies and optimizes slow database queries and schema bottlenecks.
Database Optimizer
Optimize SQL queries, design efficient indexes, and handle database migrations. Solves N+1 problems, slow quer
DB Profile
Profile database queries with EXPLAIN ANALYZE, diagnose slow scans, and recommend indexes.
Ssms Claude Chat
SSMS Claude Chat: free Claude AI assistant for SQL Server Management Studio (SSMS 21/22). Ask about your datab
Read Only Postgres
by jawwadfirdousi - Read-only PostgreSQL query skill for Claude Code. Executes SELECT/SHOW/EXPLAIN/WITH querie
Add Database Railway
Set up PostgreSQL database with Prisma ORM and complete data layer.
Related Agents
PostgreSQL Expert
Designs and optimizes PostgreSQL schemas, queries, indexes, and migrations, reasoning from EXPLAIN plans and p
DB Schema Expert
Use PROACTIVELY for anything touching prisma/schema.prisma, database migrations, raw SQL, slow query optimizat
Supabase Optimizer
Proactively optimizes Supabase database performance, cost efficiency, and scalability. Use for analyzing slow