dj-scaffold

dj-scaffold is a skill for Claude Code from dvf/opinionated-django. It costs 84 tokens per session (3,285 once invoked), scanned A, original, MIT.

A setup guide for arranging a Django project in the op-django structure, with a shared project shell, API layout, service registry, settings, and related foundations. Django is a Python web framework.

In plain words
What is it for?
Use it when starting a Django project or adapting an existing one to this layout before adding features.
Why use it?
It gives a new or existing Django project the structure expected by the project's architecture, signal, and settings tools.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python src/manage.py check.

Good fit Use it when starting a Django project or adapting an existing one to this layout before adding features.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dvf/opinionated-django
agentmods
npx agentmods add skills/dvf/opinionated-django/dj-scaffold

Made for: Claude Code.

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 dj-scaffold

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dvf/opinionated-django/dj-scaffold"><img src="https://agentmods.dev/badge/skills/dvf/opinionated-django/dj-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,285 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.00084 $0.03285
Opus 5 $0.00042 $0.01643
Sonnet 5 $0.00017 $0.00657
Haiku 4.5 $0.00008 $0.00329

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

Security

Grade A, and why

dj-scaffold 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 11d 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/dj-scaffold/SKILL.md · 381 lines

How it starts

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

Scaffold an op-django Project

You are preparing a Django project to use the op-django patterns. After this skill runs, the dj-architecture and dj-signals skills can add features on top without any further setup.

BEFORE WRITING CODE

Figure out which situation you're in:

  • Greenfield — no Django project exists yet. You will run uv init and django-admin startproject, then transform the result.
  • Existing Django project — a manage.py, settings.py, and at least one app already exist. You will add the src/project/ shell alongside what's there and relocate files only if asked.

Read pyproject.toml (if present) and locate manage.py and settings.py so you know the project's current layout. Confirm with the user before moving any existing files.

Target Layout

src/
  manage.py
  project/
    __init__.py
    settings.py
    urls.py
    wsgi.py
    asgi.py
    api/
      __init__.py   # NinjaAPI() instance, exception handlers, mounts all resource routers
      <resource>/
        __init__.py  # re-exports router
        routes.py    # handler functions
        schemas.py   # ninja.Schema input types
    types.py        # AuthedRequest and other shared typing aliases
    ids.py          # prefixed ULID generators
    services.py    # svcs registry + get() helper
    signals.py     # ReliableSignal base + send_reliable machinery
  <app>/
    __init__.py
    apps.py
    admin.py
    models/
      __init__.py
      <entity>.py
    dtos/
      __init__.py
      <entity>.py
    repositories/
      __init__.py
      <entity>.py
    services/
      __init__.py
      <entity>.py
    signals.py      # optional, defines ReliableSignal instances
    receivers.py    # optional, @receiver handlers — must be idempotent
tests/
  <app>/
    test_repo.py
    test_service.py
    test_api.py
pyproject.toml

Per-app models/, dtos/, repositories/, services/ are packages, not single files — one module per entity.

Step 1: Dependencies

Use uv for everything. Never pip or poetry.

Read the full file on GitHub · 381 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. 11d ago First seen · 381 lines · 84 tokens per session scan A cfc07d2be566

Subscribe to this mod's changes

dj-scaffold is a skill published in the GitHub repository dvf/opinionated-django (110 stars, last pushed 27d ago), licensed MIT. It adds 84 tokens to every session and 3,285 once invoked, about $0.0004 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.