Skip to main content
skill CX Codex

django-perf-review — Claude Code skill: Django performance review

This skill reviews Django code for N+1 queries, unbounded querysets and missing indexes. Useful before a release or when a page slows down on large tables.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add getsentry/skills --skill django-perf-review -a claude-code
Open on GitHub

What django-perf-review does

The skill reviews Django code and reports only performance issues it can prove. It starts by researching the codebase: tracing the data flow, checking for existing optimizations, verifying data volume. A pattern match is not validation, so an issue has to be confirmed before it lands in the report.

Findings are grouped by impact. N+1 queries and unbounded querysets sit at the top: they multiply as data grows and end in timeouts or workers killed for memory. Missing indexes and write loops come next, where a single statement turns into N. DRF serializers get the same treatment, because touching a related field inside a serializer produces the same N+1 when the queryset is not optimized.

Zero findings is an acceptable outcome, and the skill is told not to manufacture issues to look thorough. It runs with Read, Grep, Glob, Bash and Task allowed, since tracing a view down to a template or serializer and checking table size needs those tools.

What it helps with

  • find N+1 queries in list views and templates
  • check querysets for missing pagination
  • spot unindexed fields used in filters and ordering
  • replace create() and save() loops with bulk operations
  • catch N+1 inside DRF serializers

Example prompts for the agent

  • review Django performance in the orders app
  • find N+1 queries in the user list view
  • check the catalog querysets for unbounded loads

How to install django-perf-review

1Skills CLI (Vercel)

npx skills add getsentry/skills --skill django-perf-review -a claude-code

2Manually: put the files in place

~/.claude/skills/django-perf-review/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/django-perf-review/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about django-perf-review

How do I install django-perf-review in Claude?

Run npx skills add getsentry/skills --skill django-perf-review -a claude-code. The skill lands in ~/.claude/skills/django-perf-review/SKILL.md.

What does django-perf-review do?

It reviews Django code for performance problems: N+1 queries, unbounded querysets, missing indexes and write loops. Only issues it can validate get reported.

Which tools does the skill need?

It allows Read, Grep, Glob, Bash and Task. Those let it trace data from a view to a template or serializer.

Similar skills

Everything for Code review and refactoring →

From the same set20

gh-review-requests Finds unread review requests for open GitHub pull requests and filters them by team. Use it when the review queue needs a focused check. CX Codex +1 4,200installs skill-scanner Scans agent skills for prompt injection, malicious code, excessive permissions, secret exposure, and supply-chain risks before installation. CX Codex +1 3,800installs blog-writing-guide A skill that carries the Sentry engineering blog standards: it drafts, reviews and tightens posts until they read like a developer wrote them. CX Codex +1 3,300installs presentation-creator Creates interactive React and Vite slide decks with Sentry styling. Use it when a presentation needs real metrics, charts, and slide navigation. CX Codex +1 2,900installs django-access-review A skill that hunts IDOR and broken authorization in Django: it walks views, DRF viewsets and ORM queries and shows where checks are missing. CX Codex +1 2,700installs brand-guidelines Applies Sentry brand and copy guidelines to user-facing text, error states, and UI flows. Useful when writing UI labels, empty states, or docs. CX Codex +1 2,500installs skill-writer Designs, synthesizes, and refines agent skills following the Agent Skills specification. Helpful when turning raw workflows or prompt templates into structured skills. CX Codex +1 2,500installs prompt-optimizer A skill that rewrites system and agent prompts against a set of eval cases instead of gut feeling. Useful when a prompt exists but behaves inconsistently. CX Codex +1 2,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor