Before I started using Claude (AI), I did a little research online.
Doing your homework first really matters, doesn’t it? When I started studying English, the first thing I did was look up how to study, too.
That’s how I learned that if you write rules in an MD file, Claude reads it every time.
In other words, by writing rules, you can shape the AI into your own.
Once I knew that, I made one at the same time as I started using Claude.
But back then, I knew nothing at all about how to use AI or any of the know-how.
So I learned as I went, looking things up along the way, and built it up little by little.
This post is a record of the places where I got stuck while making that “rules file” (CLAUDE.md).
It’s a long story, so I’m splitting it into three parts. This is Part 1: how to write it and how to split it.
I wrote about connecting Claude Code (a tool that runs Claude on your computer and lets it read and write files) with Obsidian (a note-taking app) and WordPress in an earlier post (in Japanese for now).
What you’ll find in this post
• What CLAUDE.md is (only what I checked in the official docs)
• The four walls I hit as a non-engineer writing it
• How I cut my CLAUDE.md from 407 lines to 233
• How to split “what Claude reads every time” from “what it reads only when needed”

- 1 What is CLAUDE.md, anyway?
- 2 The first thing I ran into: there were two CLAUDE.md files
- 3 “Just put a pointer there and you’ll save tokens” was a misunderstanding
- 4 I wanted to put everything in Obsidian, and got stuck on where to keep the manuals
- 5 Before I knew it, CLAUDE.md had grown to 407 lines
- 6 I split things into “read every time” and “read only when needed”
- 7 Did it actually save tokens? I honestly can’t tell
- 8 Summary: just take the first step
What is CLAUDE.md, anyway?
First, a quick note on what CLAUDE.md is.
Here’s what Claude Code’s official page (How Claude remembers your project) says.
Every time you start a conversation, Claude Code starts from a blank slate.
In other words, it doesn’t remember what you decided in earlier conversations.
That’s where CLAUDE.md comes in: you write your own “house rules” in it. It’s just a note in plain text (a text file in a format called Markdown), and it seems Claude reads it at the start of every conversation.
Think of it like a handover note you give a new colleague every morning.
There are a few places you can put it. Roughly:
~/.claude/CLAUDE.md= your personal one (in a folder called “.claude” inside your home folder). Read for every taskCLAUDE.mdinside the folder you’re working in = read only when you work in that folder- A CLAUDE.md in a deeper folder = read when Claude touches files inside that folder
Two more things in the official docs caught my eye:
- CLAUDE.md isn’t a setting that forces Claude to obey. It’s treated as “background information” given to Claude (so it may not always follow what you write)
- As a guideline, keep each file under 200 lines. Longer files mean more to read, and it seems they’re followed less reliably
Keep this in mind. It comes up again later.
The first thing I ran into: there were two CLAUDE.md files
In March 2026, when I started using Claude Code, I spent two days talking through the initial setup with Claude.
At that point, I had also made a CLAUDE.md right inside my Obsidian vault (the folder that holds my notes).
Then I made ~/.claude/CLAUDE.md as well, so I ended up with two CLAUDE.md files.
“Which one is the real one?” “Are both read?”
I had no idea what was going on.
In the end, I made ~/.claude/CLAUDE.md my one and only base, and deleted the one in the vault.
According to the official page, the CLAUDE.md files read first seem to be the ones in “the folder where you launched Claude Code and the folders above it.” So what gets read depends on where you start it.
“Just put a pointer there and you’ll save tokens” was a misunderstanding
Next, I thought about saving tokens.
A token is roughly the unit Claude uses when it processes text. The more it reads, the more tokens it uses. I wrote more about this in another post (in Japanese for now).
If you use too many tokens, your session usage keeps climbing and you hit the time limit right away.
Around then, during our setup talks, Claude suggested this:
“If you write ‘read the Obsidian rules’ in CLAUDE.md, everything will be in one place.”
Keep CLAUDE.md short, and only point to the detailed rules in Obsidian. For a while, I thought that was fine.
But if you think about it, something’s off.
- CLAUDE.md (short)
- + the Obsidian rules (long)
If it reads them every time, it reads both.
So I asked:
“If CLAUDE.md and the Obsidian rules are both read every time anyway, isn’t the total number of tokens the same?”
I also pushed back: “That’s not what you said before.”
The total amount is the same as putting everything in one file.
The official page also says that if you write a file path with “@” in CLAUDE.md, that file is loaded at the start together with CLAUDE.md. So adding a pointer doesn’t reduce how much it reads.
That helped me sort things out, and I understood.
“Just put a pointer there and you’ll save tokens” was an illusion. Real savings come from narrowing down what gets read every time.
I wanted to put everything in Obsidian, and got stuck on where to keep the manuals
There was one more temptation.
I wanted to put all my settings files and knowledge in Obsidian. That way I could check them on my phone when I’m out. I also thought it might help when moving to a new PC, or even let me work from another PC. I haven’t tried it, but I had this idea: someday I’ll be able to use Claude Code from my phone, and if I share my logs and rules through Obsidian over WebDAV on my Synology at home, I might not need to use a remote Claude even when I’m at home.
But if you write “read this part of Obsidian every time” in CLAUDE.md, it ends up reading a lot every time anyway.
Same pattern as the misunderstanding above.
So I decided to clearly separate “what it reads every time” from “what it reads only for a task.”
Next, I got stuck on where to put those manuals.
At first, I tried to put them all together in a folder called Claude/instructions/.
But partway through, I thought:
“Wouldn’t it be better to put a manual inside each folder? Then they’d be split by folder, and Claude would read less.”
For example (my real folder and file names are in Japanese):
English/_English manual.md= read only when working on EnglishProjects/Blog/_Blog manual.md= read only when working on the blog
I also found a small tip: if you put “_” (an underscore) at the start of a name, it shows up at the top of Obsidian’s file list.

