Home » Memory » CLAUDE.md File: The Complete Configuration Guide

CLAUDE.md File: The Complete Configuration Guide

CLAUDE.md File: The Complete Configuration Guide

Short answer: A CLAUDE.md file is the configuration and memory file Claude reads at the start of every session. It holds your context, your preferences, and your working rules, so Claude behaves the way you want without being told again each time. Keep it short and specific: who you are, the tools you use, your formatting standards, and your do-nots.

What Is a CLAUDE.md File?

Your CLAUDE.md file is the single most important document in your Claude workspace. It is a persistent instruction set that tells Claude who you are, how you work, what your business does, and what rules to follow – every session, without repeating yourself.

Think of it as the difference between training a new employee every morning and working with a colleague who already knows the operation. Without a configured CLAUDE.md file, Claude starts every session from zero. With one, Claude picks up where it left off.

What the CLAUDE.md file controls:

  • Identity and context – Your name, role, business type, client details, and operational specifics
  • Behavioral rules – Output formats, naming conventions, tone preferences, and things Claude should never do
  • Project awareness – Active projects, file structures, where to find what, and current priorities
  • Memory system integration – How Claude captures and retrieves learnings between sessions
  • Tool and integration context – Which MCP connectors, plugins, and workflows are active

Most CLAUDE.md file best practices content stops at the basics – name, role, a few preferences. This guide covers the complete configuration that makes Claude function as a business partner, not a chatbot.

How to Structure Your CLAUDE.md File

The most effective CLAUDE.md files share a common architecture. After configuring dozens of workspaces for professionals across marketing, consulting, finance, and operations, this is the structure that consistently produces the best results.

Section 1 – Identity Block

The identity block tells Claude who it is working with. This is not cosmetic – it changes how Claude prioritizes information, what assumptions it makes, and how it frames its responses.

What to include:

  • Your name and role – “Michael Robichaud, Founder, Claude Consultant and AI Strategist”
  • Business description – One sentence on what the business does and who it serves
  • Key clients or projects – Names, context, current status
  • Team members – Who else Claude might hear about, their roles, and their relationship to you
  • Industry context – Terminology, regulations, competitive landscape specifics

Section 2 – Behavioral Rules

Behavioral rules prevent Claude from guessing about your preferences. They are the difference between getting outputs you can use and getting outputs you have to reformat every time.

Essential rules to configure:

  • Output format – “Format for copy-paste into Google Docs” or “Use markdown headers”
  • File naming convention – “YYYY-MM-DD_PROJECT_Topic_v01.ext”
  • Tone and voice – “Professional B2B, no emojis, no exclamation points unless quoting someone”
  • Forbidden behaviors – “Never use em dashes. Never say ‘leverage’ or ‘utilize.’ Never create README files unless asked.”
  • Decision-making authority – “Ask before making structural changes. Execute formatting changes without asking.”

Section 3 – Project Context

The project context section is where most CLAUDE.md files fall short. Without it, Claude knows who you are but has no idea what you are working on right now.

What to include:

  • Active projects – Name, status, priority, next action
  • File structure map – Where to find client briefs, project files, deliverables, and reference documents
  • Current deadlines – What is due and when
  • Session triggers – “When I say ‘CPBS,’ load the CPBS brief and memory file”

Section 4 – Memory System

A configured memory system transforms Claude from a single-session tool into a persistent business partner. The CLAUDE.md file tells Claude where to store learnings, what to capture, and how to organize it.

Three-layer architecture:

  • CLAUDE.md (Layer 1) – Your instructions to Claude. Stable, curated, updated periodically.
  • Client briefs (Layer 2) – Structured reference docs for each project or client. Updated as projects evolve.
  • Memory files (Layer 3) – Claude’s own notes about what it has learned. Updated every session in real time.

When all three layers work together, Claude has full context – your instructions, your business details, and its own accumulated learnings – without you explaining anything twice.

Recommended next step

Configure your CLAUDE.md in 30 minutes

The Claude AI Strategy Stack Foundation Plugin walks you through every section above with guided questions. No blank-file anxiety. No guessing what to include.

Explore the Foundation Plugin

