dev>notes

CLAUDE.md Generator

Build a production-ready CLAUDE.md config for Claude Code. Pick your stack, define your rules, export in seconds. I wrote about my own config and why it matters - this tool automates the whole process.

1
Basics
2
Code Style
3
AI Rules
4
Structure
5
Export

Project Basics

Tell Claude about your project so it knows what it's working with.

Select everything your project uses.
Next.js
React
Vue
Svelte
Node.js
Python
Go
Rust
TypeScript
JavaScript
Ruby
PHP
Other
PostgreSQL
MySQL
MongoDB
SQLite
Supabase
Firebase
Redis
None

Code Style

Set linting, testing, and formatting rules so Claude matches your conventions.

Jest
Vitest
Pytest
Go test
None
ESLint
Prettier
Biome
Ruff
None
npm
pnpm
yarn
bun
pip
cargo
Indentation
Spaces
Tabs
Quotes
Single quotes
Double quotes
Semicolons
Yes
No

AI Rules

Define how Claude should behave in your codebase. These are the rules that matter most. See my setup guide for context.

Pick the ones that match how you want Claude to work.
Read files before editing Always read a file's full contents before making changes. Don't guess at structure.
Run tests after changes Run the test suite after any code modification. Confirm nothing is broken.
No apologies or filler comments Skip "I'll help you with that" or "Great question!" - just do the work.
Ask when uncertain instead of guessing If a requirement is ambiguous, ask for clarification rather than making assumptions.
Follow existing patterns, don't introduce new ones Match the conventions already in the codebase. Don't refactor style unless asked.
Keep functions under 40 lines Extract logic into smaller functions. No 200-line monsters.
Write tests for new functions Every new public function should come with a corresponding test.
No new dependencies without asking Don't add packages to package.json or requirements.txt without approval.
Don't modify migration files Existing migration files are immutable. Create new migrations instead.
Add your own rules, one per line. These get added to the CLAUDE.md verbatim.

Directory Structure

Give Claude a map of your project. This helps it find things fast and put new files in the right place.

Describe the important directories in your project. A pre-filled example is provided based on your stack selection.

Your CLAUDE.md

Here's your generated config. Copy it, download it, or share the link.

CLAUDE.md

        

Add This Tool to Your Site

Free to embed. Links back to dev>notes.

<iframe src="https://mohitkhare.me/tools/claude-md-generator/?embed=1" width="100%" height="700" frameborder="0" style="border-radius:8px;border:1px solid #222;"></iframe>
Copied to clipboard