django-security-review

django-security-review is a skill for Claude Code, Codex from beel-collab/presets.dev. It costs 42 tokens per session (1,093 once invoked), scanned A, original, MIT.

A security review for Django applications, a Python web framework. It checks permissions, database query construction, and how schema migrations behave.

In plain words
What is it for?
Use it for Django views, models, forms, and migrations.
Why use it?
It helps prevent unauthorized access, unsafe SQL, and mistaken assumptions about what a database migration or delete operation will do.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; $skill-name invocation.

Good fit Use it for Django views, models, forms, and migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/beel-collab/presets.dev/django-security-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 beel-collab/presets.dev --skill django-security-review
Clone the repo
git clone --depth 1 https://github.com/beel-collab/presets.dev

Made for: Claude Code, 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-security-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/beel-collab/presets.dev/django-security-review/github.svg)](https://agentmods.dev/skills/beel-collab/presets.dev/django-security-review)
Your own site
<a href="https://agentmods.dev/skills/beel-collab/presets.dev/django-security-review"><img src="https://agentmods.dev/badge/skills/beel-collab/presets.dev/django-security-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-security-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/beel-collab/presets.dev/django-security-review"><img src="https://agentmods.dev/badge/skills/beel-collab/presets.dev/django-security-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,093 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00042 $0.01093
Opus 5.5 $0.00017 $0.00437
Sonnet 5.5 $0.00008 $0.00219
Haiku 4.5 $0.00004 $0.00109

Measured 20d ago against content hash 3c75ec45493c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

django-security-review scanned grade A with 1 finding 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 20d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- SSRF: a view that `requests.get`s a URL the user supplied, with no host allow-list.
antigravity/django/django-security-review/SKILL.md · 97 lines

How it starts

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

Django Security Review Skill for Antigravity CLI

Install

Install the native export at .agents/skills/django-security-review/SKILL.md (one file shared with Codex). Copy that export, not this catalog file. Catalog fields such as tools and author are for presets.dev. Install one skill file per name. Cursor, GitHub Copilot, Codex, Antigravity CLI, and Devin can all read .agents/skills, so a second copy with the same name collides.

Django Security Review

Shared skill django-security-review for Django. Codex and Antigravity CLI both read .agents/skills/django-security-review/SKILL.md. Install this one file. Codex calls it with $django-security-review or /skills. Cursor, GitHub Copilot, and Devin also read .agents/skills. A second copy with the same name collides. Do not install another tool's file there.

When to run

Run this review for a Django view, model, form, or migration.

When to leave it

Stop for a non-Django repository. Do not upgrade Django or run a migration against production.

What to check

  • Injection: raw(), extra(), and .raw SQL built with f-strings or % formatting. Parameters are the safe form.
  • XSS: |safe, mark_safe, and format_html on user text without escaping.
  • CSRF: a state-changing view that is @csrf_exempt without a documented machine client.
  • Secrets: a key or password in settings committed to the tree, or logged on the request.
  • IDOR: a queryset that loads by the posted id and never checks the owner or a permission.
  • SSRF: a view that requests.gets a URL the user supplied, with no host allow-list.
  • Mass assignment: a model form with fields = "__all__" facing the browser.
  • Uploads: a file stored with the original name and no type or size check.

Steps

  1. Read the installed Django version. A 6.1-only fetch mode or delete option on an older install is a high finding.
  2. Review permission checks on every changed write. A missing check is a high finding. A form with fields = "__all__" facing users is a high finding.
  3. Review querysets for per-row queries. update() sends no signals. QuerySet.delete() sends pre_delete and post_delete but skips Model.delete(). A database ON DELETE CASCADE sends nothing. Flag a comment or a test that assumes the wrong one of those three. Do not flag QuerySet.delete() itself for "no signals".
  4. Review migrations for edits to shipped files and for destructive drops bundled with unrelated code.
  5. Check async views for a direct ORM call.
  6. Run the app's tests only if the user asked. Otherwise write not run.

Read the full file on GitHub · 97 lines

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. 20d ago First seen · 97 lines · 42 tokens per session scan A 3c75ec45493c

Subscribe to this mod's changes

django-security-review is a skill published in the GitHub repository beel-collab/presets.dev (3 stars, last pushed 9d ago), licensed MIT. It adds 42 tokens to every session and 1,093 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

django-security-review compared with skills from other repositories

django-security-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
django-security-reviewbeel-collab/presets.devSkill39d agoMITA42Claude Code, Codex
django-orm-lensFROWNINGdev/django-orm-lensSkill961mo agoMITA150Claude Code, Codex
django-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A47Claude Code
djangoalivirgo/Major-AI-SkillsSkill6yesterdayMITA38Claude Code
django-6-upgrade-guidebtfranklin/skillsSkill64d agoMITA64Codex
fastapi-templatesFluxonLab/SkillrySkill134d agononeA37Claude Code, Codex
python-resource-managementFluxonLab/SkillrySkill134d agononeA37Claude Code, Codex