The line between a rule and a skill in Cursor has blurred for many devs, but the documentation is finally explicit. A Cursor rule is a static instruction in an .mdc file under .cursor/rules, injected into the model’s context based on strict triggers. A skill is a folder containing a SKILL.md file, loaded on demand by the agent, capable of carrying scripts and references. The core distinction? Rules are for short, persistent constraints. Skills are for complex, repeatable procedures.
The Mechanics of Rules
Rules live in .cursor/rules and must use the .mdc extension. Plain .md files are ignored because they lack the necessary frontmatter fields like description, globs, and alwaysApply. There are four application modes: Always On (alwaysApply: true), File-Scoped (globs provided), Intelligent (description provided, no globs), and Manual (@-mention). Team Rules take precedence over Project Rules, which override User Rules. The docs advise keeping rules under 500 lines to avoid context bloat.
Skills as Dynamic Workflows
Skills reside in .agents/skills/ or .cursor/skills/ and are discovered at startup. Unlike rules, skills have no 'always-on' field; they are invoked via /skill-name or when the agent deems them relevant. A key advantage is portability: Cursor claims skills follow the Agent Skills standard, making them reusable across other coding agents. They also support subdirectories for scripts/, references/, and assets/, allowing the agent to read or execute code only when needed, preserving context window space.
Migration and Compatibility
Cursor 2.4 introduced the /migrate-to-skills command, but it’s not a blanket converter. It only transforms 'Apply Intelligently' rules and slash commands into skills with disable-model-invocation: true. Rules set to alwaysApply: true or those with globs are left untouched because their triggering logic differs fundamentally from skills. User Rules, which aren’t stored as files, are also skipped. This selective migration highlights that rules and skills serve different architectural roles in the agent’s memory.
Key Takeaways
- Use Rules for short, persistent constraints like 'Use TypeScript' or copyright headers.
- Use Skills for multi-step procedures like deployment workflows that require scripts.
- Rules are scoped via globs; Skills are scoped via paths and folder structure.
- Skills are portable across agents supporting the Agent Skills standard; Rules are Cursor-specific.
- The /migrate-to-skills command only converts 'Apply Intelligently' rules and slash commands.
The Bottom Line
Stop treating rules and skills as interchangeable. If you’re stuffing long workflows into .mdc files, you’re wasting context. If you’re using skills for simple constraints, you’re over-engineering. Respect the architecture: rules for boundaries, skills for procedures.