Generate a CLAUDE.md for the project
slash commands
// what it does
/init analyzes your codebase and writes a starting CLAUDE.md with build commands, test instructions, and conventions it discovers. If a CLAUDE.md already exists it suggests improvements instead of overwriting. Set CLAUDE_CODE_NEW_INIT=1 for an interactive multi-phase flow that also proposes skills and hooks and asks follow-up questions before writing.
// shell
$ /init// gotcha
The generated file describes what the code already shows (directory layout, dependencies) — refine it toward what Claude can't infer: the gotchas, rationale, and "always do X" rules. /doctor can later propose trimming the derivable parts.