← Back to Tutorials Business Strategy

Give Claude a Memory

Claude Code forgets you every time you close it. Learn the handful of markdown files that give it a real memory, so it writes like you, designs like you, and remembers your business.

Business Strategy⏱ 15 min read● Intermediate

Memory Is Just a Set of Files

Here's the thing nobody warns you about when you start using Claude Code. It's brilliant, and it has no memory. Every time you open a new session, it starts from a blank slate. It doesn't remember your business, your writing style, the brand colors you picked last week, or the correction you gave it ten minutes ago in a chat you already closed.

So you re-explain yourself. Over and over. You paste the same context, repeat the same rules, and fix the same mistakes, like you're onboarding a brand new hire every single morning. It gets old fast. And it's the real reason most people's output from Claude feels generic. Not because the model can't do the work, but because it doesn't know a single thing about you.

The fix is simpler than you'd expect. Claude's memory is just a set of plain markdown files, and each one has a specific job. One file holds your story. One holds your writing rules. One holds your brand look. One holds everything about the people you serve. Claude reads them and shows up already knowing you. This lesson is a tour of those file types, what each one is for, what goes inside it, and the exact prompt that builds it. Every file is plain text you can read and edit, and nothing here is permanent.

One quick distinction before the tour. Claude Code actually has two kinds of memory. There are the files you write, which is what this lesson is about and what you fully control, and there's auto memory, where Claude quietly saves notes to itself based on your corrections. Both load at the start of a session. The files you author are where the biggest wins are, so that's where we'll spend our time.

Here are the core files and what each one does:

FileWhat it holdsWhen Claude uses it
CLAUDE.mdYour never-forget rules and a map to every other fileEvery session, always loaded
soul.mdYour origin story, beliefs, and whyWhen it writes as you or makes a judgment call
voice.mdYour tone, phrases, and the words you never useWhen it writes anything in your voice
design.mdYour colors, fonts, and visual rulesWhen it designs anything for you
audience.mdYour people's pains, fears, and exact wordsWhen it writes copy for your audience
business.mdWhat you sell, to whom, and your goalsWhen you ask anything strategic

Those are the ones almost everyone needs. Further down we'll cover the more specialized file types too, the ones for projects, knowledge bases, and automations. But the pattern is always the same: one job per file.

Why split it up like this instead of one big file? Three reasons. Files you aren't using stay out of Claude's way, so it isn't distracted by your brand colors while it's drafting a sales email. Each file stays short enough that you'll actually keep it current. And when something sounds off, you know exactly which file to open and fix. One giant document gives you none of that.

CLAUDE.md: The File That's Always On

Start here, because this is the one file that's different from all the others. A CLAUDE.md file is loaded into context at the start of every single session, in full. Every other file is read only when Claude needs it. That makes CLAUDE.md your control panel, and it also makes it the one file you can ruin by overloading.

You can keep a personal CLAUDE.md at ~/.claude/CLAUDE.md that applies to everything you do, or a project one at ./CLAUDE.md for a single folder. Either way, one rule governs it: keep it lean. Because it loads every session, a bloated file costs more tokens and, counterintuitively, gets followed less reliably. Anthropic's own guidance is to keep each CLAUDE.md under roughly 200 lines. So it should not hold everything. It should hold a few never-forget rules, and a map that points to the other files.

There's a real cost angle here too. Everything in CLAUDE.md gets paid for on every message of every session, whether it's relevant or not. Everything in a detail file gets paid for only when Claude actually opens it. Routing from a lean hub out to detail files is how you keep deep context available without carrying its weight all day long.

Memory system diagram: a central CLAUDE.md hub linked to soul.md, voice.md, design.md, audience.md, and business.md.

Here's what a lean CLAUDE.md looks like once it's set up as a map instead of a dump:

Example · a lean CLAUDE.md
# CLAUDE.md ## Who I am Solo founder of [your business]. For the full story, read soul.md. ## Never forget - Do not make changes until you have 95% confidence. Ask one question at a time until you get there. - Be concise. Answer first, add detail only if needed. ## Where to look - For who I am: soul.md - For how I write: voice.md - For how things should look: design.md - For who I serve: audience.md - For business context: business.md

