Versus · AI tools

Cursor rules vs skills

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • a rule for standing instructions: coding style, project conventions, "always use pnpm", file-specific patterns.
  • a skill for a repeatable task with steps and maybe a script: releasing, writing a migration, generating a component.

Compared here

  • 01Cursor rules
  • 02Cursor skills

Short answer

Rules tell the agent how to behave; skills teach it how to do a specific job. Project rules are .mdc files in .cursor/rules with three frontmatter fields (description, globs, alwaysApply) and four modes: always on, attached by file pattern, picked by the agent, or manual. Skills are folders with a SKILL.md file (plus optional scripts, references and assets) in .cursor/skills or .agents/skills, and the agent loads them when relevant or when you type /skill-name. From the official docs, which cursor.com now redirects to docs.grok.com, read 4 December 2026.

Use a rule for standing instructions: coding style, project conventions, "always use pnpm", file-specific patterns. Use a skill for a repeatable task with steps and maybe a script: releasing, writing a migration, generating a component. The docs' own migration tool turns agent-selected rules into skills and leaves always-on and glob rules as rules.

See Grok Build plans

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

From the Grok Build (formerly Cursor) docs pages on Rules and Skills, read 4 December 2026. Cursor's docs URLs redirect to docs.grok.com.
RulesSkills
What it isInstructions added to the agent's contextA portable package teaching a domain-specific task
Where it lives.cursor/rules (project), Customize settings (user), dashboard (team), AGENTS.md.cursor/skills or .agents/skills (project), ~/.cursor/skills or ~/.agents/skills (user); also reads .claude/skills and .codex/skills
File format.mdc file with frontmatter; plain .md in .cursor/rules is ignoredA folder with SKILL.md, plus optional scripts/, references/, assets/
Key fieldsdescription, globs, alwaysApplyname, description (required); paths, disable-model-invocation, icon, color, metadata
When it loadsAlways, by file pattern, when the agent judges it relevant, or on @-mentionWhen the agent judges it relevant, or when you type /skill-name
Can run codeNo, text instructionsYes, via scripts referenced from SKILL.md
Size adviceKeep rules under 500 linesKeep SKILL.md focused; move detail to references/

Money talk first: nothing to sell here, really. This is a how-it-works page about two features inside the same editor. If you buy a Grok Build plan through our link, we may earn, and that changes nothing below. Everything is from the official Rules and Skills docs, read on 4 December 2026. We did not benchmark which one the agent follows "better"; that depends on your prompts and code.

A note on names: Cursor is now run by Grok Build, and cursor.com docs links redirect to docs.grok.com. The features, folders and file names still say "cursor", so this page does too.

The one-line difference

  • Rules answer "how should the agent behave in this project?"
  • Skills answer "how does the agent do this particular job?"

A rule says "use TypeScript strict mode and named exports". A skill says "here is how we cut a release: bump the version, update the changelog, run this script, open a PR with this template".

Rules, in detail

From the Rules docs, there are four kinds:

  • Project rules: "Project rules live in .cursor/rules as .mdc files and are version-controlled."
  • User rules: your global preferences, set in Customize, Rules, applied across all projects.
  • Team rules: managed from the dashboard on Team and Enterprise plans; admins can enforce them.
  • AGENTS.md: plain markdown instructions with no metadata, in the project root or subfolders. Nested files combine with their parents, and the more specific one wins.

The format trap: the docs warn that "a plain .md file in .cursor/rules is ignored by the rules system". If your rule does nothing, check it is .mdc.

Three frontmatter fields decide when a project rule applies: description, globs and alwaysApply. Together they give four modes:

ModeHow to set itWhen it is included
Always ApplyalwaysApply: trueEvery chat session; globs and description ignored
By file patternglobs: src/api/**/*.tsWhen a matching file is in context
Agent-selecteddescription only, no globsWhen the agent judges it relevant
ManualNo description, no globsOnly when you @-mention it, like @my-rule

Precedence: team rules, then project rules, then user rules. All applicable rules merge, and earlier sources win when they conflict.

Best practices from the docs: keep rules under 500 lines, split big ones into smaller composable rules, include concrete examples, and reference files rather than pasting their contents. Do not paste whole style guides (use a linter) or explain common tools the agent already knows.

Skills, in detail

The Skills docs define a skill as "a portable, version-controlled package that teaches agents how to perform domain-specific tasks".

Where skills live:

  • Project: .cursor/skills/ or .agents/skills/
  • User (all projects): ~/.cursor/skills/ or ~/.agents/skills/
  • For compatibility, it also loads .claude/skills/, .codex/skills/ and their home-folder versions.

Each skill is a folder with a SKILL.md file. Folders are scanned recursively, and a .cursor/skills/ folder inside a subdirectory scopes those skills to that part of the repo.

SKILL.md frontmatter:

  • name (required): lowercase letters, numbers and hyphens, matching the folder name.
  • description (required): what the skill does and when to use it. This is what the agent reads to decide.
  • paths: glob patterns limiting the skill to matching files.
  • disable-model-invocation: set true and the skill only runs when you call it with /skill-name.
  • icon, color: styling when used as a Custom Mode.
  • metadata: any extra key-value data.