Common CLAUDE.md Configuration Mistakes

Writing Instructions That Are Too Vague

“Be professional” tells Claude almost nothing. “Write in a professional B2B tone. No emojis. No exclamation points. Paragraphs of 2-4 sentences. Bold for key terms only.” tells Claude exactly what you need. Specificity in the CLAUDE.md file directly correlates with output quality.

Skipping the Memory System

A CLAUDE.md without a memory system is a set of instructions with no learning capability. Claude follows the rules but never gets smarter about your business over time. The memory layer (Layer 3 in the architecture above) is what makes the difference between a configured assistant and a genuine business partner.

Never Updating the File

Your CLAUDE.md should evolve as your business evolves. New clients, new projects, new preferences – all belong in the file. A quarterly review of your CLAUDE.md is the minimum cadence. Many professionals who use Claude actively update theirs weekly.

Where Your CLAUDE.md File Lives

Claude looks in three places and merges what it finds, working from broad to specific.

LocationScopeBest used for
~/.claude/CLAUDE.mdEvery project on your machinePersonal preferences that never change. Your identity, tone rules, permanent do-nots.
<project-root>/CLAUDE.mdThat one projectClient details, conventions, file maps. This is the main one.
<subdirectory>/CLAUDE.mdThat subdirectory onlyRules that apply to one part of a project.

Two details worth knowing, because they explain most of the confusion people run into.

The files stack, they do not compete. A project file adds to your global file rather than replacing it. So keep the global file free of anything client-specific, and you avoid the problem entirely.

Subdirectory files load on demand, not at session start. The files at and above your working directory are read when the session opens. A subdirectory file is only pulled in when Claude actually reads something in that folder. If you put a critical rule three levels down, do not assume Claude has seen it.

One more thing that trips people up: editing the file mid-session does not take effect immediately. The change is picked up on your next session, or sooner if you open /memory or run /compact.

The practical rule: if you would want Claude to know it on a Sunday afternoon working on something unrelated, it goes in the global file. If it only matters inside one engagement, it goes in that project’s file.

How to Create Your First CLAUDE.md File

There is a shortcut most people miss: type /init and Claude drafts the file for you, reading your workspace and proposing structure, conventions, and commands it detects. Review it, delete anything wrong, keep the rest. Five minutes.

If you would rather write it yourself, you need four lines, not a template.

  1. Open a plain text file and name it CLAUDE.md. Capitals matter. The .md extension matters.
  2. Write who you are in one sentence. Name, role, what the business does. That single line changes more about Claude’s output than anything else you will add.
  3. Write three rules you already know you want. Not aspirational ones. The three things you find yourself correcting most often. “No emojis.” “Format for Google Docs.” “Ask before restructuring files.”
  4. Save it and start a session. Ask Claude to summarize what it knows about you. What comes back tells you what is missing far faster than planning ever will.

Everything after that is refinement. The most common failure is not a badly structured file, it is an empty one that never got started because the author was waiting to have the whole architecture worked out first.

If you want a guided path through all four sections rather than a blank file, see how to create your first CLAUDE.md file.

A Complete CLAUDE.md Example You Can Copy

Here is a working file, trimmed but structurally complete. Replace the specifics with your own.

# CLAUDE.md

## Who I Am
Dana Whitfield, owner of Whitfield Bookkeeping. I do monthly close and
clean-up work for 14 small business clients, mostly trades and retail,
all on QuickBooks Online.

## How to Work With Me
- Assume intermediate accounting knowledge. Skip the basics.
- Be direct. If something looks wrong in my numbers, say so first.
- Format anything client-facing for copy-paste into Google Docs.
- File naming: YYYY-MM-DD_CLIENT_Topic_v01.ext
- Never use em dashes. Never say "leverage" or "utilize."
- Ask before restructuring folders. Reformat without asking.

## My Clients
- Brightline Electric: monthly close, 15th. Messy AP, watch for duplicates.
- Corvo Tile: quarterly. Owner pays personal expenses from business account.
- (...12 more)

## Active Work
- Q3 close for all monthly clients, due Oct 15
- Cleaning up Brightline's 2025 chart of accounts

