Rules files and AGENTS.md load into every session, or every session that touches certain files. A skill loads only when a request matches it. Moving the right parts out of the first group and into skills cuts what the agent reads on every request and gives those parts a name you can call. Moving the wrong parts breaks conventions the agent needs every time.
This guide covers what to convert, how the fields map, and how to check the result.
What should stay where it is
Keep anything the agent needs on every task:
These are facts, not procedures. Claude Code's docs put it as: create a skill "when a section of CLAUDE.md has grown into a procedure rather than a fact" (Claude Code skills docs).
Cursor draws the same line in code. Its /migrate-to-skills command does not touch rules with alwaysApply: true or with globs, and it skips User Rules "since they are not stored on the file system" (Cursor: Agent Skills).
What should become a skill
Let Cursor do the first pass
In Cursor, type /migrate-to-skills in Agent chat. The docs say it was added in Cursor 2.4 and that it "helps you convert existing dynamic rules and slash commands to skills". Review the generated skills in .cursor/skills/ before you commit them. Then run them through the validator, because a rule's description was written to be read by a person picking rules, and often it doesn't say when to use it.
Convert by hand
Here's a Cursor rule that should be a skill:
---
description: Database migrations
alwaysApply: false
---
When adding a migration:
- create it with `pnpm db:new <name>`
- never edit a migration that has been merged
- run `pnpm db:check` before committingAnd the same content as .agents/skills/add-migration/SKILL.md:
---
name: add-migration
description: Creates and checks a database migration with the project's db scripts. Use when the user asks to add, change or roll back a database table, column or index.
---
# Add a migration
1. Create the file with `pnpm db:new <short-name>`.
2. Write the change and its rollback in the new file.
3. Run `pnpm db:check` and fix anything it reports.
4. Never edit a migration that is already on main. Add a new one instead.
## Example
"Add an index on orders.created_at" becomes `pnpm db:new add-orders-created-at-index` with one `CREATE INDEX` and one `DROP INDEX`.The field mapping:
| Cursor rule | SKILL.md |
|---|---|
file name (database.mdc) | folder name, and the same string in name |
description | description, rewritten to say what the skill does and when to use it |
globs | paths (Cursor and Claude Code skills both support it) |
alwaysApply: true | no skill: keep it as a rule or move it to AGENTS.md |
| body | body, as numbered steps with an example |
Three details catch people out.
The description has to change. "Database migrations" was enough for a rule list. A skill's description is matched against what the user types, so it should name the result and the requests that call for it. The validator flags descriptions with no "Use when" and ones that are too short.
globs is legacy in skills. Cursor says it's "still accepted as a fallback for older skills, but new skills should use paths". The validator reports it as legacy globs.
Referenced files work differently. A Cursor rule can point at a file, but Cursor notes that "The file's contents are not inlined into the prompt". A skill can bundle the file inside its own folder, in references/ or scripts/, and link to it from SKILL.md with a relative path so the agent opens it when needed. Links that point outside the skill folder fail the linked file check, since the folder may be copied somewhere else on install.
From AGENTS.md
AGENTS.md has no frontmatter, so there's nothing to map. For each section you move:
The .agents/skills/ folder is read by both Codex and Cursor. For Claude Code, add a symlink at .claude/skills/cut-release; Cursor reads .claude/skills/ as well. The create-a-skill guide has the full folder list for each agent.
Check the result
Run the validator over the whole folder:
npx -p @skillland/validator skillland check .agents/skillsIt checks every SKILL.md below that path against the validator rules, each one taken from the spec or an agent's docs. Then try a request that should load each skill, and one that shouldn't, to see that the descriptions match the way you expect.