Week 9 of 12 🧠
หน่วยความจำและการจัดการบริบท
记忆与上下文管理
Click a card to flip it. คลิกการ์ดเพื่อพลิก 点击卡片翻面。
What does CLAUDE.md do?
CLAUDE.md ทำอะไร?
CLAUDE.md 有什么作用?
Which is Present Perfect?
ข้อใดเป็น Present Perfect?
哪个句子是现在完成时?
Where are path rules stored?
กฎเฉพาะพาธเก็บที่ไหน?
路径专属规则保存在哪里?
How to do it
/init — Claude scans the project and drafts a CLAUDE.md for you.How to do it
/memory and switch auto-memory on.How to do it
.claude/rules/backend.md with frontmatter like paths: ['src/**/*.ts'].How to do it
/memory again any time to see what is stored.How to do it
@docs/style-guide.md.Step by step
/init (or ask Claude to create CLAUDE.md)./memory and turn auto-memory on./clear) and ask: What are this project's rules?✓ You did it right if: Claude lists your 3 rules without you pasting them again.
# CLAUDE.md (save in your project root) ## Rules for this project - Use 2-space indentation in all files. - Write a test for every new function. - Answer in simple English (A2 level). ## About this project A small website for my school club. Plain HTML and CSS, no frameworks. # ---- Verify it works: start a NEW session and ask ---- > What are this project's rules? * Your CLAUDE.md sets three rules: 2-space indentation, a test for every new function, and simple English answers.
| Command / Tool | English | ภาษาไทย | 中文 |
|---|---|---|---|
CLAUDE.md | Project instructions file | ไฟล์คำสั่งโปรเจกต์ | 项目指令文件 |
~/.claude/CLAUDE.md | Global instructions | คำสั่งส่วนตัว | 全局指令 |
.claude/rules/ | Path-specific rules | กฎเฉพาะพาธ | 路径专属规则 |
/memory | Manage memory settings | จัดการการตั้งค่าหน่วยความจำ | 管理记忆设置 |
/init | Initialize CLAUDE.md | สร้าง CLAUDE.md เริ่มต้น | 初始化 CLAUDE.md |
See exactly which rules load, and test what survives a restart. / ดูว่ากฎไหนถูกโหลด และอะไรรอดข้ามเซสชัน / 看哪些规则被加载、什么能在重启后留下
Which rules load? Toggle rule files, then switch the file you are working on.