django-boilerplate: Instructions file for Claude Code

CLAUDE.md

django-boilerplate CLAUDE.md is an instructions file for Claude Code from saaspegasus/django-boilerplate. It costs 1,871 tokens per session, scanned A, original, MIT.

Project instructions for a Django web application, a Python framework for building websites, with authentication, browser interactions, APIs, background jobs, and a PostgreSQL database.

In plain words
What is it for?
Use them when setting up the project, starting the app, changing Django views or templates, working on the JavaScript front end, editing APIs, or running background tasks.
Why use it?
They give an AI coding agent the codebase structure, technology choices, setup commands, and development conventions to follow.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is saaspegasus/django-boilerplate's own configuration. It tells Claude Code how to work on django-boilerplate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything django-boilerplate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to saaspegasus/django-boilerplate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/saaspegasus/django-boilerplate/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/saaspegasus/django-boilerplate

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 django-boilerplate CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/saaspegasus/django-boilerplate/claude-md/github.svg)](https://agentmods.dev/instructions/saaspegasus/django-boilerplate/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/saaspegasus/django-boilerplate/claude-md"><img src="https://agentmods.dev/badge/instructions/saaspegasus/django-boilerplate/claude-md/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-boilerplate CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/saaspegasus/django-boilerplate/claude-md"><img src="https://agentmods.dev/badge/instructions/saaspegasus/django-boilerplate/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,871 This file is loaded in full into every session.
When invoked 1,871 The same file — it is already loaded in full.
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.01871 $0.01871
Opus 5 $0.00936 $0.00936
Sonnet 5 $0.00374 $0.00374
Haiku 4.5 $0.00187 $0.00187

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

Security

Grade A, and why

django-boilerplate CLAUDE.md 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.

CLAUDE.md · 212 lines

How it starts

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

Codebase Guidelines

Architecture

  • This is a Django project built on Python 3.14.
  • User authentication uses django-allauth.
  • The front end is mostly standard Django views and templates.
  • HTMX and Alpine.js are used to provide single-page-app user experience with Django templates. HTMX is used for interactions which require accessing the backend, and Alpine.js is used for browser-only interactions.
  • JavaScript files are kept in the /assets/ folder and built by vite. JavaScript code is typically loaded via the static files framework inside Django templates using django-vite.
  • APIs use Django Rest Framework, and JavaScript code that interacts with APIs uses an auto-generated OpenAPI-schema-baesd client.
  • The front end uses Tailwind (Version 4) and DaisyUI.
  • The main database is Postgres.
  • Celery is used for background jobs and scheduled tasks.
  • Redis is used as the default cache, and the message broker for Celery (if enabled).

Commands you can run

The following commands can be used for various tools and workflows. A Makefile is provided to help centralize commands:

make  # List available commands

First-time Setup

make init

Starting the Application

Start background services:

make start     # Run in foreground with logs
make start-bg  # Run in background

Start the app:

make dev       # Run in foreground with logs

Access the app at http://localhost:8000

Stopping Services

Stop background services:

make stop

Common Commands

Development

make shell            # Open Python / Django shell
make dbshell          # Open PostgreSQL shell
make manage ARGS='command'  # Run any Django management command

Database

make migrations       # Create new migrations
make migrate          # Apply migrations

Testing

make test                              # Run all tests
make test ARGS='apps.module.tests.test_file'  # Run specific test
make test ARGS='path.to.test --keepdb'        # Run with options

Read the full file on GitHub · 212 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 · 212 lines · 1,871 tokens per session scan A 2dc12e2beb4a

Subscribe to this mod's changes

django-boilerplate CLAUDE.md is an instructions file published in the GitHub repository saaspegasus/django-boilerplate (168 stars, last pushed yesterday), licensed MIT. It adds 1,871 tokens to every session, about $0.0094 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 instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens