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
- Notion Sync — /notion-sync - Push Ranked Jobs and Applications to a Notion Database 36.6k ★
- OpenViking — Self-evolving Context Database for AI Agents 33.3k ★
- SQL Queries — Generate SQL queries from natural language across major dialects 7.8k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
DB Opt
Identifies and optimizes slow database queries and schema bottlenecks.
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.
Claude Code Postgres
Query a real PostgreSQL database in plain English from the terminal with Claude Code, safely: read-only role f
Postgres Backup Restore Skill
Claude Code skill for PostgreSQL backup, verification, restore, and cutover — database-agnostic
Newjobs
Find new matching roles and add them to the Job Tracker database
Related Agents
PostgreSQL Expert
Designs and optimizes PostgreSQL schemas, queries, indexes, and migrations, reasoning from EXPLAIN plans and p
Supabase Optimizer
Proactively optimizes Supabase database performance, cost efficiency, and scalability. Use for analyzing slow
Database Optimization
Database performance optimization and query tuning specialist. Use PROACTIVELY for slow queries, indexing stra