Tell it the rules once.
CLAUDE.md is a plain text file in your project that Claude Code reads at the start of every session. It's your standing brief.
# Leave form
Internal leave-request tool for the ops team.
## Stack
Plain HTML, CSS, JavaScript. No frameworks.
## Rules
- Dates are DD/MM/YYYY (South Africa)
- British spelling in all text
- Ask before installing any package
- Never commit .env
## Done means
- Tested in Chrome and on a phone
How to start one
Type /init and it drafts one from your project.
Edit it: cut what's obvious, add your rules.
Keep it short and specific.
When you correct the agent twice, add the rule here.
Source: Anthropic Claude Code Docs ↗
Short. Specific. Kept up to date.