Run /init to Bootstrap Your CLAUDE.md Automatically
Writing a CLAUDE.md from scratch is tedious. Let Claude do it for you.
claude /init
This command scans your entire codebase — the framework, folder structure, test setup, linting rules — and generates a tailored CLAUDE.md that captures how your project actually works.
The generated file typically includes:
- Build and test commands (
npm run test,cargo build, etc.) - Project structure and key directories
- Code style conventions it detected
- Common patterns and architecture notes
You can (and should) edit the result afterward. Think of /init as a first draft — it gets you 80% of the way there in seconds, then you fine-tune with your own preferences.
# CLAUDE.md (generated, then tweaked)
## Build
npm run build
## Test
npm run test -- --watch
## Style
- Use TypeScript strict mode
- Prefer named exports
- Components go in src/components/
A 30-second /init followed by 5 minutes of tweaking beats writing it from scratch every time.
The best CLAUDE.md is the one that actually exists — /init removes the excuse not to have one.
Log in to leave a comment.
The autoUpdatesChannel setting pins Claude Code to a stable release track that skips versions with major regressions.
The language setting makes Claude respond in your preferred language by default, across every session and project.
The attribution setting lets you customize or completely remove Claude's Co-Authored-By trailer from git commits and pull requests.