Cursor rules vs agent skills (SKILL.md): what to use in 2026
Cursor rules are short instructions in .cursor/rules/*.mdc that Cursor adds to its context always, for matching files, or when relevant. Skills are folders with a SKILL.md that Cursor, Claude Code and Codex all read and load only when a task needs them.
Use rules for short always-on or per-file conventions in Cursor. Use skills for procedures, and for anything you want to work in more than one agent.
| Cursor rule | Skill | |
|---|---|---|
| File | .cursor/rules/<name>.mdc (plain .md there is ignored) | <skill-name>/SKILL.md in .agents/skills/, .cursor/skills/ or .claude/skills/ |
| Frontmatter | description, globs, alwaysApply | name, description (plus optional fields) |
| When it applies | Always; when a file matching globs is in context; when the agent judges the description relevant; or when you @-mention it | When the task matches the description, or when called by name |
| Other agents | Cursor only | Cursor, Claude Code, Codex and others |
| Size | Keep under 500 lines | SKILL.md under 500 lines; long material in references/ |
The four rule types in Cursor
- Always Apply: alwaysApply: true. Included in every request; globs and description are ignored.
- Apply to Specific Files: alwaysApply: false with globs. Attached when a matching file is in context.
- Apply Intelligently: a description only. The agent reads it and pulls the rule in when relevant.
- Apply Manually: you @-mention the rule.
---
description: React component conventions
globs: src/components/**/*.tsx
alwaysApply: false
---
- One component per file, named export.
- Props type named <Component>Props.
- No inline styles; use the design tokens.When a skill is the better choice
- The instructions are a procedure (review, release, migrate), not a style rule.
- You or your team also use Claude Code or Codex. A skill in .claude/skills/ is read by Cursor too, so one folder serves all three.
- The material is long. A skill can keep detail in references/ that loads only when needed.
And AGENTS.md?
Cursor also reads AGENTS.md in the project root and subfolders. Put repo-wide rules every agent needs there, Cursor-only per-file rules in .mdc files, and procedures in skills.