What is CLAUDE.md?
CLAUDE.md is the file Claude Code reads at the start of every session to get the standing instructions of a project, such as commands, conventions and rules.
Claude Code starts each session without the conversations before it. What it should know every time goes in CLAUDE.md, in the project folder for one project, or in the home folder for instructions that apply everywhere.
For design work, it is where the design system becomes readable for the agent. Which tokens to use, which components exist and when to use each, and what to avoid. The Claude Code documentation advises keeping the file concise and specific.
A rule a machine can check belongs in a check as well. CLAUDE.md is the place for judgment, such as which pattern fits this product.
An example from my work
Rule files go out of date too. A review of the rule file in my print cost calculator found two token names that no longer existed, a rule that contradicted another one, and a token name check that had been switched off. Nobody noticed, because the only reader of the file was the agent, and the agent believed it.
Related
- Vibe coded app to production
- Design system for vibe coding, why a vibe coded app drifts
- AI-ready design system
- Design tokens
- AGENTS.md
- Design drift
Sources
Last updated