Query construction, N+1 detection and migration safety for Django: select_related vs prefetch_related, when a migration needs a separate data step, and how to read the SQL a queryset actually emits.
NewMaintained
Automatic
◆Coding pack
Last verified 8/3/2026
What it changes
Passed 0 of 22 test cases with the skill, and 22 of 22 without it.
Without skill100%
With skill0%
0 fixed20 passed either way1 still failing1 broke
Pass-rate lift
-100 pp
Tokens
+3%
Agent turns
0%
Response time
+1%
Model gemini-3.6-flashMeasured 8/3/2026v120 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
What's inside
The instructions your model reads when the skill loads.
SKILL.md5 linessingle file
django-orm
Query construction, N+1 detection and migration safety for Django:
select_related vs prefetch_related, when a migration needs a separate data
step, and how to read the SQL a queryset actually emits.