Developer Tools

CLAUDE.md, AGENTS.md and Cursor Rules Generator

Create the instructions file your AI coding assistant reads before it writes a line of code: CLAUDE.md for Claude Code, AGENTS.md for Codex and other agents, Cursor rules, GEMINI.md or GitHub Copilot instructions. Pick your stack, a workflow preset and the rules you want, then copy or download the file. It's generated in your browser, so nothing you type leaves your device.

CLAUDE.md and AGENTS.md Generator

Free · No sign-up
Loading tool…

A free CLAUDE.md generator for Claude Code

CLAUDE.md is the file Claude Code loads at the start of every session. Put it in your project's root and Claude follows your stack, conventions and rules without you repeating them in every prompt. Without one, you keep correcting the same things: old patterns, missing types, extra dependencies, long-winded answers.

Claude Code's /init command can draft a CLAUDE.md by scanning your repository. This generator is the other half: it writes the rules you actually want enforced, such as how to approach bugs, what to never do and how answers should be formatted. Many developers combine both: run /init, then paste in the rules from here.

What to put in a CLAUDE.md file

A good CLAUDE.md is short and specific. The generated file follows a simple template: the role the assistant should take, your tech stack, coding conventions for that stack, a step-by-step workflow, hard rules, and the response format you expect.

Keep it under a page or two. Anything long or rarely needed belongs in a separate document the file links to; Claude Code can import other files with the @path syntax.

AGENTS.md vs CLAUDE.md, which do you need?

AGENTS.md is an open, plain-Markdown format that many coding agents read, including OpenAI Codex, Cursor and GitHub Copilot. CLAUDE.md is Claude Code's own file and supports Claude-specific features such as imports and nested files.

If your team uses several AI tools, keep your rules in AGENTS.md and add a CLAUDE.md that contains just the line @AGENTS.md, so Claude Code reads the same instructions. If you only use Claude Code, a CLAUDE.md on its own is enough.

Cursor rules for Next.js, React and TypeScript

Cursor's current format is one or more .mdc files in the .cursor/rules/ folder. Each file starts with a short header (description, globs and alwaysApply); the generator adds it for you, set to apply to every request. Choose Next.js, React, TypeScript, Tailwind CSS, Supabase or other chips and the matching conventions are added automatically, for example Server Components by default in the App Router, or Row Level Security for Supabase.

The single .cursorrules file in the project root is Cursor's older format. Cursor now recommends project rules instead, but .cursorrules still works in many setups, so it's available too.

GEMINI.md and GitHub Copilot instructions

Gemini CLI reads a GEMINI.md file from your project, and GitHub Copilot reads repository instructions from .github/copilot-instructions.md. Both use plain Markdown, so the same rules work everywhere. Pick the format and the file is named correctly for you.

One-off prompts for Claude, ChatGPT and Gemini

Need a single prompt instead of a project file? The Claude format wraps each part in XML tags like <role>, <task> and <rules>, which Claude follows closely. The Markdown format suits ChatGPT and Gemini, and the JSON option gives you a ready system message for API calls.

The presets read like engineering checklists, not “act as a world-class expert”: find the root cause before fixing a bug, list the files before building a feature, keep behaviour unchanged during a refactor, and give a concrete attack scenario for every security finding.

Frequently asked questions

What is a CLAUDE.md file?

It's a Markdown file that Claude Code reads automatically at the start of every session. It holds your project's stack, conventions and rules, so you don't have to repeat them in each prompt.

Where do I put the CLAUDE.md file?

In the root folder of your project, next to package.json or your main config. Claude Code also reads a personal CLAUDE.md from ~/.claude/ for rules you want in every project.

What's the difference between AGENTS.md and CLAUDE.md?

AGENTS.md is an open format read by many coding agents, such as Codex, Cursor and Copilot. CLAUDE.md is specific to Claude Code. To use one set of rules for all tools, write AGENTS.md and put the line @AGENTS.md in your CLAUDE.md.

Is .cursorrules deprecated?

Cursor treats .cursorrules as its legacy format and recommends project rules: .mdc files in the .cursor/rules/ folder. Older .cursorrules files still work in many setups, and this tool can generate both.

Where do Cursor .mdc rule files go?

Inside a .cursor/rules/ folder in your project, for example .cursor/rules/project-rules.mdc. You can split rules into several files, each with its own globs.

Is my input sent to a server or an AI?

No. The file is assembled in your browser with plain code, with no AI model or server involved, so it's instant, free and private.

Will a rules file guarantee perfect code?

No tool can. Clear instructions make AI assistants far more consistent, but you should still review and test what they produce, and update the file as your project changes.