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.5 $0.00015 $0.00243
Sonnet 5.5 $0.00008 $0.00122
Haiku 4.5 $0.00004 $0.00061

Measured 2mo ago against content hash 42dc7556ba9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. SECURITY — SECRET_KEY, DEBUG, ALLOWED_HOSTS, CORS, CSRF, cookie settings
  4. APPLICATION DEFINITION — INSTALLED_APPS, MIDDLEWARE
  5. URLS AND WSGI — ROOT_URLCONF, WSGI_APPLICATION
  6. TEMPLATES
  7. AUTH — AUTH_USER_MODEL, AUTH_PASSWORD_VALIDATORS, LOGIN_URL
  8. DATABASE
  9. SESSIONS
  10. CACHING
  11. INTERNATIONALIZATION — LANGUAGE_CODE, TIME_ZONE, USE_I18N, USE_TZ
  12. STATIC FILES — STATIC_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. 2mo 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 (111 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 608 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

dj-settings compared with skills from other repositories

dj-settings next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dj-settingsdvf/opinionated-djangoSkill1112mo agoMITA38Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill56k6d agoMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill56k6d agoMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill3.9k2d agoApache-2.0A34Claude Code, Codex
future-self-liteTHU-MAIC/OpenMAICSkill43ktodayMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill7832d agoApache-2.0A93Claude Code
typing-exclusion-workergetsentry/skillsSkill1.1k3d agoApache-2.0A57Claude Code