Home › Rules › Cursor rules vs AGENTS.md
Cursor rules vs AGENTS.md: which should you use?
Short answer: start with AGENTS.md. Cursor reads it, and so do other tools. Move to .cursor/rules/*.mdc when you want a rule to load only for certain files, or only when it's relevant.
What Cursor supports
Cursor's docs list four kinds of rules: Project Rules (.cursor/rules, in git), User Rules (your global preferences in Cursor's settings), Team Rules (from the dashboard, Team and Enterprise plans), and AGENTS.md, which Cursor describes as a simple alternative to .cursor/rules.
| AGENTS.md | .cursor/rules/*.mdc | |
|---|---|---|
| Works in other tools | Yes (Codex, Copilot, Claude Code and more) | Cursor only |
| Format | Plain Markdown | Markdown with frontmatter: description, globs, alwaysApply |
| Scoping | By folder (nested AGENTS.md files) | By file pattern, by relevance, always, or manual @-mention |
| Best for | One shared set of rules | Many focused rules that shouldn't all load at once |
Common mistakes
- Saving rules as
.mdin.cursor/rules. Cursor ignores them. Project Rules must be.mdc. - A rule that never applies. With
alwaysApply: falseand no description or globs, a rule only loads when you @-mention it. - Same rules in both places. If AGENTS.md and an always-on .mdc say the same thing, you're sending it twice. Pick one home for each rule.
- An old
.cursorrulesfile. Cursor's current docs describe.cursor/rulesand AGENTS.md. Move old rules into one of those.
A good split
Keep the project overview, commands and working habits in one always-on place (AGENTS.md or core.mdc with alwaysApply: true). Put file-specific rules (database migrations, components, tests) in .mdc files with globs.
---
globs: supabase/**/*.sql
alwaysApply: false
---
- Turn on Row Level Security for every new table, with explicit policies.
- Ask before dropping or renaming a column or table.
Free rules starter pack for Cursor, Claude Code, Codex and Antigravity
One shared AGENTS.md that works across Cursor, Claude Code, Codex, Copilot and Antigravity, plus database and test rules in each tool's format. Unzip it into your project and fill in two sections. I'll email you the link.
Free. No spam. Unsubscribe anytime. See our privacy note.
Matching kit: Vibe Coder Skills Pack ($9)
The free rules set the boundaries. The Skills Pack adds 6 ready-to-copy skills for when a project goes wrong: stop-the-loop, fix-one-bug, leak-check, ship-check, explain-project and builder-handoff, for Claude Code, Cursor and Codex, with paste-in steps for Lovable, Bolt, Replit and Base44.
See the Vibe Coder Skills Pack ($9) →
Instant download. 7-day refund, no questions asked.
Get ready-made files
Every page in the rules library gives you both: an AGENTS.md and the same rules split into core.mdc plus a glob-scoped project rule. Or generate a Cursor rule. More copy-paste examples: Cursor rules examples and AGENTS.md examples. When a rule is really a multi-step procedure, make it a skill: Cursor rules vs skills.
Best value
All 6 kits for $29 — or $20.30 with code WELCOME30 (through Nov 30)
All six kits in one download: Tiny Game Builder Kit, Inbox Triage Agent, Codebase Fixer Agent, MVP Spec-to-Build Pack, Discord Bot Builder and the Vibe Coder Skills Pack. The five build kits are one markdown file each (agent brief, setup steps, worked example); the Skills Pack adds a zip of 6 SKILL.md skill folders.
Get all 6 kits for $29 → See what's in each kit
$29 instead of $48 for the six kits bought separately; WELCOME30 takes 30% off that at checkout ($20.30). Instant download from Gumroad. 7-day refund, no questions asked.