django

django is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (505 once invoked), scanned A, original, MIT.

A set of coding rules for Django, a Python web framework. It covers project structure, database models, web views, and Django REST Framework APIs.

In plain words
What is it for?
Use it when building or reviewing Django applications, including database models, web pages, and REST APIs.
Why use it?
It gives the agent consistent project conventions and helps avoid common performance, routing, and code-organization mistakes.

Skill for Claude CodeCodex

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

Good fit Use it when building or reviewing Django applications, including database models, web pages, and REST APIs.

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

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/andresquirogadev/skillsense/django/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/django)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/django"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/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/andresquirogadev/skillsense/django"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/django.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 505 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.00000 $0.00505
Opus 5 $0.00000 $0.00253
Sonnet 5 $0.00000 $0.00101
Haiku 4.5 $0.00000 $0.00051

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

packages/catalog/skills/django/SKILL.md · 45 lines

How it starts

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

Django Skill

You are working on a Django project. Apply these conventions.

Project Structure

  • Keep business logic in service modules (services.py) or domain layers — not in views or models.
  • Fat models are acceptable for simple queries; avoid putting HTTP-level logic in models.
  • Use apps/ directory to organize multiple Django apps within a project.

Models

  • Always set verbose_name and verbose_name_plural in Meta.
  • Use get_absolute_url() on models that have detail pages.
  • Use select_related() for ForeignKey/OneToOne traversal; prefetch_related() for ManyToMany and reverse FK.
  • Add db_index=True on fields used in filter() / order_by() queries.
  • Use F() expressions for atomic updates: Qs.update(count=F('count') + 1).
  • Use Q() objects for complex OR/AND filters.

Views

  • Prefer Class-Based Views (CBV) with mixins for standard CRUD; use function-based views for complex business logic where CBVs add confusion.
  • With Django REST Framework: use ViewSet + Router for RESTful APIs; use APIView for custom endpoints.
  • Use get_object_or_404(Model, pk=pk) — never catch DoesNotExist manually in views.

Django REST Framework (DRF)

  • Use ModelSerializer for simple CRUD; override create()/update() for custom logic.
  • Use SerializerMethodField for computed properties.
  • Keep authentication in DEFAULT_AUTHENTICATION_CLASSES; use permission_classes per view or globally.
  • Use throttle_classes to rate-limit endpoints.

Security

  • Enable CSRF_COOKIE_SECURE = True and SESSION_COOKIE_SECURE = True in production.
  • Use django-environ or pydantic-settings for environment variable management — never hardcode secrets.
  • Use Django's built-in User model or AbstractUser — do not create a custom user model mid-project.
  • Use parameterized queries (filter(name=value)) — never .raw() with f-strings.

Migrations

  • Run makemigrations after every model change; commit migrations alongside model code.
  • Use RunPython in migrations for data migrations — always provide a reverse function.
  • Squash migrations periodically for large projects.

Read the full file on GitHub · 45 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. 9d ago First seen · 45 lines · 0 tokens per session scan A 19216756985a

Subscribe to this mod's changes

django is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 505 tokens. 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

mainframe-python-backend

Develop, debug, review, or test server-side Python in FastAPI, Django, Flask, and other established services. Use proactively for backend APIs, business rules, persistence, workers, realtime behavior, server integrations, and focused backend tests. Do not use for data or ML pipelines, substantial client-only UI…

CATWILLgh/MAINFRAME · 76 tokens

async-python-patterns

Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.

Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI · 42 tokens

cross-sdk-parity

Keep TypeScript and Python SDK behavior, generated client usage, public API naming, and docs examples aligned. Use when a change affects both SDKs, when generated client pins move, when comparing TS/Python behavior, or when a backend API contract changed. Do not use for single-language internal-only changes.

ComposioHQ/composio · 66 tokens

printing-press

Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…

mvanhorn/cli-printing-press · 86 tokens

supabase-python

FastAPI with Supabase and SQLAlchemy/SQLModel.

alinaqi/maggy · 15 tokens

reddit-api

Reddit API with PRAW (Python) and Snoowrap (Node.js).

alinaqi/maggy · 20 tokens