django

django is a skill for Claude Code from nimadorostkar/Claude-Skills-collection. It costs 75 tokens per session (1,102 once invoked), scanned A, original, MIT.

A guide to building Django web applications, where Django is a Python framework for websites and APIs. It covers database queries, models, migrations, REST APIs, security settings, and tests.

In plain words
What is it for?
Use it when designing Django models, fixing ORM performance, writing migrations, building Django REST Framework APIs, or checking deployment security.
Why use it?
It helps avoid slow database access, unsafe production settings, and migrations that disrupt large tables.

Skill for Claude Code

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

Part of the backend plugin — 11 skills shipped together

Good fit Use it when designing Django models, fixing ORM performance, writing migrations, building Django REST Framework APIs, or checking deployment security.

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

Made for: Claude Code.

Or install backend, the plugin that ships this one along with the rest of its 11 skills.

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/nimadorostkar/claude-skills-collection/django/github.svg)](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/django)
Your own site
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/django"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/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/nimadorostkar/claude-skills-collection/django"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/django.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,102 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00075 $0.01102
Opus 5.5 $0.00030 $0.00441
Sonnet 5.5 $0.00015 $0.00220
Haiku 4.5 $0.00007 $0.00110

Measured 16d ago against content hash e02053458143, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 16d 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.

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/backend/django/SKILL.md · 108 lines

How it starts

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

Django

Purpose

Build Django applications that use the ORM efficiently and the framework's security defaults correctly. Most Django performance problems are one missing select_related away from being fixed.

When to Use

  • Building or reviewing a Django application or DRF API.
  • Diagnosing slow views caused by the ORM.
  • Writing migrations that must run against a large table.
  • Auditing Django security settings before launch.

Capabilities

  • ORM: select_related, prefetch_related, annotations, subqueries, bulk operations.
  • Model design: constraints, indexes, and validation at the database level.
  • Migrations, including zero-downtime patterns for large tables.
  • Django REST Framework: serializers, viewsets, permissions, pagination.
  • Security: the settings that must not be wrong in production.

Inputs

  • The application, its models, and the slow view or endpoint if there is one.
  • Table sizes, for anything involving migrations.
  • Deployment environment and settings module.

Outputs

  • Views with a bounded, predictable query count.
  • Migrations that do not lock a large table.
  • Settings that pass manage.py check --deploy.

Workflow

  1. Count the queries — assertNumQueries in tests, django-debug-toolbar in development. An N+1 is invisible until you count.
  2. Fix them at the queryset — select_related for forward foreign keys (a join), prefetch_related for reverse and many-to-many (a second query). Not both, not neither.
  3. Push work into the database — annotate, aggregate, bulk_create, update. A loop that saves each object issues one query per iteration.
  4. Constrain at the database — UniqueConstraint, CheckConstraint. Application-level validation does not survive concurrency or a shell script.
  5. Migrate safely — On a large table, adding a column with a default rewrites it. Add nullable, backfill in batches, then set the default.
  6. Check the deploy settings — DEBUG = False, ALLOWED_HOSTS, SECURE_*, SECRET_KEY from the environment.

Read the full file on GitHub · 108 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. 16d ago Changed · +47 tokens per session e02053458143
  2. 1mo ago First seen · 108 lines · 28 tokens per session scan A 5ab415b911db

Subscribe to this mod's changes

django is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (33 stars, last pushed 3d ago), licensed MIT. It adds 75 tokens to every session and 1,102 once invoked, about $0.0003 per session on Opus 5.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-30.

Related

Other skills, from other repositories

create-pubsub-python

Creates a Dapr pub/sub app in Python with FastAPI (publisher, subscriber or both) and declarative, programmatic or streaming subscriptions. Use for "create a pub/sub app in Python" or "build a FastAPI publisher and subscriber with Dapr". For an existing app use add-pubsub-python.

diagrid-labs/dapr-skills · 70 tokens

create-workflow-python

Creates a Dapr workflow app in Python, run locally with dapr run. Use for "create a workflow in Python" or "build a workflow app in Python". For Diagrid Catalyst use the catalyst-ai plugin.

diagrid-labs/dapr-skills · 49 tokens

add-pubsub-python

Adds Dapr pub/sub to an existing Python FastAPI app. Keeps its subscription type, shows a plan for approval, then makes targeted edits and checks imports after each. Use for "add pub/sub to my FastAPI app" or "make this Python service subscribe to a Dapr topic". For a new app use create-pubsub-python.

diagrid-labs/dapr-skills · 76 tokens

django-expert

Use when building Django web applications or REST APIs with Django REST Framework. Invoke when working with settings.py, models.py, manage.py, or any Django project file. Creates Django models with proper indexes, optimizes ORM queries using selectrelated/prefetchrelated, builds DRF serializers and viewsets, and…

Jeffallan/claude-skills · 96 tokens

fastapi-expert

Use when building high-performance async Python APIs with FastAPI and Pydantic V2. Invoke to create REST endpoints, define Pydantic models, implement authentication flows, set up async SQLAlchemy database operations, add JWT authentication, build WebSocket endpoints, or generate OpenAPI documentation. Trigger terms…

Jeffallan/claude-skills · 95 tokens

beautifulsoup-parsing

Expert guidance for HTML/XML parsing using BeautifulSoup in Python with best practices for DOM navigation, data extraction, and efficient scraping workflows.

Mindrally/skills · 32 tokens