HomeGuides › Writing a good CLAUDE.md

Guides · General → practical

Writing a good CLAUDE.md (the most valuable file you'll ever create)


The file that tells Claude how to work with you — tone, conventions, pitfalls to avoid. It's the highest-ROI thing you can set up. How to write it, and how to make it grow.

By Hugo Lahutte· ·~5 min read
  • 1 30-second take
  • 2 The body, visual
  • 3 Go deeper

1. Why it's the best investment

Without a CLAUDE.md, you re-brief Claude at the start of every conversation: "answer in English, get to the point, here's my job…". With one, it's set once and for all. The return on the time invested is immediate — it's the first thing I recommend to anyone just getting started.

2. What goes in it

Four families of things:

  • Tone & format: formal or casual, prose or lists, short or detailed.
  • Your conventions: your industry, your tools, your in-house vocabulary.
  • What you do NOT want: empty jargon, unsolicited 14-step plans, flattery…
  • Your pitfalls: mistakes you've already encountered, turned into rules. This is the most valuable part.
The typical structure — from most general (tone) to most valuable (pitfalls turned into rules).

3. Best practices

  • Short beats exhaustive. A file nobody reads does nothing.
  • Concrete beats abstract. "Give ready-to-paste commands" beats "be helpful".
  • One rule = one real mistake. Don't add speculative rules "just in case".
  • Split by context. Rather than one monolithic block, a shared base + extensions (e.g. one for strategy, one for technical).

4. How to make it grow

When Claude makes the same mistake repeatedly, don't just grumble — add the rule. The file improves with use. That's exactly the Compound Engineering principle applied to your context.

The time saving: stop re-explaining, and quality goes up from the first message.

Let's talk

Writing your first CLAUDE.md?

It's an hour well spent. If you'd like a second opinion on yours or want to compare structures, send me a message — I document everything in public.