## Memory
Write learnings to _Memory/ as you go, one file per client.
Log corrections I make so you stop repeating them.
Tell me in one line when you save something.

Note what is not in it. No mission statement, no aspirations, no explanation of what bookkeeping is. Every line either identifies something Claude cannot infer, or prevents a specific mistake that has already happened.

CLAUDE.md vs Claude Memory: What Goes Where

These two are easy to confuse and they do different jobs.

CLAUDE.mdClaude memory
Who writes itYouClaude
What it holdsInstructions and stable contextWhat Claude has learned while working
How often it changesPeriodically, deliberatelyEvery session, automatically
Good example“Never use em dashes”“Corrected the invoice format on Sep 3, use the short header”
Bad exampleYesterday’s meeting notesYour tone preferences

The simplest test: if you would be annoyed to have to say it again, it belongs in CLAUDE.md. If it is something Claude figured out and should not forget, it belongs in memory.

Two things about Claude memory specifically that catch people out. Memory is scoped to the project, so what Claude learns working on one client does not leak into another. And Claude desktop sessions running locally on your computer do not use memory at all. If you work locally, your CLAUDE.md is not just the more important of the two, it is the only one doing any work.

That is the strongest argument for writing a real CLAUDE.md rather than relying on Claude to remember. Memory is a convenience that varies by how you run Claude. The file is always there.

Is a CLAUDE.md File Required?

No. Claude runs without one.

The honest version of that answer: it runs, but it starts every session with no idea who you are, so you spend the first several exchanges re-establishing context you already established yesterday. For a one-off task that is fine. For anything you do repeatedly, the file pays for itself the second time you sit down.

There is no minimum. A four-line CLAUDE.md beats no CLAUDE.md by a wide margin, and it beats a 3,000-word one you never finished writing.

Keeping Your CLAUDE.md Current

A CLAUDE.md file rots quietly. Nothing breaks, the outputs just drift back toward generic.

Quarterly is the minimum. Weekly is what most people who rely on it actually do, usually as a two-minute edit rather than a review.

Three signals it needs attention:

  • You corrected the same thing twice this week. That correction belongs in the file.
  • A client or project in it is finished. Stale project context competes with current context for Claude’s attention.
  • Outputs feel more generic than they did a month ago. Usually means the file has grown long and unfocused rather than that anything is wrong.

On length, Anthropic’s own guidance is to stay under roughly 200 lines. Every line is loaded into context, so each one should earn its place. When the file passes that point, split it: move client detail into per-project files and keep the global file to identity, rules, and pointers.

CLAUDE.md Equivalents in Other Tools

The idea of a persistent, project-local instruction file is not unique to one product, and if you work across tools it helps to know the pattern is portable.

Most coding and agent tools have converged on the same shape: a markdown file at a known path that gets loaded into context automatically at the start of a session. The filenames differ by tool. The discipline does not.

What transfers between them is the thinking, not the file. The identity block, the explicit do-nots, the decision-making authority line. Those are worth writing once, well, and then adapting to whatever file a given tool expects.

A CLAUDE.md file holds one person’s instructions. When a whole team needs Claude to know the same things (who you serve, how you price, how you write), that becomes one shared business profile every person’s Claude reads first. Building it once for everyone is part of setting Claude up for a team. If you would rather talk it through first, book a short call.

Frequently Asked Questions

Where is the CLAUDE.md file located in Claude?

Three places, merged broad to specific: ~/.claude/CLAUDE.md for every project on your machine, CLAUDE.md at your project root, and optional subdirectory files. The project-root file is the main one. Subdirectory files load on demand, not at session start.

How do I create a CLAUDE.md file?

Fastest route is /init, which drafts one from your workspace for you to review. By hand: create a file named CLAUDE.md, write one sentence on who you are, add three rules you already know you want, and save. Then ask Claude what it knows about you.

Why doesn’t my CLAUDE.md update take effect?

Edits made mid-session are not re-read from disk on every turn. The change lands on your next session, or immediately if you open /memory or run /compact. Most “it ignored my edit” reports are this, not a broken file.

How long should a CLAUDE.md file be?

