Free Tool
CLAUDE.md Generator
Create a clear CLAUDE.md for your project in a minute. Claude Code reads this file at the start of every session, so the commands, code style and rules you set here apply to every prompt.
Start from:
Rules for Claude
CLAUDE.md
CLAUDE.md
# My App A web app that helps small teams track customer feedback. ## Stack - Next.js (App Router) - TypeScript - Tailwind CSS ## Commands - Start dev server: `npm run dev` - Build: `npm run build` - Run tests: `npm test` - Lint: `npm run lint` ## Project structure - src/app/ - routes and pages - src/components/ - shared UI components - src/lib/ - helpers and data access - public/ - static files ## Code style - Use TypeScript strict mode; no `any`. - Server Components by default; add "use client" only when needed. - Named exports for components; one component per file. ## Rules - Run the tests and the linter before saying a task is done. - Make the smallest change that solves the task; don't refactor unrelated code. - Ask before adding a new dependency. - Never commit or push unless I ask. - Never read or print .env files or secrets.
38 lines — a good length.
How to use your CLAUDE.md
- Download the file or copy it into
CLAUDE.mdat your project root. - Commit it so everyone on the team, and every Claude Code session, uses the same rules.
- Keep it short. When Claude repeats a mistake, add one line here instead of repeating it in prompts.
Frequently asked questions
CLAUDE.md is a Markdown file Claude Code reads at the start of every session in that folder. It is where you tell Claude about your project: the stack, the commands to run, the code style and the rules to follow, so you don't repeat them in every prompt.
Put it in your project root and commit it so your team shares it. You can also keep a personal ~/.claude/CLAUDE.md for rules you want in every project, and add CLAUDE.md files in subfolders for rules that only apply there.
Keep it short and specific, usually under 200 lines. Every line is loaded into each session, so cut anything Claude can work out from the code. Commands, non-obvious conventions and hard rules give the most value.
Yes. Run /init in your project and Claude scans the code and drafts a CLAUDE.md. This generator is useful when you want to decide the rules yourself, start from a clean structure, or set one up before the code exists.
Never put secrets, API keys or passwords in it. Avoid long explanations, copies of docs, and rules that change often. Link to longer docs instead, for example with @docs/architecture.md.
No. This one builds a general project CLAUDE.md. The CLAUDE.md SEO generator on this site adds SEO rules only; you can paste its output into the file this tool makes.