AI Coding Agent Rules Generator — AGENTS.md, CLAUDE.md & .cursorrules
Fill one short form and get a clean rules file for your AI coding agent — AGENTS.md, CLAUDE.md, .cursor/rules, Copilot or Windsurf. It shows the exact path to save it and runs in your browser, so nothing you type is uploaded.
How it works
An AI coding agent only follows your project conventions if it can find and read an instructions file — and every agent looks for a different filename in a different place. This tool keeps one shared content model and adapts it to whichever format you pick, so you write your rules once instead of maintaining five near-identical files by hand. There is no AI call and no network request: every byte is produced by string templating in your browser.
One model, five formats. Your inputs — project meta, commands, style rules, conventions and directory notes — become a single internal model. The formats differ only in the filename, the path and one structural quirk. AGENTS.md and CLAUDE.md save at the repository root; .github/copilot-instructions.md lives in the .github folder; Windsurf reads .windsurf/rules/; and Cursor uses .cursor/rules/project.mdc with a small frontmatter block. Wrong placement is the single most common reason an agent ignores your rules, so the exact path is shown in a banner above the output.
Section assembly.Sections are emitted in a fixed order — Project overview → Tech stack → Commands → Code style → Conventions → Directory notes → Commit convention — and any empty section is dropped so the file stays tight. Commands are wrapped in backticks and only the ones you fill in appear; a blank build command simply doesn't show. Each style rule and convention becomes one bullet, and a leading - you type yourself is stripped so you never get a doubled bullet.
Cursor frontmatter. When you target Cursor, the file is prefixed with the documented .mdc frontmatter — description and alwaysApply: true — so the rule applies to every request. No other format gets frontmatter. Leaving the code-style field blank seeds sensible, editable defaults for your chosen language (for example, PEP 8 for Python or strict mode for TypeScript).
Cross-check.The "Structure verified" badge is not decorative. After each keystroke an independent function re-parses the emitted file and confirms a frontmatter block is present only for Cursor, that a single title heading exists, and that every section heading is a recognised one in the canonical order. The filenames, paths and the frontmatter shape come straight from the vendor docs cited below, last verified 2026-07-01.
Worked examples
Frequently asked questions
Sources & references
- AGENTS.md — the open, cross-agent instructions format
- Anthropic — Claude Code memory (CLAUDE.md location and @imports)
- Cursor — Rules (.cursor/rules/*.mdc and legacy .cursorrules)
- GitHub Copilot — repository custom instructions (.github/copilot-instructions.md)
- Windsurf — rules (.windsurf/rules placement)
The filenames, paths and the Cursor frontmatter block on this page were last cross-checked against the vendor docs on 2026-07-01. Each format is a documented specification; this page is reviewed whenever a vendor revises where the file lives or how it is structured.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want another agent format supported?
Email me at [email protected] — most fixes ship within 24 hours.