In the first few days of my first app, Claude quietly cut one of my four bottom tabs, renamed a screen, and folded a whole screen into a small popup. I only caught it because I had drawn every screen first. The lesson I took from it: Claude can't treat something as off limits if nobody ever said so, and a rule you only say out loud once is easy to lose.
That is the problem a CLAUDE.md file is meant to solve. I'm going to be careful here: my own builds are the part I can vouch for, and the rest of this post is my opinion and a template, not a report of what I did.
What a CLAUDE.md file is
It's a plain text note, written in everyday English, that lives in your app's project folder. Claude Code, the version of Claude that works directly on the files of your app, can read a file like this; Anthropic's memory docs explain how it works. Think of it as a sticky note on the door: "Before you start, here's what this app is and how I like to work."
You don't need to know any code to write one. If you can write a grocery list, you can write this. If you've never opened a project folder, my advice is to ask Claude to create the file for you and then edit the words yourself, because you're the only one who knows what the app is for.
Why a non-coder wants one
I think of it as the opposite of "I told you once, three chats ago." Anything you'd hate to explain a fourth time belongs on the note. For a beginner, I'd say that is usually three things:
- What the app is, and who it's for. One or two sentences.
- What must not change without asking. Your screens, your tab names, anything you drew on purpose.
- How you want to work. For me that is simple: Claude lists what changed, I approve, and only then does a build start.
That last one comes straight from my own build. I never let a build start on its own. Claude lists what changed, I say yes, then it builds. Writing that rule down once is easier than hoping I remember to say it every session.
A copy-paste CLAUDE.md starter
Fill in the brackets with your own words. Keep it short. A note nobody can finish reading doesn't help anyone, human or AI.
# About this app It is [one sentence: what the app does] for [who uses it]. The one problem it solves: [the single problem, in plain words]. # My design is the plan - The screens and tab names in my mockup are on purpose. - Do not remove, rename, merge or shrink a screen without asking me first. - If something in the design can't be built as drawn, stop and tell me why. # How we work - Before you change anything, list what you plan to change in plain English. - Wait for me to say yes. - Never start a build on your own. List what changed, then wait for approval. - After a big change, tell me what to test and where a mistake could hurt someone. # Things I'm worried about - [Anything where a mistake would matter, like money, medicine, or private data.] - [Anything that must work the same on every screen.] # When I say "checkpoint" Save the app as a named good version so I can go back to it later.
Why each part is there
The design section
This is the lesson from my drift story. Claude's changes each looked reasonable alone. My guess is that this is how an AI keeps moving through a big job: small judgment calls, not always announced. Writing "ask before changing a screen" turns a silent change into a question I can answer.
The "how we work" section
I save a named checkpoint every time the app is in a good state, and going back takes one message. That habit makes it easier to let Claude try things. Putting the word "checkpoint" in the note means you can say it in one word instead of explaining it again.
The "worried about" section
My first app tracked pet medicine, and the mockup had two checks against a double dose. Claude built only one of them. I caught it by asking where a mistake could hurt. A note that says "a mistake here matters" is a nudge in the right direction, though I wouldn't trust any note to replace checking yourself.
If you use ChatGPT, Codex or Gemini
I used Claude, so I can't tell you the exact file name or setting for the others. Check each tool's own help pages. What I can say as an idea is that the habit transfers: write your standing rules once, in plain text, and paste them at the start of any new chat. Even if a tool has no special file for it, a saved note you paste in works fine.
How to keep the note useful
- Keep it under a page. If it grows, cut the least important lines.
- Add a line when something annoys you twice. If you explain the same thing a second time, it belongs in the note.
- Reread it once a week. Rules that no longer fit your app are worse than no rules.
- Still check the result. The note lowers surprises. It doesn't remove them.
If you're starting from zero and want the whole path, from idea to a real app, the first lessons are free at the course page. If not, just take the starter above and make it yours.
I still think the best part of this is how small it is. A few lines of plain English, written on a calm day, so the tired version of you doesn't have to remember anything.