boilerplate.md CLAUDE.md

boilerplate.md CLAUDE.md is an instructions file for Claude Code from ds1/boilerplate.md. It costs 1,820 tokens per session, scanned B, original, MIT.

A set of standing instructions for Claude Code, an AI coding assistant, covering preferences, writing style, safety, and project state.

In plain words
What is it for?
It helps configure how Claude Code presents choices, writes text, handles risky actions, and manages project work.
Why use it?
It keeps the assistant's behavior consistent across coding sessions and records preferences that should persist.

Instructions file for Claude Code

Written for Claude Code: PreCompact hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

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.

agentmods
npx agentmods add instructions/ds1/boilerplate.md/claude-md
Clone the repo
git clone --depth 1 https://github.com/ds1/boilerplate.md

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ds1/boilerplate.md/claude-md.svg)](https://agentmods.dev/instructions/ds1/boilerplate.md/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ds1/boilerplate.md/claude-md"><img src="https://agentmods.dev/badge/instructions/ds1/boilerplate.md/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,820 This file is loaded in full into every session.
When invoked 1,820 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
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.01820 $0.01820
Opus 5 $0.00910 $0.00910
Sonnet 5 $0.00364 $0.00364
Haiku 4.5 $0.00182 $0.00182

Measured 6d ago against content hash 68a915683e7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

boilerplate.md CLAUDE.md scanned grade B with 1 finding 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 6d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Tool permissions** (e.g., "allow rm commands", "allow docker") -> add to `~/.claude/settings.json` under `permissions.allow`
CLAUDE.md · 141 lines

How it starts

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

Global Claude Code Instructions

Preference Persistence

When offering Yes/No options with a "during this session" scope, always include a third option to save the preference globally. For example:

1. Yes
2. Yes, always do this (session only)
3. Yes, always do this (save globally)

If the user picks option 3:

  • Behavioral preferences (e.g., "always run tests after changes", "don't ask before committing") -> append to this file (~/.claude/CLAUDE.md)
  • Tool permissions (e.g., "allow rm commands", "allow docker") -> add to ~/.claude/settings.json under permissions.allow

Default to recommending option 3 over option 2. Session-only preferences are lost on context compression and /clear, making them unreliable. Prefer durable persistence.

Writing Style

  • Never use em dashes (—). Use periods, commas, or restructure the sentence instead.
  • Minimize hyphen usage. Prefer spelling out compound modifiers or restructuring.

Safety Net (bypassPermissions mode is ON)

Since all actions are auto-approved, follow these guardrails:

  • Announce destructive actions (rm, git reset, drop table, etc.) before executing. Give the user a moment to cancel.
  • Commit atomically. Make small, focused commits so any change can be cleanly reverted with git revert.
  • Never force-push to main/master without explicit confirmation.
  • Never delete files outside the project directory without explicit confirmation.
  • Never modify ~/.claude/settings.json or ~/.claude/CLAUDE.md without showing the proposed change first and getting a yes.

Project State Management

CLAUDE.md is for stable instructions only. Never store TODOs, changelogs, sprint status, session context, or completed work in CLAUDE.md. These change frequently and burn context window on every conversation.

Use this consistent file structure across all projects:

project/
├── CLAUDE.md           # Stable: commands, conventions, architecture, gotchas
├── STATUS.md           # Active: current TODOs, in-progress work, blockers
├── CHANGELOG.md        # History: versioned release notes, completed milestones
├── _planning/          # Planning (optional, for larger projects)
│   ├── backlog.md      # Prioritized feature backlog
│   ├── sprint.md       # Current sprint scope and progress
│   ├── plans/          # Saved plans from Plan Mode (auto-saved here)
│   │   └── YYYY-MM-DD-plan-name.md
│   └── research/       # Research docs, vendor analysis, etc.

Read the full file on GitHub · 141 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. 6d ago First seen · 141 lines · 1,820 tokens per session scan B 68a915683e7d

Subscribe to this mod's changes

boilerplate.md CLAUDE.md is an instructions file published in the GitHub repository ds1/boilerplate.md (5 stars, last pushed 6mo ago), licensed MIT. It adds 1,820 tokens to every session, about $0.0091 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

ai-website-cloner-template copilot-instructions.md

Instructions for JCodesMore/ai-website-cloner-template, covering this is not the next.js you know, website reverse-engineer template, what this is, tech stack and commands.

JCodesMore/ai-website-cloner-template · 1,779 tokens

ai-website-cloner-template AGENTS.md

Instructions for JCodesMore/ai-website-cloner-template, covering this is not the next.js you know, website reverse-engineer template, what this is, tech stack and commands.

JCodesMore/ai-website-cloner-template · 808 tokens

django-saas-boilerplate CLAUDE.md

Claude Code instructions for eriktaveras/django-saas-boilerplate, covering django saas boilerplate, tech stack, project structure, key conventions and user model.

eriktaveras/django-saas-boilerplate · 665 tokens

appointme CLAUDE.md

Instructions for bravodev-hub/appointme, covering claude.md, build and development commands, running the full stack (recommended), backend only and frontend only.

bravodev-hub/appointme · 2,201 tokens

lovable-boilerplate global.instructions.md

Instructions for chihebnabil/lovable-boilerplate, covering react + vite + shadcn/ui template - premium design system, critical rules - read first, never create, always create and essential commands.

chihebnabil/lovable-boilerplate · 1,766 tokens

lovable-boilerplate components.instructions.md

Instructions for chihebnabil/lovable-boilerplate, covering component-specific guidelines, component architecture rules, ui components (src/components/ui/), common components (src/components/common/) and feature components (src/components/features/).

chihebnabil/lovable-boilerplate · 391 tokens