The Ultimate CLAUDE.md File

One file, your rules loaded automatically every session.

Drop CLAUDE.md in your project root. Claude Code reads it at the start of every session -- your preferences, guardrails, and project context loaded before you type a word.

Works in
Claude CodeNative support
Scroll to get the file

Set up once. Never explain yourself again.

01

Download the file

Hit the download button below. CLAUDE.md lands in your Downloads folder, named correctly and ready to go.

02

Move it to your project root

Drop it in the root folder of your project -- the same level as your package.json or README. That is the only place it needs to be.

03

Open Claude Code

Claude Code reads CLAUDE.md automatically at session start. Your rules, routing, and context are loaded before you type a word.

Want to learn how to do this?

Join the Business Automation Mastermind

A small, focused group of business owners who meet weekly to build real things, fast -- leaving more time to serve clients and be with the people you love.

Small group, capped at 15
We meet weekly
Idea to live site in one session
Learn More

Real reactions from Cohort 1

What members said after their sessions.

Sophia

Sophia

Session 4

We have like 55 signups for our masterclass and we've only launched maybe four days ago.

Jenny

Jenny

Session 3

It took like 5 minutes! I just took the one which took me one year, and I said make an essence of that, and what would be the most interesting free webinar?

Alla

Alla

Session 3

It looks amazing, and everyone loves my website, and they can't believe that I've created it. I can't believe it myself.

SunDari

SunDari

Session 1

I used to pay all these people; now I can do it myself.

Ronnie

Ronnie

Session 2

I already had a draft website and it created a link to my calendar, a link to my link tree, a hyperlink for my WhatsApp, all the same photos. This is like 90% of the way there to the kind of website that I want.

Alla

Alla

Session 4

I've been comparing myself to a bird who now has wings. I feel so free.

Sophia

Sophia

Session 4

I was able to go in and create my full email marketing funnel. It took off so much of the work of creating the workflow.

Johanna

Johanna

Session 1

I have particles floating in the background, a circle following my cursor, things glowing. I could not believe I built this in one session.

Ronnie

Ronnie

Session 1

It pulled in my calendar link, my WhatsApp, all my deck photos. This is 90% of the website I wanted. In 45 minutes.

Aaqib

Aaqib

Session 2

I got a functional contact form on the website using Resend. I managed to get that set up in like 20 minutes. So I'm pretty stoked.

Pina Maria

Pina Maria

Session 4

I said change it and it changed my whole website in just one second. Everything worked, it was so easy.

Johanna

Johanna

Session 4

I was so on fire and so motivated because so many pieces of the puzzle I've been working on since a long time are coming together.

Jasmine

Jasmine

Session 2

It was great. It's been something that I really want to do, so I'm super grateful. It's so easy and we can just keep building over time. It's epic.

Aaqib

Aaqib

Session 3

I did a whole target audience and persona building exercise. I can safely say that I feel addicted to Claude.

Marina

Marina

Session 3

It's really empowering to learn and to see, with all these different tools, what becomes possible.

SunDari

SunDari

Session 4

Excited that I can just ask Claude anything and be guided and supported through it all.

Quincee

Quincee

Session 4

The website's looking great. I did a brand photoshoot this past week and I feel like a brand new person digitally.

Alla

Alla

Session 2

I got my website online. Thank you so much, it was amazing.

Quincee

Quincee

Session 4

I feel magnetic. I feel guided.

The File

Download. Drop. Done.

In the Business Automation Mastermind, this is the first thing we put in every new project. Edit the sections that say “replace this” and you are done.

CLAUDE.md
# Joe Che's Ultimate CLAUDE.md

