Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reads Django and PostgreSQL query plans from QuerySet.explain() or EXPLAIN ANALYZE to find scan, join, and row-count bottlenecks.
83% 91%+9 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 19 of 23 without it.
3 of 3 safety checks passed
35 agent runs
Use this skill when the expensive unit is a specific SQL statement or queryset. The goal is to explain why the database is doing work, not to guess from the ORM code.
Get the exact query.
Generate a plan.
queryset.explain() for ORM-owned SQL.EXPLAIN for raw SQL, views, materialized views, or SQL copied from logs.analyze=True only in a safe environment because the database executes the query.Read from the deepest node outward.
Decide the next change.
django-index-design.django-db-side-computation or django-materialized-views.django-pagination-performance.Re-run the same plan after the change.
See explain-checklist.md for plan-reading cues and before/after review notes.
EXPLAIN ANALYZE executes the query. Avoid it for mutations, unsafe functions, and production paths unless you know the impact.Finish with the before/after plan excerpt and a plain explanation of which node changed and why that matters.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.