What is CLAUDE.md?
A CLAUDE.md file is the project guide Claude Code reads at the start of every session: your commands, code style, design rules and how to work. This CLAUDE.md generator writes one from a few choices, so Claude Code follows your stack and your design from the first prompt instead of guessing.
How to use the CLAUDE.md generator
Pick your stack
Choose your framework, styling, language, package manager and test tool above.
Copy the file
Copy the generated CLAUDE.md and save it at the root of your project.
Add your details
Add anything specific to your project: folders to avoid, API rules, naming conventions.
Start Claude Code
Run claude in the project. It loads CLAUDE.md automatically in every session.
What a CLAUDE.md file does
Claude Code has no memory between sessions. CLAUDE.md is how it remembers your project: it is loaded into context before your first message, so every session starts knowing how to run, test and style your code.
You can keep one CLAUDE.md at the project root, a personal one in ~/.claude/CLAUDE.md for rules that apply to all your projects, and extra ones in subfolders for parts of a monorepo. Claude Code combines them.
CLAUDE.md generator vs /init
Running /init in Claude Code drafts a CLAUDE.md by reading your code. It is a good start for an existing project but it describes what is there, including inconsistencies. This generator writes the rules you want Claude to follow, which suits new projects and projects whose UI you want to clean up. Many people run /init and then paste the design and working rules from here into the result.
What makes a good CLAUDE.md
Short and specific
Claude reads the whole file every session. Keep it under about 100 lines of rules it can act on.
Real commands
List the exact dev, build, lint and test commands so Claude runs the right ones.
A design source of truth
Point at one design file so every page uses the same fonts, spacing and colours.
How to finish
Tell Claude to run checks and summarise changes before it says a task is done.
Common mistakes
Writing a manual
Long explanations get skimmed. Write rules, not essays.
Vague style rules
"Make it look modern" means nothing. Name the file to match and the rules to follow.
Never updating it
When Claude repeats a mistake, add one line to CLAUDE.md so it stops.
Design templates for Claude Code
The generated file points Claude Code at design/template.html. Save one of these templates there and every page it builds follows the same design.
Frequently asked questions
Where do I put CLAUDE.md?
At the root of your project. Claude Code also reads ~/.claude/CLAUDE.md for personal rules and CLAUDE.md files inside subfolders.
Is this CLAUDE.md generator free?
Yes. The generated file is free to copy and use. The full design rules template on the CLAUDE.md page comes with a BrowserMoon licence.
How long should CLAUDE.md be?
As short as possible while still useful, usually 30 to 100 lines. Everything in it uses context in every session.
Does CLAUDE.md work with Claude Code in VS Code and JetBrains?
Yes. The IDE extensions run the same Claude Code, so they read the same CLAUDE.md.
Can I use the same file for Cursor or Codex?
The rules can be the same. Save them as AGENTS.md for Codex or as a Cursor rule; the other generators on this site output each format.
What is the design template line for?
It tells Claude Code to match one design file for fonts, spacing and colours, which is what stops AI-built pages from looking generic.
More free generators
Related