(This file goes in the root of your project, named exactly: CLAUDE.md)
(Claude Code reads it automatically at the start of every session.)
(Delete all parenthetical notes before you start using it -- they're just for you.)

---

## What Is CLAUDE.md?

CLAUDE.md is a special file that Claude Code reads at the start of every session.
It acts like a standing brief: your rules, preferences, and context are loaded before you type a word.
Think of it as programming Claude's defaults so you never have to repeat yourself.

Place this file in your project root as `CLAUDE.md` and Claude Code will pick it up automatically.

---

## Agent Routing (Always Apply)

(This section keeps your main session context clean and saves money on API costs.
Claude Code can spin up background "agents" -- separate AI workers -- for heavy lifting.
Without this, Claude does everything in the main session, which bloats context and costs more.)

**Default to background agents. Main session context is precious. Protect it.**

| Type | Action |
|------|--------|
| Conversational / simple question | Answer directly in session |
| Research / "find where X is", "how does Y work" | Spawn Explore agent (background when possible) |
| Planning / architecture | Spawn Plan agent |
| Multi-step task / anything with more than 2 tool calls | Spawn general-purpose agent, foreground |

**Which model to use for agents:**
(Haiku is fast and cheap. Sonnet is the workhorse. Opus is for hard problems.)
- `haiku` -- research, file reads, searching, simple transforms
- `sonnet` -- coding, writing, reasoning, most tasks (the default)
- `opus` -- deep architecture decisions, complex debugging, high-stakes work

🔴 If a task requires more than 2 tool calls, it belongs in an agent -- not the main session.
🔴 Run independent agents in parallel (one message, multiple Agent tool calls at once).
🔴 Never search, read files, or grep in the main session when an Explore agent can do it.

```
❌ Using file search directly in main session to answer a research question
✅ Spawning an Explore agent (haiku) to search and return a clean summary

❌ Doing 5 steps in sequence in the main session to build a feature
✅ Spawning a general-purpose agent (sonnet) with the full task description

❌ Asking "should I proceed?" before every subtask
✅ Proceeding autonomously, reporting back only at decision points or blockers
```

---

## Autonomy and Style

(This controls how much Claude asks vs. just does. Adjust to your preference.)

**Proceed without asking:** file reads, edits, running commands, spawning agents, writing code.

**Always confirm before:** deleting files or branches, pushing to remote, sending external messages,
spending money via APIs, or anything that cannot be undone in 30 seconds.

**Response style:** Be terse. Lead with the answer or the action. No preamble.
No trailing summaries of what was just done. If it fits in one sentence, use one sentence.

---

## Content Rules

(Add your own house style rules here. This one is mine -- keep it or remove it.)

🔴 No em dashes in any generated content. Use commas, colons, or rewrite the sentence.

---

## Iron Laws

(Non-negotiable rules. The red circle means it is required, not optional.
Replace the MyOS-specific ones with your own project context.)

🔴 **Read before writing.** Check your context/memory files before starting any task.
🔴 **Never report done without verifying.** Run the code, check the output. "It should work" is not done.
🔴 **Never commit .env or secrets.** Flag immediately if a secret appears in plaintext.
🔴 **If blocked after 2 attempts, stop and explain clearly.** No --no-verify or --force without permission.
🔴 **Never create files unless absolutely necessary.** Prefer editing existing files.

---

## Session Startup

(Optional but powerful. Tell Claude what to read at the start of every session.
Replace these with your own files -- or create USER.md and MEMORY.md for your project.
Delete this whole section if you don't have these files yet.)

Before doing anything, read:
1. `USER.md` -- who you're helping (background, goals, preferences)
2. `MEMORY.md` -- long-term notes and context
3. Any active handoff or notes file

---

## Your Project

(Replace this section with a description of your project.
The more context Claude has, the less you have to explain each session.)

- **What it is:** (one sentence describing your project)
- **Stack:** (e.g. Next.js, Supabase, Tailwind)
- **Key paths:** (e.g. src/app/ for pages, src/lib/ for utilities)

---

**Created by Joe Che**
**mastermindshq.business**
**Free to use, share, and adapt.**
Download CLAUDE.md

Free to use, share, and adapt. This is exactly the format Joe uses in every project. Customize the sections that are marked as placeholders and delete the ones you do not need.

0

sections inside the file

0

iron laws pre-written for you

0

file in your project root

Everything inside this file

Six sections. Each one solves a real problem with how Claude behaves by default.

Background agent routing table

Routes tasks to the right agent type automatically. Keeps your main session context lean and cuts API costs.

Model selector guide (Haiku, Sonnet, Opus)

Tells Claude which model to use for which job. Haiku for research, Sonnet for most tasks, Opus for hard problems.

Parallel agent rule

Forces independent tasks to run at the same time instead of one after another. Faster and cheaper.

Proceed-without-asking list

Claude reads files, edits code, and runs commands without stopping to ask. No more "Should I proceed?" interruptions.

Always-confirm list

Hard stops before deleting files, pushing to remote, or spending money via APIs. The guardrails that matter.

Response style rules

Terse, lead-with-the-answer style. No preamble, no trailing summaries. Claude gets to the point immediately.

House style placeholder

Add your own style rules here. The template ships with one example: no em dashes in any generated content.

Read before writing

Claude checks your context and memory files before starting any task. No flying blind.

Never report done without verifying

"It should work" is not done. Claude runs the code and checks the output before calling anything complete.

Never commit secrets

No .env files, no API keys in commits. Claude flags immediately if a secret appears in plaintext.

Stop and explain if blocked

After 2 failed attempts, Claude explains clearly instead of trying risky workarounds like --no-verify or --force.

Never create unnecessary files

Prefer editing existing files. No file bloat, no clutter, no ghost files appearing in your project.

Auto-read list (USER.md, MEMORY.md)

Claude reads your key context files at the start of every session. Your preferences are loaded before you say a word.

Project description placeholder

Describe your project once. Claude carries that context into every session without you repeating it.

Stack and key paths

Tell Claude your tech stack and folder structure so it navigates your codebase correctly from session one.

P.S. This is the actual CLAUDE.md Joe uses. It took a few iterations to get right. You are getting the finished version.