Postgres index tuning
Skill alexngai/skill-tree/docs/demo/skills/postgres-index-tuning
Diagnose a slow Postgres query and add the right index using EXPLAIN ANALYZE.From its SKILL.md
npx -y skills add alexngai/skill-tree --skill postgres-index-tuningAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
0.6 KB, 111 tokens by cl100k_base, as published. Nobody here has run it
Postgres Index Tuning
- Run
EXPLAIN (ANALYZE, BUFFERS)on the slow query; look forSeq Scanon large tables. - Identify the filtered/joined columns driving the scan.
- Add a targeted index (
CREATE INDEX CONCURRENTLYin production to avoid locks). - Re-run
EXPLAIN ANALYZEand confirm the planner switched to anIndex Scan. - Drop indexes that never appear in
pg_stat_user_indexes— they only slow writes.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.