What Is CLAUDE.md? — A Simple Explanation for First-Timers

Understand Claude Code's CLAUDE.md file without coding knowledge. Covers the 'a note for what you'd re-explain every time' analogy, why it's needed, what to include, the location hierarchy (enterprise/project/user), and a simple example — at a beginner's level.

Using Claude Code, you'll often run into a file named "CLAUDE.md." It sounds technical, but in one line it's "a note where you write down, once, the things you'd otherwise re-explain to Claude every time" — like an onboarding guide you hand a new teammate. This article explains what CLAUDE.md is and what to put in it, simply.

What is CLAUDE.md? (one-sentence definition)

CLAUDE.md is a markdown file holding "persistent guidance" about your project or how you work. "Markdown" just means a plain-text file written in ordinary words (no special coding needed). The key point: Claude Code reads this file automatically at the start of every session.

Why is it needed?

Claude Code starts fresh at the beginning of each conversation (session). It won't remember the project structure or rules you explained yesterday. So without CLAUDE.md, you'd repeat "here's how our project looks, build with this command, follow these rules" every time — like re-onboarding a new hire every single morning.

Write it once in CLAUDE.md, and since Claude reads it automatically at session start, you no longer repeat the same explanations.

CLAUDE.md가 푸는 문제 Claude Code는 새 세션마다 빈 상태로 시작해요 CLAUDE.md 없으면 · 매번 프로젝트 구조를 다시 설명 · 빌드 명령·규칙을 또 알려줌 · "우리는 이렇게 한다"를 반복 · 세션마다 같은 말 되풀이 매일 아침 신입을 재교육하는 느낌 CLAUDE.md 있으면 · 한 번 적어두면 · 매 세션 시작 시 Claude가 자동으로 읽음 · 매번 다시 설명할 필요 없음 신입에게 건네는 '업무 안내문'

What do you put in it?

The guiding rule is simple: write down "the things you keep re-explaining." The official docs recommend facts Claude should hold in every session:

CLAUDE.md에 적어두면 좋은 것 "매번 다시 설명하게 되는 것"을 적습니다 (50~200줄 권장) 빌드·실행 명령 npm run dev 등 자주 쓰는 명령 프로젝트 구조 폴더 구성, 어디에 뭐가 있는지 코딩 규칙·컨벤션 들여쓰기, 네이밍, 스타일 약속 '항상 ~하라' 규칙 항상 테스트 먼저, 한국어로 답변 등 피해야 할 것 건드리면 안 되는 파일·금지 동작
  • Build/run commands — frequently used commands (e.g., the dev server command).
  • Project structure — folder layout, where things live.
  • Coding rules/conventions — indentation, naming, style agreements.
  • "Always do X" rules — fixed rules like "always write tests first" or "answer in Korean."
  • What to avoid — files not to touch or actions to forbid.

Conversely, a multi-step procedure or content that only matters for one part of the codebase is better moved to a Skill or a path-scoped rule instead of CLAUDE.md. Since CLAUDE.md gets messy as it grows, keep it concise — around 50–200 lines.

Where does it go? (location hierarchy)

CLAUDE.md can live in several places, each with a different scope. Per the official docs, the main hierarchy is:

CLAUDE.md는 어디에 두나 (계층) 위쪽이 먼저 로드되고 더 넓은 범위에 적용 · 아래로 갈수록 개인·구체 조직 정책 (Enterprise) 회사 전체 규칙 · IT 관리 프로젝트 (./CLAUDE.md) 팀이 공유 · 소스에 포함 개인 (~/.claude/CLAUDE.md) 내 모든 프로젝트에 적용 · 나만 ※ 상위 파일이 먼저 로드되어 토대가 되고, 더 구체적인 파일이 그 위에 더해집니다. 강제 설정이 아니라 '맥락'으로 취급 — 구체적·간결할수록 더 잘 지켜집니다.
  • Enterprise policy — rules applied org-wide, managed by IT/admins.
  • Project (./CLAUDE.md) — guidance shared by that project's team, usually included in the source code.
  • User (~/.claude/CLAUDE.md) — personal preferences applied across all your projects; only you see it.

With multiple files, higher (broader) files load first as a foundation, and more specific files build on top. Important: CLAUDE.md is treated as "context," not enforced configuration — it's guidance Claude considers, not a hard block. So the more specific and concise you write it, the more consistently it's followed.

A simple example

If it's your first time, starting this short is plenty.

# Project guide

## Commands
- Dev server: npm run dev
- Tests: npm test

## Rules
- Always write tests first
- Comments and explanations in Korean
- Do not modify the src/legacy folder

You don't need to fill it perfectly from the start. Whenever you catch yourself thinking "I'm explaining this again," add a line then.

Summary

CLAUDE.md isn't a hard config file — it's "a note for what you'd otherwise re-explain every time." Claude reads it automatically each session, it holds build commands, structure, and rules, and its scope depends on location. For ready-to-use templates, continue with CLAUDE.md templates and examples by project type on this site.

This article explains public information from official Anthropic docs (code.claude.com/docs, docs.anthropic.com) in beginner-friendly terms. File locations and behavior can change with product updates, so verify against the official docs. This site is not an official Anthropic site.

Keep reading

Have a question or want to share how you use Claude?

Join the community to share tips with other users, or explore more guides.