
Django patterns
Guides an agent through Django architecture, DRF APIs, ORM queries, caching and signals
Django patterns is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 66
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Django patterns
This skill gives an AI coding agent a reference of production Django conventions. It covers a recommended project layout with split settings for development, production and test, along with model and QuerySet design, custom managers, and a service layer that keeps business logic out of views.
For API work it shows Django REST Framework serializers with validation, ViewSets with filtering, search and ordering, and custom actions. It also covers performance: avoiding N+1 queries with select_related and prefetch_related, adding indexes, bulk operations, view, fragment and low-level caching, plus signals, custom middleware and production security settings such as HSTS and secure cookies.
The material is example code rather than executable scripts. The skill ships no scripts and sets no tool restrictions, so the agent applies these patterns by reading and editing the user's Django project. It assumes a working Django project using DRF, django-filter, WhiteNoise and corsheaders where those packages are referenced.
When your agent uses it
Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps. Use when building or reviewing Django apps, DRF APIs, ORM queries, or caching.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (21 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafathOr copy only this skill to ~/.claude/skills/django-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/django-patterns &&
cp -R "$tmp/.agents/skills/django-patterns" ~/.claude/skills/django-patterns &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/django-patterns inside it instead.
Copy the skill folder to ~/.agents/skills/django-patterns to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/django-patterns &&
cp -R "$tmp/.agents/skills/django-patterns" ~/.agents/skills/django-patterns &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/django-patterns inside it instead.
Copy the skill folder to ~/.cursor/skills/django-patterns to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/django-patterns &&
cp -R "$tmp/.agents/skills/django-patterns" ~/.cursor/skills/django-patterns &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/django-patterns inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/django-patternsOr copy the folder to ~/.gemini/skills/django-patterns yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/django-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/django-patterns &&
cp -R "$tmp/.agents/skills/django-patterns" ~/.copilot/skills/django-patterns &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/django-patterns inside it instead.
Get the folder:
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.gitThen copy REA_Skill/.agents/skills/django-patterns into your agent's skills folder as django-patterns. Agents that support SKILL.md read one folder per skill.
What it does
- Project layout
- Recommended folder structure with split settings for base, development, production and test.
- Model and QuerySet design
- Custom user models, field constraints, indexes, and reusable QuerySet and manager methods.
- DRF serializers and ViewSets
- Validation patterns, permissions, filtering, search, ordering and custom endpoint actions.
- ORM performance
- Guidance on avoiding N+1 queries, choosing indexes and using bulk create, update and delete.
- Caching strategies
- View-level, template fragment, low-level and QuerySet caching examples with timeouts.
- Signals and middleware
- Examples of post-save signal handlers, app ready hooks and custom request logging middleware.
- Production security settings
- Secure cookie, SSL redirect, HSTS and logging configuration for deployed Django sites.
Good for
- Design a Django project structure with separate dev and production settings
- Review a Django REST API for N+1 queries and missing indexes
- Add filtering, search and ordering to a DRF ViewSet
- Cache an expensive Django view or queryset with a sensible timeout
- Create a service layer for order creation inside a transaction
- Set up a custom user model with email as the login field
Django patterns FAQ
What does the skill need to run?
It has no scripts and no tool restrictions. It is a set of instructions and code examples the agent applies to a Django project, and it assumes Django with DRF and related packages are in use.
Does Django patterns change my project automatically?
No script is bundled. The agent uses the patterns as guidance when it writes or reviews Django code.
When does the skill activate?
It activates when a task involves building or reviewing Django apps, DRF APIs, ORM queries or caching, as described in its SKILL.md description.
How do I install Django patterns in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/django-patterns to use it in all your projects, or to .claude/skills/django-patterns in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.
Does Django patterns run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Django patterns?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Django patterns?
The closest alternatives to Django patterns are Django TDD, Django security, Django celery, Django perf review and Backend patterns.
Where this comes from
- Description: from the skill's own SKILL.md.
More from smartworldarafath/REA_Skill

Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android
- Open source
- 66 GitHub stars
- Developer tools

Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity
- Open source
- 66 GitHub stars
- Developer tools

Compare coding agents head-to-head on your own tasks by pass rate, cost and time
- Open source
- 66 GitHub stars
- Developer tools

Guides an agent to design tool sets, observations and error recovery for better completion
- Open source
- 66 GitHub stars
- Developer tools

Gives an agent a structured capture-diagnose-recover loop for failing runs
- Open source
- 66 GitHub stars
- Developer tools

Lets an AI agent make x402 payments within per-task budgets and spending policies
- Open source
- 66 GitHub stars
- Finance and payments