Before I knew it, CLAUDE.md had grown to 407 lines
But after using it for a while and getting used to it, I wanted to do more and more, and the line count of CLAUDE.md kept growing.
Feeling it had gotten bloated, I counted the lines in May to slim it down: 407 lines.
I had decided to narrow down what gets read every time, yet I kept adding rules directly whenever they came up.
Compared with the official guideline I mentioned (under 200 lines), that’s pretty long, right?
So I cleaned it up:
- CLAUDE.md is only a routing table of “which rule lives where”
- The detailed rules go into each folder’s manual
The result: 233 lines.
I also added a rule to CLAUDE.md: “If it goes over 300 lines, suggest cleaning it up.”
Actually, early on I’d heard that “CLAUDE.md is only read up to 300 lines.”
By the time I heard that, I was already well past 300 lines, so I wondered whether everything beyond that point hadn’t been read at all.
But the quality of the answers didn’t change that much. Or rather, I couldn’t notice such a subtle difference. So even after cutting it to 233 lines, I didn’t really feel a change.
Oh, by the way, according to the current official page, the file that stops being read partway is the notes Claude writes itself (MEMORY.md): it seems only the first 200 lines or 25KB are loaded. CLAUDE.md is read in full, but the longer it is, the less reliably it’s followed.
What I kept doing instead was reviewing things now and then.
“Please review my rules and settings once, gather information, and check whether they’re optimal.”
I asked Claude this from time to time, and tidied things up as a kind of stocktake.
It’s longer than the official guideline, but I now use 300 lines as my own limit, and I clean up whenever it gets close.
I’ll continue this “over 300 lines” story in Part 2: moving command procedures into “skills” (step-by-step guides you call with a set phrase) to keep CLAUDE.md short.
I split things into “read every time” and “read only when needed”
After all that trial and error, this is the split I landed on.
Read every time (CLAUDE.md)
- Talk to me in Japanese
- Where my vault is
- Rules for which folder things go in
- Entry points for commands like “Log, please”
Read only when needed (each folder’s _manual.md)
- When writing for the blog →
_Blog manual.md - When correcting my English →
_English manual.md - When working with WordPress →
WordPress operations.md
One more thing: MEMORY.md (the index of notes Claude writes up itself) is kept as a table of contents under 200 lines, with the details in separate files.
The idea is really simple.
Split things by asking, “Is this needed every time? Or only for that task?”
You don’t have to write everything from the start.
When you run into a problem, add one thing at a time, and split things up when they grow.
Did it actually save tokens? I honestly can’t tell
Reading this far, you’d probably think, “So overall, it uses fewer tokens now?”
But to be blunt, I don’t know whether it saved anything. When I started, Claude’s usage limits changed often.
So I couldn’t tell from experience whether usage went down.
Even now, I don’t feel it enough to say “it’s clearly saving tokens.”
But I no longer have to explain things every time. That much I can say for sure.
When I used to talk with Gemini or ChatGPT, they’d forget what I’d told them, or I’d have to explain everything from the beginning again.
With CLAUDE.md, once you write a rule, Claude reads it every time.
I can polish it each time, and when a new rule comes up, I can add it together with Claude. It’s made things so much easier.
Right now, I mainly use it for studying English, building apps and writing this blog.
The more I use it, the smarter it gets, or rather, the rules keep getting updated, so it really has started working the way I want.
Even if I can’t tell whether it saved tokens, the habit of splitting things with how much gets read in mind has stayed with me.

Summary: just take the first step
At first, even using AI felt a bit intimidating.
But we live in an information age. If you search, you’ll find plenty of information.
So just get moving and try it. Taking that first step is what matters, I think.
At first, decide what Claude is allowed to touch on your PC.
When I started, I blocked access to every folder except the ones I wanted AI to touch, like my Obsidian vault and the folder with Claude’s settings.
My first rules were very strict.
But my MacBook Air doesn’t hold confidential information that would cause trouble for others if it leaked, and I don’t keep that much data on it.
So I learned by doing, and gradually widened the permissions (what Claude is allowed to touch).
Oh, of course, the places where passwords and keys are stored are still off-limits to Claude.
Being able to set fine-grained rules like this in plain words (natural language) is what’s great about CLAUDE.md.
If you search for “CLAUDE.md rules” on X, note, YouTube or blogs, you’ll find lots of wisdom from people who went before you.
I read those at first, studied on my own, and set things up.
I looked at all kinds of rules people had shared, and built my own while using them. That way, you gain experience and learn while you’re actually using it, one step at a time. In the end, if you think of something, just try it. That’s the strongest approach.
In Part 2, I’ll write about the difference between CLAUDE.md and “skills”: how I moved commands out into skills and kept CLAUDE.md within 300 lines.
I’ll add a link here once it’s published.
☕ Enjoyed this post?
I'm a Japanese blogger who spent 8 years relearning English from scratch.
If this post helped you, a coffee would mean a lot — thank you for reading!




















Leave a Reply