You don't have to write it by hand. This first prompt builds a lean one from scratch, asking you questions before it writes:

Prompt · Build a lean CLAUDE.md
Help me create a CLAUDE.md file for this project. Ask me clarifying questions first, then keep the file lean — under 150-200 lines. Structure it as the WHAT (tech stack, project structure, build commands), the WHY (purpose of each part), and the HOW (how I want you to work). It's read on every single message, so every line must earn its place — no history, no filler.

Already have a CLAUDE.md that's grown into a wall of text? This one turns it into a clean map that routes to other files:

Prompt · Turn CLAUDE.md into an index, not a dump
Restructure my CLAUDE.md so it routes to other files instead of containing everything. It should only hold the never-forget rules plus a map: 'For who I am, read me.md. For business details, read business.md. For project status, read current-priorities.md.' Move all the detailed content into those separate files so you only load detail when it's relevant.

Three rules worth putting inside it

Since CLAUDE.md loads every session, it's the right home for the handful of behaviors you want Claude to follow always. These three are the ones experienced builders reach for most. The first stops Claude from charging ahead before it understands the job:

Prompt · The 95% confidence rule
Add this rule to my CLAUDE.md word for word: 'Do not make any changes until you have 95% confidence in what you need to build. Ask follow-up questions one at a time until you reach that confidence level.' Then read it back to me so I can confirm it's in there.

The second keeps answers tight. And there's real research behind it: a 2025 body of work on efficient reasoning found that long, verbose model output often does not improve correctness, and under tight limits can even hurt it. Telling the model to be brief and answer first is a sound default.

Prompt · The conciseness rule
Add a conciseness instruction to my CLAUDE.md: 'Be concise. No filler, no preamble, no flattery — straight to the point, fewer words. When I ask a question, answer it directly first, then add detail only if needed.' Confirm it's in there.

The third gives the file a way to learn from its own mistakes without slowly ballooning in size:

Prompt · A self-evolving learning block
Add an 'Applied Learning' section to the bottom of my CLAUDE.md with this instruction: 'When something fails repeatedly, when I have to re-explain something, or when a workaround is found for a tool limitation, add a one-line bullet here. Keep each bullet under 15 words, no explanations. Only add things that will save time in future sessions.'

A common myth: people call CLAUDE.md "your system prompt." Close, but not quite. It's loaded into context at the start of the session, delivered right after the system prompt, and it guides behavior rather than enforcing it. Two commands help you manage it: /init generates a starter file, and /memory lists every memory file currently loaded so you can open and edit any of them.

The Identity Files: Sound Like You

If CLAUDE.md is the control panel, these four files are the soul of the system. They're the difference between output that could have come from anyone and output that's unmistakably yours. Each one captures a different layer of your identity, and each is built by pasting a single prompt and answering a few honest questions. Claude does the writing. You just tell the truth.

For a founder or creator, these are the files that earn their keep first. Anyone can generate content now. The thing that makes it yours, your story, your phrasing, your taste, is exactly what these four files encode. Get them right, and everything downstream sounds like you wrote it on your best day.

soul.md

Who you are. Your story, your beliefs, your why. The human behind the work.

design.md

How you look. Your exact colors, fonts, and visual rules, so nothing comes out generic.

voice.md

How you talk. Your tone, your phrases, and the words you never use.

audience.md

Who you serve. Your people's real pains, fears, dreams, and exact language.

soul.md: Who You Are

This isn't your resume. It's you. Your origin, the moment things changed, the opinions you actually hold. Claude reads it whenever it writes in your voice, tells your story, or makes a judgment call that should reflect your values. You don't write it from a blank page. Claude interviews you, one question at a time, then writes the file from your answers. Paste this into the Claude Code panel and answer the seven questions honestly. Short answers are fine.

