django-access-review — Claude Code skill: Django access audit
A skill that hunts IDOR and broken authorization in Django: it walks views, DRF viewsets and ORM queries and shows where checks are missing.
npx skills add getsentry/skills --skill django-access-review -a claude-codeWhat django-access-review does
The skill answers one question: can User A read, change or delete User B's data? It first works out how authorization is done in your codebase — decorators, middleware, base classes, permission_classes, custom managers. Then it looks for the places where that scheme breaks down.
Work runs in phases: understand the authorization model, map the attack surface, trace concrete data flows, report. It does not scan for canned vulnerable patterns. Instead it follows an ID from the URL or request body down to the ORM call and checks whether an ownership check sits in between. It greps for permission_classes, get_queryset, and owner_id or organization_id fields.
Only confirmed findings make the report, each with a confidence level. A suggested fix has to actually validate permissions and raise or return an error on denial — a comment saying the caller must check does not count. Tools are limited to Read, Grep, Glob, Bash and Task.
What it helps with
- find IDOR in a DRF viewset whose
get_queryset()returns every object - check whether a list endpoint filters rows to the current user
- confirm the server sets the owner on create instead of trusting the request body
- trace access to nested resources like comments on someone else's document
- catch cross-tenant leaks when
org_idin the URL is swapped
Example prompts for the agent
- review access to documents in
api/views.pyfor IDOR - run django-access-review over viewsets with
permission_classes = [IsAuthenticated] - is there an ownership check in
get_queryset()onDocumentViewSet?
How to install django-access-review
1Skills CLI (Vercel)
npx skills add getsentry/skills --skill django-access-review -a claude-code2Manually: put the files in place
~/.claude/skills/django-access-review/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/django-access-review/
1Skills CLI (Vercel)
npx skills add getsentry/skills --skill django-access-review -a codex2Manually: put the files in place
.agents/skills/django-access-review/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add getsentry/skills --skill django-access-review -a cursor2Manually: put the files in place
.cursor/skills/django-access-review/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install getsentry/skills django-access-review2Manually: put the files in place
.github/skills/django-access-review/SKILL.md1Skills CLI (Vercel)
npx skills add getsentry/skills --skill django-access-review -a gemini-cli2Platform CLI
gemini skills install https://github.com/getsentry/skills --path skills/django-access-reviewManually: put the files in place
.devin/skills/django-access-review/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add getsentry/skills --skill django-access-review -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about django-access-review
How do I install django-access-review in Claude?
Run npx skills add getsentry/skills --skill django-access-review -a claude-code. The skill lands in ~/.claude/skills/django-access-review/SKILL.md.
What does django-access-review do?
It reviews authorization in Django code: views, DRF viewsets, ORM queries. It looks for cases where one user can reach another user's data.
Which tools does the skill need?
It allows Read, Grep, Glob, Bash and Task. That is enough to read code and search through it.