Anthropic’s own guidance is under roughly 200 lines. Every line is loaded into context, so each one should earn its place. When it passes that point, split it: identity and rules stay global, client detail moves into per-project files.

Is a CLAUDE.md file required?

No. Claude works without one. But without it, every session starts from zero and you re-establish context you already gave yesterday. For repeated work, a four-line file pays for itself immediately.

What should I put in a CLAUDE.md file?

Four things: who you are and what your business does, how you want Claude to behave, what you are currently working on, and where Claude should store what it learns. Anything Claude cannot infer, or any mistake you have already had to correct once.

What is the difference between CLAUDE.md and Claude memory?

You write CLAUDE.md; it holds instructions and stable context. Claude writes memory; it holds what Claude has learned while working. If you would be annoyed to say it twice, it goes in CLAUDE.md. If Claude worked it out, it goes in memory.

Can I have more than one CLAUDE.md file?

Yes, and you should. One global file for how you work, plus a project-level file for client specifics, plus optional subdirectory files. They stack rather than override.

How often should I update my CLAUDE.md file?

Quarterly at minimum, weekly in practice for most people who rely on it. The trigger is not the calendar, it is noticing you corrected the same thing twice.

Why is Claude ignoring my CLAUDE.md file?

Usually the instruction is too vague to act on. “Be professional” gives Claude nothing. “No emojis, no exclamation points, paragraphs of two to four sentences” is actionable. Vague rules are the most common cause of a file that appears to do nothing.

Do other AI tools have a CLAUDE.md equivalent?

Most agent and coding tools have converged on the same idea: a markdown instruction file loaded automatically at session start. Filenames differ. The useful part, the identity block and explicit do-nots, transfers between them with minimal editing.

Conclusion

Your CLAUDE.md file is the foundation of everything else in your Claude workspace. Configure it once with the four-section architecture – identity, behavioral rules, project context, and memory system – and every session after that starts where the last one left off.

If you want to go deeper into memory systems and context management, the Memory category has guides on multiple CLAUDE.md files, persistent memory stacks, and session-to-session learning. If you want a fully configured workspace without the manual setup, the Claude AI Strategy Stack Foundation Plugin builds the entire architecture for you.

Once your CLAUDE.md file is doing real work, the natural next step is learning to run the whole workspace with it. The free Learn Claude guides at Strategized.ai show non-technical professionals how to do exactly that.

Or skip the blank file entirely

Writing a CLAUDE.md from scratch takes a few passes to get right. A Persona Plugin ships with the configuration already written for your role: 20+ capabilities, your voice, your workflows. $99 one-time each at Strategized.ai/plugins, or All-Access at $797, running on the free Foundation Plugin.

See the plugins →

12 roles available. Start with one, upgrade to All-Access any time.

Michael Robichaud

Written by

Michael Robichaud

Founder of Strategized.ai and creator of the Claude AI Strategy Stack. Michael sets Claude up for client teams and runs his own five-site content operation on Claude, so what he writes here is tested in real work first.

 ·  Connect on LinkedIn →

Not Sure Where to Start?

Read It

Start with the free guides on this site, then the Learn Claude guides at Strategized.ai when you want the longer walkthroughs.

Learn Claude guides

Install It

The free Foundation Plugin teaches Claude the basics of your work in one download. No application, no card.

Get the free Foundation Plugin

Have It Set Up for You

For your business, Strategized.ai sets Claude up for the whole team. For yourself, CoworkConsultant.com builds your own setup or a custom plugin.

How we help businesses
Just you? See how we help

Two Ways to Get Claude Working for You

Do it yourself with the free guides and plugin, or have it set up for you. Either way you end up in the same place: a Claude workspace configured around the way you work.

Do It Yourself

The free Foundation Plugin, the guides on this site, and the Learn Claude library at Strategized.ai. No application, no card.

Get the free Foundation Plugin

Have It Set Up for You

For your business: Strategized.ai sets Claude up for the whole team, configured for every role, trained on their own work and handed over.

How we help businesses

For yourself: CoworkConsultant.com builds your own Claude setup, or a custom plugin around the job you repeat most.

How we help individuals
The Foundation Plugin: free for business owners and professionals Get it free → Instant download. No account.