django-perf-review
Skill by getsentry
Reviews Django code for validated performance problems. It focuses on N+1 queries, unbounded querysets, missing indexes and write loops. It is meant for developers auditing Django projects.
Install django-perf-review
Built from the published package, never by AI.
git clone --depth 1 https://github.com/getsentry/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/django-perf-review ~/.claude/skills/django-perf-reviewRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/getsentry/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/django-perf-review ~/.gemini/antigravity-cli/skills/django-perf-reviewAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
django-perf-review is an agent skill for reviewing Django code for performance problems. It is triggered by requests such as finding N+1 queries, checking queryset performance, or auditing Django ORM issues. The skill ranks issues by impact. N+1 queries and unbounded querysets are rated critical, while missing indexes and write loops are rated high.
The skill asks the assistant to trace data flow from view to template or serializer. It also checks for existing select_related, prefetch_related and pagination, and confirms table size and call frequency before reporting anything. It skips test files, admin-only views, management commands, migrations and cold paths. Zero findings is an accepted result. The output is a markdown report with a summary, validation notes and suggested fixes for each finding.
Written from the project's SKILL.md and checked against it.
What it can do
- N+1 query reviewFinds related data accessed in loops without prefetching or select_related.
- Unbounded queryset reviewFlags list endpoints without pagination and large loads that could use iterator().
- Missing index reviewChecks fields used in filter() or order_by() on large tables for indexes.
- Write loop reviewFlags create(), save() or delete() calls inside loops and suggests bulk methods.
- Inefficient pattern notesLists minor count() and len() patterns as low-priority notes only.
- Markdown findings reportProduces a report with severity, location, validation steps, evidence and fixes.
What you need
- A Django codebase to review
- Access to read and search project files (Read, Grep, Glob tools)
Try asking
- Review this Django app for N+1 queries
- Check the queryset performance in my views
- Audit the Django ORM usage in this project for missing indexes
Good to know
- Reports only issues it can validate by tracing code and checking data volume.
- Skips test files, admin-only views, management commands, migrations and one-time scripts.
- Zero findings is an accepted result when no issues can be validated.
- Does not report style preferences or micro-optimizations.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/django-perf-review/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Grep Glob Bash Task
-
LICENSE102 B -
SKILL.md11 KB
Alternatives to django-perf-review
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
django-perf-review: common questions
What Django performance issues does it check for?
It checks for N+1 queries, unbounded querysets, missing indexes and write loops. It also lists minor inefficient patterns as low-priority notes.
Does it report every possible performance issue?
No. The skill is told to report only issues it can prove by tracing code and checking data volume. It skips findings it cannot validate.
Which code does the review skip?
It skips test files, admin-only views, management commands, migration files, one-time scripts, and tables under 1000 rows that will not grow.
How do I install django-perf-review?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is django-perf-review free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is django-perf-review safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to django-perf-review?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
