queryset-optimizer
Installation
SKILL.md
QuerySet Optimizer
Audit Django query performance with deterministic checks and evidence-backed recommendations.
Workflow
Step 1: Set scope and baseline target
- Locate the Django backend root (directory containing
manage.py). - Define the optimization target:
- endpoint or view
- serializer
- background task
- repeated ORM hotspot from profiling data
- If target is unknown, scan all app directories and prioritize read-heavy paths first (list endpoints, feed pages, reports).
Step 2: Capture runtime query evidence (preferred)
Collect at least one measurable baseline for the target before changing code.