Registry / thesoftwarehouse

thesoftwarehouse/agentic-collections/optimizing-postgresql-queries

Finds and fixes slow PostgreSQL queries from evidence: pg_stat_statements to find what actually costs time, EXPLAIN (ANALYZE, BUFFERS) read node by node, estimate-versus-actual row counts and stale statistics, choosing the index that fits the query (composite column order, partial, covering, GIN, BRIN), and the query shapes that defeat an index: N+1 loops, OFFSET pagination, functions on indexed columns, OR across columns, implicit casts. Use when an endpoint or job is slow because of the databa

Agent skill · version 0.0.0-main.1795736828.gc6abe8e · from TheSoftwareHouse/agentic-collections

Install

npx yarkr-cli add skill:thesoftwarehouse/agentic-collections/optimizing-postgresql-queries

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:thesoftwarehouse/agentic-collections/optimizing-postgresql-queries
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:thesoftwarehouse/agentic-collections/optimizing-postgresql-queries

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:thesoftwarehouse/agentic-collections/optimizing-postgresql-queries

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.