django-perf-review

django-perf-review is a skill for Codex from OutlineDriven/outline-driven-development. It costs 40 tokens per session (1,238 once invoked), scanned A, original, Apache-2.0.

A read-only review for Django, a Python web framework, focused on database queries and ORM behavior.

In plain words
What is it for?
Use it to inspect Django models, querysets, views, serializers, signals, and template helpers for performance problems.
Why use it?
It finds slow query patterns such as N+1 queries, where one list operation causes many extra database queries.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to inspect Django models, querysets, views, serializers, signals, and template helpers for performance problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/django-perf-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/outline-driven-development --skill django-perf-review
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for django-perf-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/django-perf-review/github.svg)](https://agentmods.dev/skills/outlinedriven/outline-driven-development/django-perf-review)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/django-perf-review"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/django-perf-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for django-perf-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/django-perf-review"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/django-perf-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,238 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01238
Opus 5 $0.00020 $0.00619
Sonnet 5 $0.00008 $0.00248
Haiku 4.5 $0.00004 $0.00124

Measured 3d ago against content hash 0881bbfc73d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

django-perf-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.devin/skills/django-perf-review/SKILL.md · 42 lines

How it starts

The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Django performance review

Contract

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.

Inputs

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.

Procedure

  1. Bound scope to the app or module paths the user named. If none named, ask once for the scope before scanning. Do not edit files. Done when: scope is named and bounded.
  2. Enumerate ORM call sites: scan models, managers, views, DRF viewsets, serializers, signals, and template tags for queryset construction and relation access (.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.
  3. Trace relation access per row: for each queryset, follow foreign-key, one-to-one, many-to-many, and reverse relations accessed inside loops, templates, serializer nested fields, or per-instance property access. Flag a relation access that runs one query per row when the relation is not loaded on that code path via select_related or prefetch_related. Done when: per-row relation access is traced.
  4. Detect queryset misuse: querysets evaluated more than once on the same path, 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.
  5. Detect unbounded reads: list/index views without pagination, admin actions without queryset scoping. For unindexed filter or order fields, require query-plan or data-cardinality evidence before flagging: an 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.
  6. Validate every finding against the actual code path: cite file, line, the queryset expression, the relation access, and the per-row query it triggers. Confirm the relation is not already prefetched or selected on that exact path. A finding without a confirmed access path is not reported as validated. Done when: every reported finding has a confirmed access path.
  7. Classify severity by impact and query-count growth: N+1 in a list/index/hot path is high (O(n) queries per request); per-request single-row access is medium; rare/admin-only path is low. State the growth as queries per request or per row. Done when: severity states query growth and path impact.
  8. For each validated finding, give the concrete fix with the exact queryset rewrite: 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.
  9. Return the report. Do not apply fixes, run migrations, or modify the codebase. Done when: the report is returned without applying fixes.

Read the full file on GitHub · 42 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · -14 tokens per session 0881bbfc73d2
  2. 5d ago First seen · 42 lines · 54 tokens per session scan A fa6dcba781b7

Subscribe to this mod's changes

django-perf-review is a skill published in the GitHub repository OutlineDriven/outline-driven-development (52 stars, last pushed 3d ago), licensed Apache-2.0. It adds 40 tokens to every session and 1,238 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

output-dev-credentials

Store and reference encrypted secrets in Output SDK workflows using @outputai/credentials. Use when integrating API keys, database passwords, or third-party tokens.

growthxai/output · 35 tokens

jeecg-onlform

A tool for turning plain-language requirements into JeecgBoot Online forms and their database configuration. These forms are built from field definitions and provide runtime data entry and CRUD, meaning create, read, update, and delete operations.

jeecgboot/skills · 418 tokens

patterns

This skill should be used when the user asks to "create an API endpoint", "add CRUD operations", "implement event handlers", "set up logging", "add configuration", or builds features involving database operations, REST/GraphQL APIs, pub/sub patterns, or service configuration. Provides implementation patterns that…

dean0x/devflow · 68 tokens

supabase-cli

CLI automation for Supabase development workflows. Provides scripts for migrations, Edge Functions, secrets management, type generation, and SQL execution with safety checks.

georgekhananaev/claude-skills-vault · 33 tokens

performance-audit

Full-stack performance health check across 12 dimensions. Rendering, bundles, assets, API/network, algorithms, memory, database, caching, Web Vitals, backend runtime, concurrency, and framework-specific pathologies. Evidence-based Impact Models with confidence tiers and a prioritized optimization roadmap. Switches…

greglas75/zuvo · 90 tokens

backend-designer

This skill should be used when the user asks to "design an API", "plan database schema", "set up authentication", "design backend architecture", or discusses backend patterns and infrastructure. Provides pragmatic backend design guidance following "solid indie" principles.

Data-Wise/craft · 53 tokens