pg-bloat-detective: Postgres Bloat and VACUUM Diagnosis

    1

    Diagnose Postgres table and index bloat, find what is blocking VACUUM, and get the cheapest fix with PID and query evidence. Read-only, works with the pg-bloat-detective MCP server.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    About this skill

    Teaches your agent to use the open-source pg-bloat-detective tool (MIT, on PyPI and the official MCP registry) to diagnose PostgreSQL bloat without writing to your database.

    What it does

    • Collects read-only snapshots (read-only transactions, 5s statement timeout) and returns one verdict per table or index.
    • Table verdicts: normal, vacuum-starved, blocked by an idle transaction, replication slot, prepared transaction or active transaction, and needs-rewrite.
    • Index verdicts: index-bloated (needs REINDEX) and index-unused (DROP candidate, confirm with pg_stat_statements first).
    • Names the PID, query and xmin age holding VACUUM back, and gives the matching fix.

    How it works

    The skill walks your agent through installing the tool (pip install pg-bloat-detective), running the bloat-mcp server, and using its five tools: bloat_check, bloat_collect, bloat_timeline, bloat_blockers and bloat_live_diagnose. It never runs fixes for you. It shows the statement and the evidence and you decide.

    Works with Postgres 12-17 on RDS, Neon, Supabase or self-hosted, per the project README. Source: https://github.com/r69shabh/pg-bloat-detective

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 2 days ago

    • Free to download with an account

    Requires

    Bloat MCP
    Python

    Listed2 days ago

    What's inside

    Frequently Asked Questions

    Free