/odin-python:django-perf-reviewfrom ODIN Python
Reviews Django code for N+1 queries, ORM misuse, and unbounded reads. Reports validated performance issues without modifying files.
Ships in ODIN Python. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | User asks to review Django performance, find N+1 queries, optimize Django, or check queryset performance. |
| Authority | Read-only. No file, VCS, credential, paid, published, deployed, or remote mutation. Fixes are reported, never applied. |
| Side effect | Chat output only: reports validated Django performance issues. |
| Done | Report with validated N+1/ORM/queryset issues; severity matches impact; zero false positives. |
Required: read access to the Django codebase under review (models, managers, querysets, views, DRF viewsets/serializers, signals, template tags). Optional: the specific app or module paths to bound scope; a running app or test suite for query-count confirmation; Django settings/INSTALLED_APPS for app discovery.
.filter, .get, .exclude, .select_related, .prefetch_related, .values, .values_list, .annotate, .aggregate, .iterator, .exists, .count, .only, .defer, __ lookups, reverse managers, .related_model access). Done when: ORM call sites are enumerated.select_related or prefetch_related. Done when: per-row relation access is traced.len(qs)/list(qs) before iteration, slicing after evaluation, .only()/.defer() that still triggers deferred-field loads. For .count() where .exists() would suffice, and for missing .iterator() on large result sets, require evidence of the result size before flagging: a query-plan row estimate, a .count() call result, a logged result count, or a user-confirmed cardinality. A .count() or missing .iterator() finding without result-size evidence is a candidate, not a validated finding. Done when: queryset misuse candidates are identified, with result-size evidence attached to every .count() and .iterator() flag.EXPLAIN output showing a sequential scan, a measured row count on the filtered column, or a user-confirmed table size. An unindexed-field finding without plan or cardinality evidence is a candidate, not a validated finding. Done when: unbounded reads are identified, with plan or cardinality evidence attached to every unindexed-field flag.select_related for FK/one-to-one, prefetch_related or Prefetch for many-to-many/reverse, pagination, .iterator(), .only(), or a migration adding the index. Show the before and after queryset. Done when: each finding has an exact queryset rewrite.Return a report with one entry per validated issue: file, line, queryset expression, triggered query pattern, severity, query-count growth, and the concrete fix with the rewritten queryset. List unvalidated candidates separately with their blocker. Include an explicit empty-validated-findings statement when none are confirmed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-python3 skills in this plugin
/modern-pythonUse when creating or migrating a Python project or script to uv, Ruff, ty, and pytest. Not for pushing to a remote or publishing: use new-branch-and-pr for that./typing-exclusion-workerUse when removing modules from pyproject mypy exclusions or running a typing-debt worker batch. Not for cross-team or out-of-scope typing work.Other plugins' skills for the same job