A Free CLAUDE.md Generator for Claude Code
CLAUDE.md is the file Claude Code reads at the start of every session. It tells Claude how your project works: the commands to run, where things live, your code style and the mistakes to avoid. This free CLAUDE.md generator writes that file for you. Pick your stack and the tool fills in the usual commands, folders and rules, which you can edit, then tick the extra rules you want.
The preview updates as you type, and a file check on the right flags what is missing, vague or clashing. When it looks right, copy the file or download it.
How to Use the CLAUDE.md Generator
- Pick a quick start or choose your language and framework. The package manager, tests and lint tools fill in their usual commands.
- Add the project name and one or two sentences on what it does.
- Check the commands against your own scripts and fix any that differ. Claude runs exactly what the file says.
- Edit the folder list, then tick the code style and workflow rules you want.
- Under Watch out for, add the mistakes Claude keeps making in this project.
- Open More options for @ imports, a personal CLAUDE.local.md, a rule file for some folders, or a hidden note.
- Copy the file or download it, and save it in your project root.
If your project already has code, you can also run /init in Claude Code first. It reads your code and writes a starter CLAUDE.md, and you can then add the rules from this page.
What Makes a Good CLAUDE.md
The tool follows the advice in Anthropic’s Claude Code documentation on memory files.
- Keep it short. Aim for under 200 lines, because a long file uses more of Claude’s context and is followed less closely.
- Be specific. “Use 2-space indents” works; “format code properly” does not.
- Group rules under markdown headings, so they are easy to scan.
- Give exact commands, so Claude can build, test and lint without guessing.
- Avoid rules that clash, such as two indent sizes, or Claude may pick either one.
- Move rules for one part of the code into
.claude/rules/ with a paths list, so they load only when needed.
For more, read our guide to the CLAUDE.md file, browse CLAUDE.md templates and examples, or see how AGENTS.md compares with CLAUDE.md.
Where Claude Code Looks for CLAUDE.md
./CLAUDE.md or ./.claude/CLAUDE.md: the project file your team shares through git../CLAUDE.local.md: your own notes for this project. Add it to .gitignore.~/.claude/CLAUDE.md: your rules for every project on your computer..claude/rules/*.md: rule files. With a paths list at the top, a rule loads only for files that match.
Run /context all inside Claude Code to see which memory files it loaded.
The File Check
The check on the right looks for the parts a useful CLAUDE.md has: a name and summary, commands, a test command, a folder map and things to watch out for. It counts the lines against the 200 line target, flags vague words such as “clean code” or “best practices”, and spots clashes, such as two indent sizes or commands for a different package manager. It reads only what is on this page; it does not open your project.
Built With Claude Code
We built this tool with Claude Code and checked its advice against Anthropic’s documentation. No AI runs on this page. Your choices pick ready-written lines, and plain rules in your browser put them in order, so it is free and works without an account.
CLAUDE.md Generator FAQ
Is this CLAUDE.md generator free?
Yes. It is free, needs no sign-up and makes as many files as you like.
Does it send my project details anywhere?
No. Everything you type stays in your browser. Your answers are saved in this browser only, so they are still there next time.
Are the commands right for my project?
They are the usual defaults for each tool, such as pnpm test or uv run pytest. Your project may use different script names, so check each command and edit any that differ.
How long should a CLAUDE.md be?
Under 200 lines. Put the commands, layout, style and the mistakes to avoid, and move rules for one part of the code into rule files.
Does Claude Code read AGENTS.md?
Claude Code reads CLAUDE.md, and falls back to AGENTS.md only when a project has no CLAUDE.md. If your repository keeps an AGENTS.md for other tools, import it from CLAUDE.md with the line @AGENTS.md, using the Other files box under More options.