🌐 English
עבריתEnglishРусскийالعربيةहिन्दीEspañolFrançaisPortuguêsDeutsch

Level: Intermediate · Time: 15 minutes

CLAUDE.md: permanent instructions that save explanations

One file in the project, and Claude knows how you work from the first second.

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

Step by step

  1. 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.

  2. Add only what it repeated on its own

    Explained something twice? Time to add it to a file.

  3. Cleaning up every month

    Delete instructions that are no longer relevant. An old instruction is better than no instruction.

  4. 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

⚠️ 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.

More cool things to do