CLAUDE.md template
What Claude Code reads at the start of every session. Imports your AGENTS.md, then adds what is specific to Claude.
Repo root. Claude Code loads it on its own, along with any CLAUDE.md in the folder you are working in.
# CLAUDE.mdClaude Code reads this file at the start of every session.Shared rules live in AGENTS.md so every agent follows the same ones. This file adds only what is specific to Claude.@AGENTS.md## Commands- `npm run dev`: start the app- `npm test -- path/to/file.test.ts`: run one test file- `npm run db:reset`: reset the local database (never on a shared one)## Read before you start- `WORKSPACE.md` for where docs live and where a new one goes- `docs/adr/README.md` to find the decision that covers your change- `docs/VOICE.md` before you write any text a customer will see## How to work here- For a change that touches more than three files, write a plan first and show it before editing.- Use subagents for wide searches across the repo. Keep the main thread for the change itself.- When you finish, run `npm run lint && npm run typecheck && npm test` and report the real output.- When you are unsure how the product should behave, ask. Don't guess from the code.## How to report back- Short replies. Say what changed, what you checked, and what is left.- Link files by path, for example `api/billing/invoice.ts`.- If you skipped a check, say which one and why.## Not herePersonal preferences, like your editor or how chatty you want replies, go in `~/.claude/CLAUDE.md` on your own machine, not in this file.
CLAUDE.md
Claude Code reads this file at the start of every session.
Shared rules live in AGENTS.md so every agent follows the same ones. This file adds only what is specific to Claude.
Commands
npm run dev: start the appnpm test -- path/to/file.test.ts: run one test filenpm run db:reset: reset the local database (never on a shared one)
Read before you start
WORKSPACE.mdfor where docs live and where a new one goesdocs/adr/README.mdto find the decision that covers your changedocs/VOICE.mdbefore you write any text a customer will see
How to work here
- For a change that touches more than three files, write a plan first and show it before editing.
- Use subagents for wide searches across the repo. Keep the main thread for the change itself.
- When you finish, run
npm run lint && npm run typecheck && npm testand report the real output. - When you are unsure how the product should behave, ask. Don't guess from the code.
How to report back
- Short replies. Say what changed, what you checked, and what is left.
- Link files by path, for example
api/billing/invoice.ts. - If you skipped a check, say which one and why.
Not here
Personal preferences, like your editor or how chatty you want replies, go in ~/.claude/CLAUDE.md on your own machine, not in this file.