dj-settings

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

A set of rules for organizing a Django settings.py file, which contains an application’s configuration. It groups related settings under consistently formatted section headings.

In plain words
What is it for?
Use it whenever modifying the project’s Django settings, such as security, applications, databases, caching, or internationalization options.
Why use it?
It makes configuration easier to scan and keeps changes in a predictable order.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it whenever modifying the project’s Django settings, such as security, applications, databases, caching, or internationalization options.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dvf/opinionated-django/dj-settings"><img src="https://agentmods.dev/badge/skills/dvf/opinionated-django/dj-settings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 608 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.00038 $0.00608
Opus 5 $0.00019 $0.00304
Sonnet 5 $0.00008 $0.00122
Haiku 4.5 $0.00004 $0.00061

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

Security

Grade A, and why

dj-settings 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 10d 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-settings/SKILL.md · 72 lines

How it starts

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

Organize Django Settings

When modifying src/project/settings.py, enforce this structure.

Section Format

Every logical group of settings gets a banner header:

# =============================================================================
# SECTION NAME
# =============================================================================
  • Banner lines are exactly 77 characters (# + 75 = characters)
  • Section name is UPPERCASE
  • One blank line before each banner (except at top of file)
  • No blank lines between the banner and the first setting in that section
  • No inline comments explaining what standard Django settings do — the section header is enough

Section Order

Settings must appear in this order. Omit sections that have no settings.

  1. Imports and BASE_DIR (no banner — these are preamble)
  2. LOGGING
  3. SECURITYSECRET_KEY, DEBUG, ALLOWED_HOSTS, CORS, CSRF, cookie settings
  4. APPLICATION DEFINITIONINSTALLED_APPS, MIDDLEWARE
  5. URLS AND WSGIROOT_URLCONF, WSGI_APPLICATION
  6. TEMPLATES
  7. AUTHAUTH_USER_MODEL, AUTH_PASSWORD_VALIDATORS, LOGIN_URL
  8. DATABASE
  9. SESSIONS
  10. CACHING
  11. INTERNATIONALIZATIONLANGUAGE_CODE, TIME_ZONE, USE_I18N, USE_TZ
  12. STATIC FILESSTATIC_URL, STATIC_ROOT, DEFAULT_AUTO_FIELD
  13. CELERY — all CELERY_* settings
  14. Any additional project-specific sections in alphabetical order

INSTALLED_APPS Sub-grouping

Within INSTALLED_APPS, group entries with inline comments:

INSTALLED_APPS = [
    # Django core
    "django.contrib.admin",
    ...
    # Third-party
    "corsheaders",
    ...
    # Project apps
    "products.apps.ProductsConfig",
    "orders.apps.OrdersConfig",
]

Project apps must use the dotted path to their AppConfig subclass (e.g., "myapp.apps.MyAppConfig"), not the short app name.

Rules

  • Do NOT add Django docs URLs as comments (e.g., # https://docs.djangoproject.com/...)
  • Do NOT add "Quick-start" or "Generated by" boilerplate comments
  • Keep AUTH_PASSWORD_VALIDATORS compact — one dict per line when the only key is "NAME"
  • When adding a new setting, place it in the correct existing section. Create a new section only if none fit.

Read the full file on GitHub · 72 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. 10d ago First seen · 72 lines · 38 tokens per session scan A 42dc7556ba9f

Subscribe to this mod's changes

dj-settings is a skill published in the GitHub repository dvf/opinionated-django (110 stars, last pushed 27d ago), licensed MIT. It adds 38 tokens to every session and 608 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

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

rocm-kernels

Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…

huggingface/kernels · 93 tokens

holoscan-install-wheel

Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.

NVIDIA/skills · 37 tokens

typing-exclusion-worker

Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.

getsentry/skills · 57 tokens