AI Rules Generator
Fill in one form and generate rule files for every major AI coding tool at once: AGENTS.md, CLAUDE.md, .cursor/rules/project.mdc, .github/copilot-instructions.md, .windsurfrules and GEMINI.md. Enter the project name, overview, tech stack, commands (dev, build, test, lint), directory structure, coding conventions, things not to do and notes, and it arranges them as Markdown with headings. AGENTS.md is the single source of truth and the other files are made from the same body, so your rules never drift between tools. The Cursor file gets a frontmatter header that makes it always apply (alwaysApply). You can choose Japanese or English for the output, and tool-specific syntax such as Cursor globs or Claude Code @ imports is not covered. Everything is generated locally in your browser and nothing you type is sent to any server. You can also start from a template (Node.js/TypeScript, Python, Go, Rust, Astro, Java), import an existing AGENTS.md or CLAUDE.md back into the form, add Copilot path-specific, Cline, legacy Cursor and Aider formats, and get a warning if a key or token slipped into the text.
Generated files
Fill in the form above and press "Generate rule files" to preview all six files.
Check an existing rules file
Paste your AGENTS.md or CLAUDE.md to find secrets, vague instructions, contradictions and bloat. It only reads the text; nothing is sent anywhere.
GuideHow to use & features
- Fill in the project name, overview, tech stack, commands, coding conventions, and prohibited actions. Empty sections are omitted from the output automatically.
- Choose the output language (English/Japanese) and press "Generate rule files" to preview all six files in tabs.
- Copy each file individually, or use "Download all as ZIP" to save them with the correct directory layout (.cursor/rules/, .github/).
- Because every file is derived from AGENTS.md, your rules never drift between tools.
FAQFAQ
What is AGENTS.md?
An open standard file for describing your project to AI coding agents. Many tools — OpenAI Codex, Google Jules, Cursor, and more — read it, and it is becoming the "README for AI agents". This tool treats AGENTS.md as the source of truth and derives each tool-specific file from it.Why does each tool need its own file?
Claude Code reads CLAUDE.md, Cursor reads .cursor/rules/*.mdc, GitHub Copilot reads .github/copilot-instructions.md, Windsurf reads .windsurfrules, and Gemini CLI reads GEMINI.md. The content can usually be identical, so deriving them all from one source keeps them in sync.Where do I put the generated files?
Place them at the root of your repository (.cursor/rules/project.mdc and .github/copilot-instructions.md go inside their subdirectories). The ZIP download preserves the correct directory layout.What is the "---" block at the top of the .mdc file?
It is the MDC frontmatter used by Cursor Project Rules, containing metadata such as description and alwaysApply. This tool sets alwaysApply: true so the rules apply to the whole project at all times.Is my project information stored or transmitted?
No. Generation runs entirely in your browser via JavaScript; nothing you type is sent to or stored on any server, so internal project details are safe.
Use casesCommon use cases
Bootstrapping a new project
Generate the full set of rule files right after creating a repository, so Claude Code, Cursor, Copilot, and others all follow the same conventions from day one.Keeping rules in sync across a mixed-tool team
When teammates use different AI coding tools, deriving every file from one AGENTS.md prevents copy-paste drift and forgotten updates.Introducing AI agents to an existing project
Writing out build/test commands and prohibited actions in the form organizes exactly the project knowledge an AI needs, improving suggestion quality from the first day.Supporting OSS contributors
Shipping an AGENTS.md in your repository helps contributors produce convention-compliant patches no matter which AI tool they use.
NotesNotes & limitations
Tool formats may change
Rule-file conventions (file names, frontmatter, etc.) evolve quickly. Check each tool’s latest documentation before adopting the generated files.The output is a starting template
This tool formats what you type into files — it does not decide the best rules for your project. Review the output with your team and refine it to match reality.Do not include secrets
Generation happens in your browser, but the files end up committed to your repository. Keep API keys, internal URLs, and other sensitive details out of rule files.Watch out for overwriting existing files
If your project already has a CLAUDE.md or .cursor/rules, dropping the generated files in place will overwrite them. Diff and merge instead.
Articles for this tool
AI Rules Generator: AGENTS.md, CLAUDE.md & Cursor Rules from One Form
Generate rules files for Claude Code, Cursor, Copilot, Windsurf and Gemini CLI at once. Covers AGENTS.md, per-tool formats, and one source of truth.
AGENTS.md, CLAUDE.md, Cursor Rules: One Source of Truth for AI Coding Agents
Compare AGENTS.md, CLAUDE.md, .cursor/rules and copilot-instructions.md: what to write, a copy-paste template, and how to keep them from drifting apart.
