CLAUDE.md is a text file in the project folder that Claude Code reads at every start. In it you write what the project is, how to build and publish it, and what's not allowed. A good file is short and sharp: overly long instructions tend to confuse.
What's needed
- Claude Code
- A project you come back to
Step by step
- Start with 5 lines
What is the project, where are the important files, the build command, the deploy command, and one rule that must not be broken.
- Add only what it repeated on its own
Explained something twice? Time to add it to a file.
- Cleaning up every month
Delete instructions that are no longer relevant. An old instruction is better than no instruction.
- Split by folder
In a large project, you can have a separate CLAUDE.md for different folders, each with what's relevant to it.
Tips
- Write precise commands, not descriptions: "npm run build" is better than "build the project".
- You can ask Claude: "Suggest a CLAUDE.md for this project."
⚠️ Don't put passwords or keys in a file. It gets saved with the code and may sometimes end up on GitHub.
Learn more
This guide was written by the AI TIPS team and is updated regularly. Interfaces and programs change, so button names may be slightly different.