django-playbook

django-playbook is a skill for Claude Code, Codex from toffyui/ccteams. It costs 49 tokens per session (3,165 once invoked), scanned A, original, MIT.

A step-by-step guide for working on Django web applications and Django REST Framework APIs. It covers checking project versions and settings, database queries, schema changes, data validation, time zones, and verification.

In plain words
What is it for?
Use it when adding or changing Django models, database migrations, API serializers, views, or related tests and checks.
Why use it?
It reduces mistakes caused by applying generic Django advice without first understanding the project's setup. It also helps catch incomplete database changes and inefficient data loading.

Skill for Claude CodeCodex

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

Good fit Use it when adding or changing Django models, database migrations, API serializers, views, or related tests and checks.

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

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-playbook

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/toffyui/ccteams/django-playbook"><img src="https://agentmods.dev/badge/skills/toffyui/ccteams/django-playbook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,165 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.00049 $0.03165
Opus 5 $0.00024 $0.01582
Sonnet 5 $0.00010 $0.00633
Haiku 4.5 $0.00005 $0.00316

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

Security

Grade A, and why

django-playbook 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.

teams/django/skills/django-playbook/SKILL.md · 204 lines

How it starts

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

Django Playbook

This is the literal procedure a frontier model follows on a Django/DRF codebase. Follow it in order; most Django defects come from skipping the reconnaissance steps and writing "generic Django" instead of THIS project's Django.

Operating loop

  1. Pin the stack before writing a line. Read the dependency file (requirements.txt, pyproject.toml, Pipfile.lock, or poetry.lock):
    • Django version: the django / Django pin. Stay inside that version's API — no Django 5.x features (GeneratedField, db_default) in a 4.2 project. Mark any version-specific advice with the version.
    • DRF version: the djangorestframework pin, if present. If DRF is not in the deps, this is a plain-Django task — do not add serializers.
    • Test runner and lint: pytest/pytest-django + a pytest.ini/[tool.pytest]pytest; otherwise python manage.py test. ruff/flake8/black in deps + a config → part of verification.
  2. Read settings.py (or the settings/ package) before touching code.
    • INSTALLED_APPS: which of your apps exist, which third-party apps are wired (rest_framework, django_filters, debug_toolbar).
    • USE_TZ: if True (set in generated settings for years; the global default flipped to True in Django 5.0), all naive datetimes are a bug — see failure catalog #6.
    • AUTH_USER_MODEL: never hard-code auth.User; reference settings.AUTH_USER_MODEL in FKs and get_user_model() in code.
    • REST_FRAMEWORK: default permission/auth/pagination classes — they change what an omitted permission_classes actually does.
  3. Detect the project's layout and MIRROR it, don't impose. Read one neighboring app's models.py, views.py, serializers.py, urls.py:
    • Fat models (logic on models/managers) vs a services.py/selectors.py split — match whichever this repo already uses (decision tree c).
    • App structure (apps/<name>/ vs flat), CBV vs FBV, viewsets+routers vs APIView. Convention in THIS repo beats convention in general.
  4. Run python manage.py check early — before and after your change. It catches app-config, model, and admin errors that tests lazy-load past.
  5. Build in this order: model (fields, on_delete, Meta.indexes, Meta.constraints) → makemigrations → manager/service → view → serializer → url wiring. Each layer is testable before the next exists.
  6. Migration discipline:
    • One migration = schema change OR data change, never both.
    • After ANY model change, run makemigrations and read the generated file. A model edit without a migration is a runtime error waiting for deploy.
    • Data migrations use RunPython with a real reverse function (RunPython.noop only when truly irreversible — say so in a comment) and the historical model via apps.get_model('app', 'Model'), never the imported app.models class (it drifts).
  7. Run the verification recipe (below) and paste real output before reporting. A diff without executed commands is a claim, not a result.

Read the full file on GitHub · 204 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 · 204 lines · 49 tokens per session scan A 9f294d5a7b02

Subscribe to this mod's changes

django-playbook is a skill published in the GitHub repository toffyui/ccteams (48 stars, last pushed 8d ago), licensed MIT. It adds 49 tokens to every session and 3,165 once invoked, about $0.0002 per session on Opus 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

event-store-design

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

wshobson/agents · 33 tokens

convex-explain-app

Explain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the schema and function surface. Read-only.

openclaw/clawhub · 47 tokens

platform-custom-field-generate

Use this skill when users need to create, generate, or validate Salesforce Custom Field metadata. Trigger when users mention custom fields, field types, Roll-up Summary fields, Master-Detail relationships, Lookup relationships, formula fields, picklists, dependent (controlling) picklists, referencing a value set from…

forcedotcom/sf-skills · 194 tokens

openloomi-api

OpenLoomi ships a local-first HTTP API served from the desktop app (port 3414, fallback 3515). All auth, Memory, AI, RAG, Loop, and Audit data live in a local SQLite database — your data stays on your machine and the OpenLoomi app is the source of truth. The only externally-routed auth path is the Composio OAuth…

melandlabs/openloomi · 106 tokens

nornicdb-grpc

Drive NornicDB over gRPC — the Qdrant-compatible surface (Collections, Points, Snapshots) plus the additive NornicSearch service. Use when ingesting via Qdrant SDKs, migrating from Qdrant, or running hybrid text+vector search from a non-Bolt client. Covers connection, RPC catalog, collection→database mapping…

orneryd/NornicDB · 98 tokens

field-service-sobject-create-configure

Headless 360 REST API deployment step for creating sObject records. Handles describe-based field discovery, required-field derivation, entity-relationship ordering, and composite graph transactions. Use this skill when a designer skill (or a user directly) needs to create sObject records after design confirmation…

forcedotcom/sf-skills · 74 tokens