django

django is a skill for Claude Code from infohata/mind-vault. It costs 50 tokens per session (9,398 once invoked), scanned A, original, Apache-2.0.

A set of shared conventions for building Django web backends, including database models, web endpoints, access checks, translations, and query handling. Django is a Python framework for web applications, and DRF adds tools for building web APIs.

In plain words
What is it for?
Use it when editing Django models, views, serializers, middleware, migrations, or admin pages; adding an API endpoint; handling permissions or translations; or investigating slow database queries.
Why use it?
It helps keep backend code organised and avoids common database and permission mistakes, including fetching the same data repeatedly or crossing customer boundaries in a multi-tenant app.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mv plugin — 23 skills, 6 commands, 8 agents, 2 hooks shipped together

Good fit Use it when editing Django models, views, serializers, middleware, migrations, or admin…

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

Made for: Claude Code.

Or install mv, the plugin that ships this one along with the rest of its 23 skills, 6 commands, 8 agents, 2 hooks.

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/infohata/mind-vault/django.svg)](https://agentmods.dev/skills/infohata/mind-vault/django)
Your own site
<a href="https://agentmods.dev/skills/infohata/mind-vault/django"><img src="https://agentmods.dev/badge/skills/infohata/mind-vault/django.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,398 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.00050 $0.09398
Opus 5 $0.00025 $0.04699
Sonnet 5 $0.00010 $0.01880
Haiku 4.5 $0.00005 $0.00940

Measured 2d ago against content hash 3a1995720d07, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run_tests.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 · 636 lines

How it starts

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

django

Core Django backend patterns for project organisation, model abstractions, DRF conventions, ORM optimisation, middleware, and testing. Applies identically across single-tenant and multi-tenant projects; specialised concerns (Channels, Celery, multi-tenancy, i18n) live in references/.

Pairs with: django-frontend for HTMX / Alpine / Bulma template patterns. Load both on full-stack feature work (e.g. a view that returns an HTMX partial on HX-Request).

When to use

TRIGGER when: editing a Django project (manage.py, models.py, views.py, serializers.py, admin.py, migrations/); adding a DRF endpoint, viewset, or permission; touching BaseModel / mixins / middleware; running makemessages; debugging N+1 or query-count issues.

SKIP for: template-only work (use django-frontend); pure-frontend JS; non-Django Python projects (FastAPI / Flask / Starlette have different idioms); DevOps without code (use deployment).

Pattern

Project structure

Infrastructure at repo root, Django code under web/:

git_repo_root/
├── docker-compose.yml         # Infrastructure
├── Dockerfile
├── nginx/
├── docs/
├── tools/
└── web/                       # ← All Django code here
    ├── manage.py
    ├── requirements.txt
    ├── .env.example
    ├── project/               # settings.py, urls.py, asgi.py
    ├── core/                  # BaseModel, mixins, permissions, middleware
    ├── auth/
    ├── api/
    └── [feature]/

Why web/: clean separation of infra vs. app code. Docker's web service mounts web/ to /app in the container, keeping Django self-contained and infra isolated from the Python path.

Type hints and docstrings

Mandatory on all function signatures and classes. Explicit arg/return types (def process(data: dict) -> bool:) and a descriptive docstring per class / function / method.

BaseModel abstraction

Reduce duplication with an abstract base:

Read the full file on GitHub · 636 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. 2d ago Changed 3a1995720d07
  2. 6d ago First seen · 636 lines · 50 tokens per session scan A 4b23d8b26884

Subscribe to this mod's changes

django is a skill published in the GitHub repository infohata/mind-vault (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 50 tokens to every session and 9,398 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

django-patterns

Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps.

affaan-m/ECC · 32 tokens

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

stripe-projects

Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.

e2b-dev/E2B · 51 tokens

azure-mgmt-botservice-py

Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources. Triggers: "azure-mgmt-botservice", "AzureBotService", "bot management", "conversational AI", "bot channels".

microsoft/skills · 59 tokens

azure-messaging-webpubsubservice-py

Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".

microsoft/skills · 64 tokens

fastapi-app

Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new FastAPI service, a Python REST API, an async backend, or asks to "create a new fastapi app" or "new python backend". Handles JWT auth, layered…

ccplugins/awesome-claude-code-plugins · 103 tokens