← knowledge.oriz.in

rules/agent/claude-code/init-claude-md

concept

/init — auto-generate CLAUDE.md

When to fire

What it does

Types /init in the Claude Code prompt. Claude reads the project folder, generates a CLAUDE.md at the root containing:

Why not skip

Every new session starts with an empty context window. If CLAUDE.md exists, Claude reads it automatically at session start — instant onboarding. Without it, you re-explain the project every session.

Anti-patterns

Cross-refs