Claude
Building: soul.md
I want to build my soul.md file, the document that tells you who I am at a human level. Not my offer. Not my audience. Me. Interview me, one question at a time.
Claude
Love it. Let's put the real you into soul.md. I'll ask you 7 quick questions, one at a time, then write the file from your answers, in your own words.
Question 1 of 7
How did you end up doing what you do?Short version, 3 to 4 sentences, from your before-state to now.
Reply to Claude...
Prompt · soul.md
I want to build my soul.md file — the document that tells you who I am at a human level. Not my offer. Not my audience. Me. Interview me. Ask one question at a time. Do not ask the next question until I've answered the current one. Do not summarize or restate my answers — just move to the next question. Questions, in order: 1. How did you end up doing what you do? Short version — 3-4 sentences, before-state to now. 2. What did you walk away from to get here — job, career path, lifestyle? What was the moment you decided to leave it? 3. What's the opinion you hold about your industry that most people in it would push back on? 4. Who do you most want to help, and why that specific person? 5. What are you still figuring out? (Not a weakness. Something real and honest.) 6. What would you tell someone who's where you were 3 years ago? 7. Finish this out loud: "I built this because I was sick of ___." Once I've answered all seven, write my soul.md file. Use my answers directly — don't paraphrase into polished language. Keep my voice. Structure it as: origin story, beliefs, philosophy, defining moments. Then show me the file.

design.md: How You Look

Without this file, every visual Claude makes comes out generic. With it, Claude checks your colors, fonts, and rules first. The fastest way to build it is to show Claude a look you love and let it reverse-engineer the system. Find a brand, site, or post whose visual style you want (yours, or one you admire), screenshot it, drag the screenshot into the Claude Code panel, and paste this one line. You get back a design system as an HTML preview and a design.md file. No brand yet? Screenshot any site whose style you'd be proud to copy. You can refine it later.

Prompt · design.md
Turn this into a design system in an html file and a design md file.

voice.md: How You Talk

This is where Claude learns how you actually talk. Not a generic brand-voice doc, but your specific rules: the words you always reach for, the ones you never use, how your DMs differ from your posts. This prompt is smart. It first mines how you've written in the current chat, and if you paste in a real sample, it pulls the rules straight from your own words.

Prompt · voice.md
Create my voice.md file. Follow these steps in order. Step 1 — Mine what you already know. Look at everything I've written in this conversation. Pull out patterns: sentence length, vocabulary, what I avoid, how I phrase things. Use this as your starting point. Step 2 — Check for writing samples. If I've pasted any samples (posts, captions, emails, DMs), treat those as your primary source — extract the rules directly from the text, not from assumptions. Step 3 — Fill gaps with two questions only if needed: 1. What words or phrases do you NEVER want written in your name? 2. What does a piece of writing that sounds nothing like you look like? Then generate my voice.md with: tone in 3-5 adjectives (with what each means in practice), word rules (always/never lists), sentence structure, platform-specific rules, and 2 example lines written in my voice as a reference anchor. Save it, then show me the file.

Want the strongest possible version? Feed it a real batch of your own writing. This is the same file type, built from evidence instead of memory, and it produces the most convincing results:

Prompt · voice.md from your real posts
I'm pasting in a batch of content I've personally written: [PASTE 15-30 OF YOUR REAL POSTS, EMAILS, OR CAPTIONS]. Study them and create a voice.md file written as direct INSTRUCTIONS for emulating my style — vocabulary, sentence length, punctuation habits, rhetorical patterns, what I never do. Include good and bad examples. Then add a rule to CLAUDE.md: 'When writing anything in my voice, read voice.md first.'

audience.md: Who You Serve

This is everything Claude needs to write copy that actually connects. Your audience's daily reality, what they're afraid of, the exact phrases they use, and your offer. The prompt interviews you first, then researches Reddit and the web to pull real quotes from real people in your space, so the language is theirs, not invented. It works best when Claude has web research tools available, but it will still build a strong first draft from your answers alone.

