Skip to content

Cursor rules vs agent skills (SKILL.md): what to use in 2026

By the Toolbay team · Checked against the sources below on

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 rules and skills side by side (Cursor docs, checked 2026-11-24)
Cursor ruleSkill
File.cursor/rules/<name>.mdc (plain .md there is ignored)<skill-name>/SKILL.md in .agents/skills/, .cursor/skills/ or .claude/skills/
Frontmatterdescription, globs, alwaysApplyname, description (plus optional fields)
When it appliesAlways; when a file matching globs is in context; when the agent judges the description relevant; or when you @-mention itWhen the task matches the description, or when called by name
Other agentsCursor onlyCursor, Claude Code, Codex and others
SizeKeep under 500 linesSKILL.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.
.cursor/rules/react-components.mdc
---
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.