Koda Dojo
· Claude Code

Module 2: The Project Brain: CLAUDE.md Mastery

A CLAUDE.md system that carries your project knowledge into every session, so you stop re-explaining it.

Lessons

  1. What loads. Mark ten files, then launch a session and watch which ones it reads. Then launch from another folder.
  2. Where rules live. Eight rules from the backlog. Put each one in a home on the machine, then run three sessions and see who gets it.
  3. Trim the file. Mark the lines that do not earn their place, cut them and run a session on what is left.
  4. Make it stick. Four situations in the terminal. Send a move that changes the files, then run the next sessions.
  5. Five lines that work. Write one line in each of five slots, then load the file into a session that tries to break every line.
  6. Fresh check. A case you have not seen, in the terminal. Send what you would do and run it. Your first result is kept.

What you take away

  • A strong CLAUDE.md compresses project knowledge, encodes preferences as rules Claude could break, declares capabilities, sets how work starts, and logs what went wrong.
  • A rule only exists if it changes behavior: prove each one by asking Claude to violate it and watching for pushback.
  • Run the infinity loop: end every substantial session by writing what you learned back into the file, and the mistake log will compound fastest.
  • Keep the root file lean and push detail into focused rule files; every line costs context on every single request.
  • Universal preferences live in ~/.claude/CLAUDE.md, project truths live in the project root, and nothing gets written twice.

Field exercises

  • Build and Persist a CLAUDE.md File
  • Set Claude's Communication Style Rules
  • Let Claude Interview You for CLAUDE.md
  • Write CLAUDE.md and Test Its Guidance
  • Audit and Score Your CLAUDE.md on Six Dimensions
  • Generate a Stack-Specific CLAUDE.md You Can Reuse as a Template
  • Test Plan-First Guidance in CLAUDE.md
  • Build a Self-Updating Mistake Log
  • Trim a Bloated CLAUDE.md File
  • Set Up the Memory Hierarchy: Global Rules vs Project Rules
  • Split a Monolithic CLAUDE.md Into Modular Rule Files
  • Build a CLAUDE.md With Progressive Disclosure
  • Bootstrap and Test a CLAUDE.md File
  • Build a CLAUDE.md from scratch
  • Build a CLAUDE.md with planning workflow
  • Bootstrap CLAUDE.md with /init command
  • Build a CLAUDE.md Planning File
  • Build a CLAUDE.md Planning Workflow
  • Build a Layered CLAUDE.md Planning System
  • Build CLAUDE.md Planning Guidance
  • Test a Hook with Harmless Deny and Allow Probes
  • Build a CLAUDE.md Planning Workflow
  • Wire a Verification Check Into CLAUDE.md
  • Supply a Runnable Check in CLAUDE.md
  • Write Runnable CLAUDE.md Checklist Rules

All fifteen modules of the Claude Code Dojo