AI GLOSSARY · CODING AGENTS AND CODING TOOLS
Cursor rules
Definition
Cursor rules are persistent instructions for the Cursor editor's agent. Cursor's documentation describes them as system-level instructions, stored as project rules in a .cursor/rules folder, as user rules, as team rules, or in an AGENTS.md file.
Also called: cursorrules, .cursorrules, cursor rules file, Cursor project rules, .cursor/rules.
In plain language
Cursor is a code editor with an AI agent built in. The agent starts each task without remembering your earlier chats, so it does not know that your team writes tests in a certain style or avoids a certain library. Cursor rules are short written notes the editor hands to the agent before it works, like a sticky note on the monitor that a new contractor reads first. Rules only guide the agent; the agent can still misread them or ignore a vague one, and a long pile of rules uses up space the model could spend on your actual task. A rule file is plain text kept in your project, so anyone who can edit the repository can change what the agent is told.
Technical definition
Per Cursor's documentation, rules supply system-level instructions to the Agent, because models do not retain memory between completions. There are four sources: project rules, stored in .cursor/rules and version-controlled; user rules, set globally in Cursor's settings; team rules, managed from the Cursor dashboard on Team and Enterprise plans; and AGENTS.md, a plain Markdown file read from the project root and subdirectories. Project rules are .mdc files with frontmatter, and the documentation lists four modes: Always Apply, Apply Intelligently, Apply to Specific Files and Apply Manually. The documentation says a plain .md file in the rules folder is ignored because it has no frontmatter.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Guide · Illustrative, not executed
Cursor Rules Explained: Rule Types and When to Use a Skill
- What you see
- An explanation of what Cursor rules are, how project rules and AGENTS.md differ, and the signs that a rule should move into a reusable skill instead.
- Why it exercises the concept
- It is the direct walk-through of the four rule sources and of the point where a rule stops being the right container.
Guide · Illustrative, not executed
CLAUDE.md vs AGENTS.md: Which Agents Read Which File
- What you see
- A comparison of which coding agents read CLAUDE.md and which read AGENTS.md, how Claude Code and Codex load them, and how to keep one source of truth.
- Why it exercises the concept
- Cursor reads AGENTS.md as well as its own rules, so this shows how the same instructions can be shared across tools instead of duplicated.
Skill by Skill Almanac · Illustrative, not executed
rules-to-skills-migration 45/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A migration that moves editor rule files to AGENTS.md plus portable skills without losing how each rule was switched on.
- Why it exercises the concept
- It treats editor rule files such as Cursor's as the starting point of the migration.
Coding tool · Illustrative, not executed
Cursor
- What you see
- Cursor is the editor whose agent reads project, user and team rules, and AGENTS.md, according to its own documentation.
- Why it exercises the concept
- Rules are a feature of this tool and take effect when its agent runs.
How it shows up when you use agents
In Cursor, rules appear as files in your repository and as settings in the editor. When the agent starts a task, Cursor can include the rules that apply, depending on the mode set on each project rule. The result is that the agent follows a convention, such as a test layout or a naming style, without you restating it in each message. Rules are one form of an agent instruction file, the general idea of written standing instructions for a coding agent, and they add to the system prompt the tool already sends.
Things go wrong in three ways. A rule saved as a plain .md file is ignored, because Cursor's documentation says project rules must use the .mdc extension. A rule set to apply to specific files does nothing when the agent is working elsewhere. And a long list of vague rules can use context on each request.
Next action: keep each rule short and specific, set its mode on purpose, and put facts all agents need in AGENTS.md. The Cursor rules explained guide covers the decision, and the rules-to-skills migration skill helps when a rule has outgrown its file. A procedure you want loaded on demand may suit an agent skill better.
Common confusions
- Cursor rules versus AGENTS.md. Rules are Cursor's own configuration with scoping modes. AGENTS.md is a plain Markdown file with no metadata that Cursor and other tools can read.
- Project rules versus user rules. Project rules live in the repository and are shared through version control. User rules are global preferences set in Cursor's settings and apply across projects.
- .cursorrules versus .cursor/rules. The documentation page cited here describes the .cursor/rules folder and does not mention the older single-file name. Check the current docs before relying on a .cursorrules file.
- Myth: a rule is a guarantee. A rule is context given to a model. It can still be misread or outweighed by other text, so check the agent's output.
Related terms
Terms that mention Cursor rules
1 terms mention this one
Guides that mention Cursor rules
More in Coding agents and coding tools
Sources
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.
Review record
Last verified
Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .
This entry is still in review, so it is not listed in search engines yet.
Change log (2)
- : First version.
- : Verifier pass: applied verifier corrections to unsourced or overstated claims.