Optional folders: scripts/ for executable code, references/ for documentation loaded on demand, assets/ for templates, images and data. Reference scripts from SKILL.md with paths relative to the skill folder, and keep SKILL.md itself short.

How it runs: the agent sees the list of available skills and "decides when they are relevant based on context". You can also type / in Agent chat and pick a skill for one message, or use it as a Custom Mode to keep it active for the session.

Cloud agents: user-level skills in ~/.cursor/skills/ stay on your machine unless you turn on Sync Skills for Cloud Agents; ~/.agents/skills/ is not synced.

When to use a rule vs a skill

Use a rule when:

  • It should apply all the time ("this is a Next.js app, use the app router").
  • It applies whenever certain files are open ("in migrations/, never edit old files").
  • It is a short convention, not a procedure.
  • You want it enforced across a team (team rules).

Use a skill when:

  • It is a task with steps you repeat: releases, new endpoints, database migrations, writing tests in your house style.
  • It needs a script or a template to do the job well.
  • It needs long reference material that would waste context if loaded every time.
  • You want to call it on demand with a slash command.
  • You want it portable: the same SKILL.md folder works in tools that read .claude/skills or .agents/skills.

A good rule of thumb: if you would write it on a sticky note on the monitor, it is a rule. If you would write it as a checklist in the wiki, it is a skill.

A quick example

Rule (.cursor/rules/api-style.mdc):

---
description: Conventions for API route handlers
globs: src/api/**/*.ts
alwaysApply: false
---
- Validate input with zod at the top of every handler.
- Return errors as { error: string, code: string }.
- Never log request bodies.

Skill (.cursor/skills/new-endpoint/SKILL.md):

---
name: new-endpoint
description: Create a new API endpoint with route, schema, test and docs entry. Use when asked to add an endpoint.
---
1. Run scripts/scaffold.sh <name> to create the files.
2. Fill the zod schema in src/api/<name>/schema.ts.
3. Write tests following references/testing.md.
4. Add the endpoint to docs/api.md.

The rule keeps every handler consistent. The skill does the whole job when asked.

Migrating rules to skills

The docs include a built-in /migrate-to-skills command (from version 2.4). It converts:

  • Agent-selected rules (alwaysApply false or unset, no globs) into skills.
  • User and workspace slash commands into skills with disable-model-invocation: true.

It does not migrate always-on rules, glob rules or user rules, because those have explicit triggers that "differ from skill behavior". So rules are not going away; the tool just moves the fuzzy "use this when relevant" ones to the place they fit better. Review everything it generates in .cursor/skills/.

Common mistakes

  • Using .md instead of .mdc for project rules. Ignored, silently.
  • One giant always-on rule. It eats context in every chat. Split it, and move procedures into skills.
  • Vague skill descriptions. The agent picks skills by description; "helper stuff" will never be chosen.
  • Skill folder and name not matching. The docs require them to match.

Using Claude Code as well? Our agents vs Claude skills page covers how skills work there, and since the docs say .claude/skills is read here too, one skill folder can serve both. Weighing plans, see Claude Pro vs Cursor Pro and Cursor alternatives.

Questions people ask

What is the difference between Cursor rules and skills?

Rules are instructions the agent should follow, either always or when certain files are open. Skills are packaged playbooks for a task, a SKILL.md file plus optional scripts and reference docs, that the agent loads only when relevant or when you call them with a slash. Rules shape behaviour; skills add capabilities.

Are Cursor rules deprecated in favour of skills?

Not according to the docs we read. The Rules page still documents project, user and team rules plus AGENTS.md. The Skills page's migration tool converts only agent-selected rules into skills, and says rules with alwaysApply or globs have explicit triggers that differ from skill behaviour, so they stay rules.

Where do I put Cursor skills?

In a folder per skill, each with a SKILL.md file, under .cursor/skills or .agents/skills in your project, or ~/.cursor/skills or ~/.agents/skills for all projects. For compatibility the docs say it also loads .claude/skills and .codex/skills. The skill's name field must match its folder name.

Why is my Cursor rule being ignored?

Check the file extension first: the docs say a plain .md file in .cursor/rules is ignored; project rules must be .mdc. Then check the mode. A rule with only a description is applied only when the agent judges it relevant, and a rule with no description or globs is manual and needs an @-mention.

How do I convert Cursor rules to skills?

Type /migrate-to-skills in Agent chat, available from version 2.4 per the docs. It converts agent-selected rules (no alwaysApply, no globs) into skills, and user or workspace slash commands into skills with disable-model-invocation set to true. Always-on rules, glob rules and user rules are not migrated. Review the results in .cursor/skills.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Grok Build docs (formerly Cursor): Rules, checked 4 Dec 2026
  2. Grok Build docs (formerly Cursor): Agent Skills, checked 4 Dec 2026
  3. Cursor docs URL (redirects to docs.grok.com), checked 4 Dec 2026