Skip to content

Chapter 10 of 12 · Claude Code

CLAUDE.md: Your project's memory

By Founder of DailyVYBZ

Beginner7 minFor: freelancers and founders, content creators, developers and tinkerers

CLAUDE.md is a simple text file with rules for your project. Claude reads it at the start of every session. That way, you don't have to keep repeating commands, style and quirks.

How to do it

  1. Start Claude Code in your project folder.
  2. Type “/init”. Claude examines the project and creates a first CLAUDE.md.
  3. Add what Claude can't figure out on its own: rules, pitfalls, important commands.
  4. Keep the file short. You can open it again later with “/memory”.

To copy

Example of a CLAUDE.md
# Project
- Website as a single file: index.html

# Rules
- Texts in English, short sentences
- Make a backup before every change
- After changes, check on phone and desktop

Exercise in 5 minutes

Run /init in a project. Read the new CLAUDE.md and cut everything Claude would know even without the file.

Good to know

TipFor personal notes that don't belong in the team project, there's CLAUDE.local.md. Rules for all projects go in “~/.claude/CLAUDE.md”, which on Windows is usually “%USERPROFILE%\.claude\CLAUDE.md”.

Common mistakeA huge file. If CLAUDE.md is too long, important rules get lost.

CautionCLAUDE.md contains instructions, not technically enforced safeguards. Back up important files and use permissions if you want to reliably limit actions.

Source

Independent guide by DailyVYBZ, not an Anthropic offering.

Share chapterWhatsAppLinkedInX

Stay up to date

Tips on AI in everyday life, new guides and news about our tools by email.

  • Free, unsubscribe anytime
  • All guides available without signing up
  • The community is in preparation
Sign up on the home page