Home / Compare / Cursor rules vs Claude skills

Cursor rules vs Claude Code skills

Both are markdown. Both shape how an agent behaves. They are not interchangeable.

The mental model

Rule: always-on context. Skill: on-demand procedure. The two layer cleanly.

Side-by-side

.cursorrulesSKILL.md
ToolCursor onlyClaude Code (and other tools that adopt the spec)
Loads whenEvery promptWhen the agent decides the task fits the skill's description
Length norms50–300 lines20–200 lines + optional bundled scripts
Holds codeRare; mostly rulesYes — bundled scripts/, examples, output schemas
Best forRepo-wide style + workflowReusable procedures across repos

When to write a Cursor rule

When to write a Claude skill

The description-line trick

The single most underrated lever in SKILL.md authoring: the description field. It's how Claude Code decides whether to load the skill at all. A vague description ("for testing") gets ignored. A specific description with example triggers ("Use when writing or fixing tests for the test suite under tests/") gets loaded reliably. Three rules:

  1. Lead with the trigger condition.
  2. List explicit phrases or filenames that should fire it.
  3. Keep it under 200 chars.

If you've never had to think about whether your skill loads, your descriptions are fine. If you find yourself manually invoking skills, fix the descriptions first.

Worked example: bug repro

"Make a minimal reproduction of bug X." This is a procedure. Skill, not rule.

You wouldn't put this in .cursorrules. It's not always-on; it's task-specific.

Browse MDs

Last updated: 2026-04-25.