⌨️/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
Example code
console
/initCommon mistake
Key takeaways
- 1Reads the project. Build, tests, habits.
- 2Writes CLAUDE.md. Or suggests changes.
- 3You finish it. Add what it missed.