CLAUDE.md generator
Fill in what Claude Code needs to know about your project and get a short, tidy CLAUDE.md or AGENTS.md to drop into the repository.
Generator
Your CLAUDE.md appears here as you fill in the form.Jotura, a free notes app, keeps your agent's decisions and conventions in plain Markdown notes that Claude Code and Codex read through its CLI. See how agent memory works
How to make a CLAUDE.md file
- Pick a preset. Choose your stack under Commands to fill the usual install, test and lint commands. Edit each one to match what your team runs.
- Add what Claude would get wrong. Tick the rules that apply, then write your own, one per line. A rule you could check against a diff works best.
- Save it in your repository. Download saves the file, and Copy puts the text on the clipboard. Put it at the project root and commit it, then start a new Claude Code session and run
/context all. The file should appear under Memory files.
Where each instruction file lives
| File | Who it is for |
|---|---|
./CLAUDE.md or ./.claude/CLAUDE.md | Your team, through git |
./CLAUDE.local.md | Only you, in this project. Add it to .gitignore |
~/.claude/CLAUDE.md | Only you, in every project |
./AGENTS.md | Codex, Cursor and other agents. Claude Code reads it when no CLAUDE.md exists |
CLAUDE.md questions
What is CLAUDE.md?
CLAUDE.md is a Markdown file of instructions that Claude Code loads at the start of every session. It tells Claude what it cannot learn from the code: the exact commands your team runs, conventions that differ from the defaults, and traps that have cost you time before. Claude treats it as context, so a rule there guides Claude without forcing it.
Where do I put CLAUDE.md?
Team instructions go in CLAUDE.md or .claude/CLAUDE.md at the project root, committed to git. Preferences you want in every project go in ~/.claude/CLAUDE.md. Notes for one project that only you should see go in CLAUDE.local.md at the project root, which you add to .gitignore. A CLAUDE.md in a subfolder loads once Claude works with files in that folder.
What should I include?
Commands Claude cannot guess, such as how to run one test or which package manager to use. Add code style rules that differ from what your formatter already enforces, workflow rules like branch names and commit style, and gotchas such as a test suite that wipes a database. Leave out anything Claude can read in package.json, a config file or the code. Every line should change what Claude does, so a rule like write clean code earns no place.
How long should CLAUDE.md be?
Anthropic's documentation sets a target of under 200 lines per file. Longer files use more context, and Claude follows them less consistently. Imports with @path split a long file into pieces without making it cheaper, because imported files load with the file that imports them. Instructions that matter for one part of the codebase can move into a rule file in .claude/rules/ that loads only when Claude touches matching files.
What is the difference between CLAUDE.md and AGENTS.md?
AGENTS.md is the instruction file that Codex, Cursor and many other coding agents read. Claude Code reads AGENTS.md when your project has no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md, from version 2.1.277. To keep one shared file and add Claude-only lines, Anthropic's documentation recommends a CLAUDE.md that imports it on the first line. A symlink from CLAUDE.md to AGENTS.md also works when you have nothing Claude-specific to add.
@AGENTS.md
## Claude Code
- Use plan mode for changes under src/billing/.Doesn't /init do this already?
Yes. Run /init in Claude Code and it reads your codebase and drafts a CLAUDE.md with the build commands and conventions it finds. This generator suits a new repository with little code to read, or rules that live in your head. You can also run /init first and use this form to add what it missed.
How do @ imports work?
A line with @path/to/file pulls that file into context when the session starts. Relative paths resolve from the file that holds the import, and imports can nest four levels deep. Escape a space in a path with a backslash, which the generator does for you. A path inside backticks stays plain text and loads nothing.
Is anything I type uploaded?
No. The file is built in your browser as you type. Your draft is saved in this browser's local storage so it survives a reload, and Clear empties it. Nothing is sent to a server.
For a worked example and a bloated file trimmed down, read what to put in CLAUDE.md. To carry your personal file to another computer, see syncing CLAUDE.md between machines, and for memory that follows you between agents, giving AI agents persistent memory.