Why this matters
Claude Code starts every session knowing nothing about you. It does not know you write in UK English, that invoices are filed by date or that nothing in the “Signed” folder is ever to be edited. So you tell it. Then you tell it again tomorrow. The day you forget, it names forty files the American way round.
The fix is a file called CLAUDE.md. Claude Code reads it at the start of every session, so your rules are in place before you type a word. It goes wrong in two ways. People write vague rules that cannot be followed, such as “be professional”. Or they write three hundred lines, which Claude Code follows less well than thirty. This course gets you a short file of rules you have tested.
Before you start
- Claude Code, installed and working. If it is not, do “Setting up Claude Code on your computer” first.
- One working folder. A real folder you want Claude Code to work in regularly: proposals, marketing, one client’s documents. Keep a backup copy of it somewhere else.
- Your business brief. From the free course “Getting started with AI”.
- A data rule. A CLAUDE.md file is read in full, every session. Never put passwords, logins, bank details or customer personal data in one. The same goes for the folder: if Claude Code does not need a file, the file should not be there.
The details match Anthropic’s documentation at the time of writing. If a screen differs, trust the screen.
My example is a letting agent with five staff. The owner uses Claude Code in a folder called lettings, with a folder inside it for each landlord and a folder for each property inside that.
Step 1: What a CLAUDE.md file is and when it is read
CLAUDE.md is a plain text file of instructions written in Markdown, which is ordinary text with simple marks such as # for a heading and - for a bullet point.
Three facts decide how you use it:
- It is read at the start of every session. Each session begins with a blank slate. CLAUDE.md is what fills it.
- It is read from the folder you start in. Claude Code loads the CLAUDE.md in the folder where you started it and in every folder above that one. Step 4 uses this.
- It is guidance, not a lock. Claude Code treats the file as context. It is not guaranteed to follow every rule every time. Anything that must never happen belongs in permissions, which Step 5 covers.
Start a session in your working folder and type /memory. It lists the instruction files Claude Code has loaded. On a new folder there may be none.
Then find out which rules you need.
I am going to write a CLAUDE.md file for this folder so you know how I work. Do not create or change any file yet.
Interview me. Ask one question at a time and wait for my answer. Cover:
1. What this folder is for and who the documents are written for
2. How files should be named and where different kinds of document belong
3. How I write: language, tone, length, words I use and words I avoid
4. Things you must always do before finishing a job here
5. Things you must never do here
6. Corrections I have had to give you or another AI assistant more than once
When I say "that is everything", give me my answers back as a plain list of rules, each one specific enough that I could check whether you followed it.
The letting agent’s interview produced 23 rules. Nine came from the last question. Those were the valuable ones: each was a mistake that had already happened.
What good looks like: a list of 15 to 25 rules in your own words, every one of which you could mark as followed or not followed on a finished piece of work.