Prompt · audience.md
Build my audience.md file. Follow this process in order. Step 1 — Interview me. Ask these one at a time, waiting for my answer: 1. Who are you trying to reach? Describe them in plain terms — what they do, where they are in life, what they're trying to figure out. 2. What's the main problem you help them solve? 3. What do you sell or offer, and what does it cost? 4. Where does your audience hang out online? (Reddit, Instagram, YouTube, LinkedIn, forums?) Step 2 — Research their actual language. Search Reddit and the web for threads where people like my audience talk about this problem. Pull exact quotes from the most-engaged posts and from reviews of similar products. Extract: pain points, fears, dreams/goals, and the exact phrases that repeat. Step 3 — Generate the file. Combine my answers with the real language you found. Output a complete audience.md with real quotes embedded — not invented personas. Save it, then show me the file.

Pro tip: build these in the order above, and do the interviews in a chat where you've already been writing naturally. voice.md especially gets sharper when Claude has a page of your real words to study rather than a cold start.

The Context Files: What Claude Needs to Know

The identity files handle how Claude sounds. These next file types handle what Claude knows. They hold the facts about your business and your world, so Claude stops guessing and starts answering from real context.

Think of these as the briefing you'd give a sharp new assistant on day one. The more of your real world Claude can see, the less it has to invent, and the less time you spend correcting it later.

business.md: Your Company in One File

Without context on the problem you solve, Claude can't help you solve it well. A business.md file fixes that, and the last line of the prompt wires it into CLAUDE.md so Claude reads it automatically whenever you ask something strategic.

Prompt · business.md
Help me create a business.md file covering: what my business is, who I serve, how it makes money, my target customer, the 3 biggest problems I solve, my revenue, my channels, and my goals. Ask me one question at a time to fill it in. Then add a rule to CLAUDE.md: 'When I ask anything strategic or growth-related, read business.md first for context.'

A markdown wiki: Your second brain

When your notes and sources grow past a handful of files, this file type turns them into a searchable knowledge base with no special database, just organized markdown. It mirrors the "LLM wiki" pattern that AI researcher Andrej Karpathy shared publicly in April 2026: a raw folder for sources, a wiki folder of summaries the model maintains, and a master index. For a personal library up to roughly 100 substantial documents, that plain-markdown approach can give the model better context than fancier retrieval systems, and every answer traces back to a file you can read and edit.

Markdown knowledge base structure: a raw folder for sources, a wiki folder of maintained articles, and a master index.md file.
Prompt · Markdown wiki (second brain)
I want a personal knowledge base with no vector database — just markdown files you organize. Set up a vault with a 'raw' folder for sources I dump in, a 'wiki' folder of interlinked markdown articles you maintain, and a master index.md. Create a CLAUDE.md that describes this structure. When I drop a document in 'raw' and say 'ingest that', file it into the wiki and update related pages.

docs-index.md: A map for big documents

Working with a giant docs set, an API reference, or a long PDF? Instead of making Claude re-scan the whole thing every time, this file type builds a small index that points to exactly where each answer lives.

Prompt · docs-index.md
I'm going to work with [BIG DOCS SET — e.g. the Claude Code docs, an API reference, a long PDF]. Read it all at once, then build me a lean docs-index.md: a small file that lists each topic and the exact file path or URL section where the answer lives. From now on, when I ask about this, check the index first and jump straight to the right section instead of re-reading everything.

The Project & State Files: Track Work Over Time

This last group of file types exists to carry work forward. They remember where a project stands, what you decided and why, and where you left off, so no session ever starts from zero.

These matter most once you're using Claude Code for ongoing projects rather than one-off chats. Even if you skip them today, it's worth knowing they exist for the day a project grows too big to live in a single conversation.

The four-file state system

Rather than let one CLAUDE.md try to do everything for a real project, this pattern splits the job across four purpose-built files, so Claude always knows the goal, the spec, the plan, and the live progress.

