All guidesCLAUDE
CLAUDE.md·2 min·English
A work contract for the CLAUDE.md file
A short structure that gives the agent boundaries, checks, stop conditions and a finish line before it touches the project.

What you get
A CLAUDE.md skeleton you can paste into a project and adapt in a few minutes
Who it is for
For anyone tired of teaching the agent from scratch every conversation, who wants the project to arrive with clear working rules.
1. What the file does
A good CLAUDE.md file is not pretty documentation. It is a work contract: what is allowed, what is not, how you check, and when you stop.
- Puts the agent into the project's context.
- Defines how you run checks and where to look first.
- Stops it from touching sensitive areas without approval.
- Sets what output counts as done.
- Saves you the lecture you give from scratch every conversation.
2. What goes into the file
- A short description of the project and the user.
- Run, test and build commands.
- Files that must be read before editing.
- Areas you do not touch without approval.
- Rules for style, scope, secrets and deploy.
- A finish check every task must return.
3. What does not go in
- A long history of every decision.
- Ideas that might happen someday.
- Full product documents.
- Secrets, tokens and passwords.
- Rules that contradict the reality in the code.
4. Skeleton to copy
Copy box
# Project Instructions
## What This Project Does
[one sentence about the product, the user, and the problem]
## Run Commands
- Dev: [command]
- Typecheck: [command]
- Build: [command]
- Tests: [command]
## Before Editing
- Read [files]
- Check [existing pattern]
- Keep changes inside [scope]
## Do Not Touch Without Approval
- [billing / payments / customers]
- [production config]
- [external send / publish / delete]
## Coding Rules
- Keep changes scoped.
- Reuse existing helpers.
- No secrets in code.
- Report unrelated dirty files without changing them.
## Done Means
- [verification command]
- [browser check if user-facing]
- [known risk reported]
- [files changed listed]5. Quick check
- If the agent still asks where to start, context is missing.
- If it takes a risky action on its own, a boundary is missing.
- If it finishes with a summary and no evidence, a finish check is missing.
- If the file gets too long, split the rules into focused files.
How to use this now
Start with a small skeleton. After two real tasks, add only the rules that would have saved a mistake or a repeated explanation.