Skip to content
BENIBIX Learn

/init Command

Also known as /init, CLAUDE_CODE_NEW_INIT, Create CLAUDE.md

It writes a first CLAUDE.md by reading your project.

Think of it like

It is like a kid who looks round the room, then writes the rules down.

Example

Jack opens Claude Code in an old project for the first time. He runs /init, and a minute later CLAUDE.md lists how to build, test and lint it.

Why it matters

Each new session starts out knowing how this project is built and tested.

Definition

/init reads your project and writes a starting CLAUDE.md for it. Claude looks at the code and notes the build commands, the test steps and the habits the project follows. If a CLAUDE.md is already there, it suggests changes instead of writing over it. It also reads notes left for other AI tools and keeps the parts that help. Then you add what Claude could not find on its own.

Example code

console
/init
Write a starting CLAUDE.md for this project.
/init turns what it finds in the project into a first CLAUDE.md.

Common mistake

Leaving the file as /init wrote it. It only finds what the code shows. The rules in your head still have to be added by hand.

Key takeaways

  1. 1
    Reads the project. Build, tests, habits.
  2. 2
    Writes CLAUDE.md. Or suggests changes.
  3. 3
    You finish it. Add what it missed.

Learn it properly