Four-file state system: project.md, requirements.md, roadmap.md, and state.md, read by Claude at the start of every session.
Prompt · Four-file state system
Set up a four-file state system for this project so you always know where things stand, instead of one CLAUDE.md doing everything. Create: project.md (the North Star — what we're building and why), requirements.md (exactly what to build), roadmap.md (phases, what's done, what's next), and state.md (current progress and where we left off). At the start of every session read all four; at the end of a work block, update state.md and roadmap.md.

decisions/log.md: A running decision log

Every meaningful decision you make is something you'd otherwise re-explain later. This file type saves decisions, not conversations, so the reasoning is always one lookup away.

Prompt · Decision log
From now on, whenever we make a meaningful architectural or strategic decision, log it to decisions/log.md with the date, the decision, the reasoning, and the context. Save decisions, not conversations. Create that file now and add the decisions we've already made today.

handoff.md: Pass the baton between sessions

When a chat gets long and you want to start fresh without losing your place, this file type packages up the current state so a brand new session can pick up exactly where you left off.

Prompt · Session handoff
Summarize this conversation succinctly into a handoff.md file: where we started, the decisions we locked in, what shipped, the key files for next session, the running state, what's left, and any open questions — written so a new agent could pick up exactly where you left off. Then I'll /clear and start fresh from that file.

last-run.md: Memory for automations

If you run a task on a schedule, each run normally starts blind. This file type gives it a single, self-overwriting memory trail, so each run learns from the last without piling up an endless log.

Prompt · Automation memory trail
This task will run on a schedule, and each run starts with a blank slate. Give it a memory trail: have it read last-run.md at the start, do its job, then overwrite last-run.md at the end with the date, what it did, the current state, and any known issues for the next run. Use a single overwritten file, not an append log, so it never bloats. Create last-run.md now.

Copy these prompts word for word. The wording is deliberate. The line lengths, the caps, the specific numbers, they all do a job. Resist the urge to "improve" a prompt until you've seen how it performs as written.

Keeping Your Files Healthy

A set of memory files isn't a one-time setup. It's a living thing, and it rots if you ignore it. Two habits keep the whole system sharp, and both are just prompts you run now and then.

A simple cadence works well. Run the consolidation pass every couple of weeks, or whenever a file starts to feel long, and capture corrections the moment they happen, while you still remember what was wrong. You don't need an elaborate system for this. You just need to not let it slide for months.

The consolidation pass itself merges duplicate files, turns vague dates like "next Friday" into real ones, and synthesizes recent sessions into durable notes, tightening your index back down so it stays a map and not a dump.

Prompt · Consolidate your memory files
Do a reflective consolidation pass over my memory files: merge any duplicate files, resolve relative dates like 'next Friday' into absolute dates, and synthesize recent sessions into durable, well-organized memories. Keep the memory index under 200 lines — it's an index, not a dump. Link to memory files with one-line descriptions; do not copy full content into it.

And any time Claude gets something wrong and you correct it, capture that correction on the spot so it becomes a permanent fix instead of a mistake you keep re-making.

Prompt · Turn a correction into permanent memory
That second version was much better than your first attempt. Now update my CLAUDE.md (or the relevant skill) so this preference is captured permanently — here's what I told you to fix, here's what I liked, here's what I didn't like. Reflect all of it so you never make that mistake again.

One more file type to know about: Claude Code also keeps its own auto memory in a MEMORY.md index it writes for itself as it learns your preferences. Run /memory anytime to see every file that's loaded, including that one, and edit anything that looks off.

Where to Start

Don't try to build every file today. That's the fastest way to build nothing. The system compounds, so start small and let it grow with you.

This week, create three files. Build your CLAUDE.md hub with the lean prompt. Run the soul.md interview so Claude knows who you are. Then build voice.md from a batch of your real writing, because voice is the file you'll feel in every single thing Claude writes for you. That's it. Three files, maybe thirty minutes.

Add design.md, audience.md, business.md, and the rest as the need comes up. Building a landing page and tired of generic layouts? That's your cue for design.md. Writing copy that keeps missing the mark? Time for audience.md. Let the friction tell you which file to build next.

Open Claude Code, paste the lean hub prompt, and answer its questions. In under an hour, you'll have a version of Claude that finally remembers you. Everything after that is just adding one more file when you need it. Six months in, you won't be re-explaining yourself anymore. You'll open a session and Claude will already know your story, your voice, your customers, and your rules, and you'll wonder how you ever worked the other way.