django-components

django-components is a skill for Claude Code from krzysztofsurdy/code-virtuoso. It costs 59 tokens per session (4,137 once invoked), scanned A, original, MIT.

A reference for Django, a Python web framework, covering its major building blocks for databases, web requests, templates, forms, authentication, caching, and testing.

In plain words
What is it for?
Use it when building or fixing Django models, database queries, migrations, views, URLs, templates, forms, admin screens, middleware, authentication, or tests.
Why use it?
It gives developers one place to find patterns for implementing, configuring, and troubleshooting Django features.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the frameworks-virtuoso plugin — 12 skills shipped together

Good fit Use it when building or fixing Django models, database queries, migrations, views, URLs, templates, forms, admin screens, middleware, authentication, or tests.

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

Made for: Claude Code.

Or install frameworks-virtuoso, the plugin that ships this one along with the rest of its 12 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-components

README.md
[![agentmods](https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/django-components/github.svg)](https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/django-components)
Your own site
<a href="https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/django-components"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/django-components/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-components

Your own site · 80×15
<a href="https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/django-components"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/django-components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,137 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.00059 $0.04137
Opus 5.5 $0.00024 $0.01655
Sonnet 5.5 $0.00012 $0.00827
Haiku 4.5 $0.00006 $0.00414

Measured 4d ago against content hash da32b80db98b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

django-components 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 4d 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/frameworks/django/django-components/SKILL.md · 199 lines

How it starts

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

Django components

Django is stable and well documented, so this skill does not copy its API reference. It holds what the docs do not tell you: which versions to target, where to fetch exact signatures, and the opinions that keep a Django codebase healthy. Look up the API in the versioned docs, then apply the pitfalls below.

Core principles

Principle Meaning
Read the installed version first Django changes names and defaults between releases. Answer for the version the project runs, not the latest one.
Fetch, do not recall Field options, setting names, and method signatures come from the versioned docs. Memory goes stale quickly.
Let the database do the work Filter, aggregate, and update in SQL (F, Q, annotate, update), not in Python loops.
Prefer explicit over signals A direct function call is easier to trace, test, and order than a receiver in another app.
Keep transactions short and visible Wrap the unit of work in atomic, and push side effects behind on_commit.

Version matrix

Verified 2026-10-21 against https://docs.djangoproject.com/en/6.1/releases/6.1 and https://www.djangoproject.com/download/. Re-check before quoting dates, they move.

Series Python Mainstream support ends Extended (security) ends Notes
6.1 3.12, 3.13, 3.14 April 2027 December 2027 Latest feature release. Adds QuerySet.fetch_mode() and @task(**kwargs).
6.0 3.12, 3.13, 3.14 August 2026 (ended) April 2027 Added CSP support, template partials, built-in tasks framework. DEFAULT_AUTO_FIELD defaults to BigAutoField.
5.2 LTS 3.10 to 3.14 (3.14 since 5.2.8) December 2025 (ended) April 2028 Last series that supports Python 3.10 and 3.11.
6.2 LTS planned April 2027 release April 2030 Next LTS.
  • Django now uses calendar versioning (DEP 20). The releases once planned as 7.0 and 7.1 are named Django 2028 (January 2028) and Django 2029 (January 2029). Deprecation warnings follow, for example RemovedInDjango2028Warning.
  • Support rule: the latest and previous feature releases get security and data-loss fixes. The one before gets security fixes only. Support for a series ends when the next one ships.
  • Pick 5.2 LTS only if the project must stay on Python 3.10 or 3.11. Otherwise target the newest series the dependencies allow, and plan the move to 6.2 LTS.

Read the full file on GitHub · 199 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. 4d ago Changed · -42 lines · -37 tokens per session da32b80db98b
  2. 1mo ago First seen · 241 lines · 96 tokens per session scan A e5d5c756ccef

Subscribe to this mod's changes

django-components is a skill published in the GitHub repository krzysztofsurdy/code-virtuoso (36 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 4,137 once invoked, about $0.0002 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

python-programming-expert

Expert-level skill for Python programming (Python 3.13/3.14+). Covers type safety, generic syntax (PEP 695), async/await TaskGroups, FastAPI 0.115+, Pydantic v2, uv package manager, Ruff, and pytest in English and Indonesian.

roedyrustam/vibes-plug · 68 tokens

developing-kafka-python-client

Use when the user wants to build a Python Kafka producer or consumer, add Schema Registry to existing Python code, migrate from raw JSON to schema-backed serialization, or scaffold a confluent-kafka-python project for Confluent Cloud, local Docker, or WarpStream. Also use when user wants to optimize Python Kafka…

confluentinc/agent-skills · 75 tokens

upstash-box-py

Work with the upstash-box Python SDK for sandboxed cloud containers with AI agents, shell, filesystem, git, cron schedules, snapshots, and a headless browser. Use when building with Upstash Box in Python, creating a sandbox or isolated environment to run untrusted or agent-generated code, running AI coding agents in…

upstash/skills · 109 tokens

django

Use when building Django applications. Covers ORM query performance, model design, migrations, Django REST Framework, security defaults, and testing. Trigger on "django view is slow", "too many queries from the orm", "add a drf endpoint", "migration on a big table". Do not use for API contract decisions independent of…

nimadorostkar/Claude-Skills-collection · 75 tokens

fastapi

Use when building APIs with FastAPI. Covers dependency injection, Pydantic v2 validation, async database access, authentication, background tasks, and testing. Trigger on "fastapi endpoint is slow under load", "set up depends for the db session", "pydantic v2 validation error", "test my fastapi app". Do not use for…

nimadorostkar/Claude-Skills-collection · 89 tokens

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