django

django is a skill for Claude Code, Codex from fmind/dot. It costs 36 tokens per session (948 once invoked), scanned A, original, MIT.

A guide for building and maintaining production Django applications with a small, typed Python stack. Django is a Python web framework with built-in tools for databases, forms, authentication, administration, and testing.

In plain words
What is it for?
Use it for Django projects, models, views, administration pages, settings, database migrations, deployment setup, and tests.
Why use it?
It helps keep Django projects simple and consistent while avoiding extra layers or asynchronous code that the application does not need.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for Django projects, models, views, administration pages, settings, database migrations, deployment setup, and tests.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/django"><img src="https://agentmods.dev/badge/skills/fmind/dot/django.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 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.
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.00036 $0.00948
Opus 5 $0.00018 $0.00474
Sonnet 5 $0.00007 $0.00190
Haiku 4.5 $0.00004 $0.00095

Measured today against content hash 86f595a21d14, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

django 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 today.

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.

skills/django/SKILL.md · 47 lines

How it starts

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

Django

Use Django when its integrated ORM, migrations, forms, templates, authentication, and admin reduce the total system; python-stack owns non-Django Python packages, CLIs, and Litestar services.

Workflow

  1. Establish the framework contract: inspect the installed Django version, settings, URL configuration, apps, migrations, database, and deployment target before editing; for a new application, read bootstrap.
  2. Model the domain first: keep apps cohesive, encode invariants with fields, constraints, forms, and transactions, and decide whether a custom user model is needed before the first migration.
  3. Prefer Django's integrated path: start with server-rendered templates, forms, authentication, and admin; add an API framework, task backend, cache, or JavaScript layer only for a demonstrated requirement.
  4. Keep control flow visible: use thin views and explicit functions for multi-step use cases; avoid signals, custom middleware, managers, or repository/service layers when ordinary Django code is clearer.
  5. Choose sync deliberately: default to synchronous request and transaction code; use async only for measured concurrent I/O and verify the ASGI, middleware, ORM, connection-pooling, and transaction boundaries end to end.
  6. Treat schema changes as code: review generated migrations, preserve applied migration history, test data migrations in both directions when reversible, and never infer production schema state from models alone.
  7. Verify the behavior: run focused model, form, permission, view, and template tests, then the project gate; include Django system, deployment, and migration-drift checks.
uv run python manage.py check --fail-level WARNING
uv run python manage.py makemigrations --check --dry-run
uv run pytest
mise run check
mise run test

Gotchas

  • Generated settings are development-only: move secrets and environment-specific values to validated inputs, default DEBUG off, and run check --deploy against production-like settings.
  • User models are an early boundary: changing AUTH_USER_MODEL after tables exist is complex; make the decision before the first migrate and reference users through settings.AUTH_USER_MODEL or get_user_model().
  • Async is not a blanket optimization: transactions still do not work in async mode, so keep transactional work in a synchronous function called through sync_to_async(); disable CONN_MAX_AGE under ASGI in favor of the database backend's own pooling, and never set DJANGO_ALLOW_ASYNC_UNSAFE to bypass the safety check.
  • Django needs stubs to type-check: add django-stubs as a dev dependency or ty reports unresolved-attribute on Model.objects; it reads PEP 561 stubs only, so declare reverse accessors under if TYPE_CHECKING: as comments: RelatedManager[Comment] rather than suppressing the diagnostic.
  • runserver is not production: choose and test a production WSGI or ASGI server only after the deployment target and concurrency model are known.

Read the full file on GitHub · 47 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. today Changed · +1 lines 86f595a21d14
  2. 3d ago First seen · 46 lines · 36 tokens per session scan A 5293130bb7d5

Subscribe to this mod's changes

django is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 948 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-09.