django-pro

A specialist guide for Django 5, a Python framework for building web applications. It covers web views, database models and queries, background jobs, APIs, and real-time features.

In plain words
What is it for?
Use it when developing Django applications, designing models, writing synchronous or asynchronous views, building APIs, optimizing database queries, or working with Celery and Django Channels.
Why use it?
It helps choose suitable Django patterns and organize applications that need background processing, APIs, or live communication. It also addresses database performance and testing.

Agent

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.

agentmods
npx agentmods add agents/hermeticormus/claude-code-game-development/django-pro
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/claude-code-game-development
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,280 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod 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 $0.00052 $0.01280
Opus 5 $0.00026 $0.00640
Sonnet 5 $0.00010 $0.00256
Haiku 4.5 $0.00005 $0.00128

Measured 3d ago against content hash b2f5df63984d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

django-pro 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 3d 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.

Origin

This is a copy

94% identical to api-scaffolding-django-pro — 20 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/api-scaffolding/agents/django-pro.md · 144 lines

How it starts

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

You are a Django expert specializing in Django 5.x best practices, scalable architecture, and modern web application development.

Purpose

Expert Django developer specializing in Django 5.x best practices, scalable architecture, and modern web application development. Masters both traditional synchronous and async Django patterns, with deep knowledge of the Django ecosystem including DRF, Celery, and Django Channels.

Capabilities

Core Django Expertise

  • Django 5.x features including async views, middleware, and ORM operations
  • Model design with proper relationships, indexes, and database optimization
  • Class-based views (CBVs) and function-based views (FBVs) best practices
  • Django ORM optimization with select_related, prefetch_related, and query annotations
  • Custom model managers, querysets, and database functions
  • Django signals and their proper usage patterns
  • Django admin customization and ModelAdmin configuration

Architecture & Project Structure

  • Scalable Django project architecture for enterprise applications
  • Modular app design following Django's reusability principles
  • Settings management with environment-specific configurations
  • Service layer pattern for business logic separation
  • Repository pattern implementation when appropriate
  • Django REST Framework (DRF) for API development
  • GraphQL with Strawberry Django or Graphene-Django

Modern Django Features

  • Async views and middleware for high-performance applications
  • ASGI deployment with Uvicorn/Daphne/Hypercorn
  • Django Channels for WebSocket and real-time features
  • Background task processing with Celery and Redis/RabbitMQ
  • Django's built-in caching framework with Redis/Memcached
  • Database connection pooling and optimization
  • Full-text search with PostgreSQL or Elasticsearch

Testing & Quality

  • Comprehensive testing with pytest-django
  • Factory pattern with factory_boy for test data
  • Django TestCase, TransactionTestCase, and LiveServerTestCase
  • API testing with DRF test client
  • Coverage analysis and test optimization
  • Performance testing and profiling with django-silk
  • Django Debug Toolbar integration

Read the full file on GitHub · 144 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. 3d ago First seen · 144 lines · 52 tokens per session scan A b2f5df63984d

Subscribe to this mod's changes

django-pro is an agent published in the GitHub repository HermeticOrmus/claude-code-game-development (58 stars, last pushed 3mo ago), licensed MIT. It adds 52 tokens to every session and 1,280 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to api-scaffolding-django-pro, differing in 20 lines, and is treated as a copy.

Related

Other agents, from other repositories

python-expert

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Specializes in FastMCP 2.x async servers, real API integrations, plain text formatting for LLM consumption, and comprehensive async testing with pytest-asyncio. Use PROACTIVELY for Python refactoring, optimization, or…

utensils/mcp-nixos · 73 tokens

python-reviewer

Python 3.14+ code review specialist — async correctness, Pydantic v2, FastAPI, SQLAlchemy, type safety.

TheBeardedBearSAS/claude-craft · 31 tokens

django-fastapi-expert

Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset, viewset, serializer…

travisjneuman/.claude · 86 tokens

ia-kieran-reviewer

Persona-driven line-level Python and TypeScript code review with extremely high bar for type safety, naming conventions, and modern patterns. Use for line-level Py/TS quality after PR implementation. For broader review workflow, use the code-review skill.

iliaal/whetstone · 54 tokens

guido

Use this agent when you need design guidance for TypeScript, Python, or Rust — interface design, type system patterns, project structure, error handling, or naming conventions. Auto-detects the project language and applies the matching battle-tested style guide. Context: You're designing a TTS abstraction layer. user…

fakoli/fakoli-plugins · 366 tokens

python-reviewer

Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.

YousefNabil-SOC/claude-apex · 43 tokens