---
title: "Move Cursor rules to Claude Code, Copilot or Codex"
description: "Map each Cursor rule type: always-on to AGENTS.md or CLAUDE.md, glob rules to .claude/rules with paths, description rules to skills, manual rules to /commands."
image: "https://bombos.ai/assets/og-en-v2.png"
---

# How do you move Cursor rules to Claude Code, Copilot or Codex?

Short answer

Map by rule type. Always Apply rules go to AGENTS.md or CLAUDE.md, glob rules to .claude/rules/ with a paths field (or .github/instructions with applyTo for Copilot), Apply Intelligently rules become skills, and Apply Manually rules become skills you call with /name. Cursor also reads .claude/skills and CLAUDE.md, so one set can serve both tools.

*Piet Baudoin · published November 17, 2026 · November 17, 2026*

## Map by rule type, not by file

A `.cursor/rules` folder holds four kinds of rules that only look alike. The trick in moving them is to sort them by mode first, because each mode has a different home in the other tools:

| Cursor rule | Claude Code | GitHub Copilot | Codex |
| --- | --- | --- | --- |
| Always Apply | `CLAUDE.md`, or a file in `.claude/rules/` without `paths` | `.github/copilot-instructions.md` | `AGENTS.md` |
| Apply to Specific Files (`globs`) | `.claude/rules/name.md` with `paths:` | `.github/instructions/name.instructions.md` with `applyTo:` | A nested `AGENTS.md` in that folder |
| Apply Intelligently (`description`) | A skill in `.claude/skills/name/SKILL.md` | An Agent Skill with a description | An Agent Skill with a description |
| Apply Manually (@-mention) | A skill with `disable-model-invocation: true`, run as `/name` | Invoke an installed skill explicitly; controls depend on the client | Invoke an installed skill explicitly with `$name` |
| User Rules | `~/.claude/CLAUDE.md` or `~/.claude/rules/` | Not covered here | `AGENTS.md` in `~/.codex` |
| `AGENTS.md` | Read directly, or imported with `@AGENTS.md` | Read by Copilot’s agents | Read natively |

Two notes on the Copilot column. Path-specific instruction files with `applyTo` are, on GitHub.com, only supported for Copilot cloud agent and Copilot code review. And for Codex a nested `AGENTS.md` is a folder-level approximation of globs, not a file-type filter: Codex reads the files from the project root down to the directory it works in, and later files override earlier ones.

## The move, step by step

1.  **Sort your rules.** Open each `.mdc` file and note its mode: `alwaysApply: true`, `globs`, only a `description`, or none of these.
2.  **Shared always-on rules to `AGENTS.md`.** This is the one file Cursor, Codex and Copilot’s agents read, and Claude Code reads it too. If the repository also has a `CLAUDE.md`, Claude Code reads only the `CLAUDE.md` by default, so add the line `@AGENTS.md` to it.
3.  **Glob rules to `.claude/rules/`.** Rewrite the frontmatter: `globs: src/api/**/*.ts` becomes a `paths:` list. A path-scoped rule loads when Claude reads or edits a matching file. For Copilot, make the same rule a `.instructions.md` file with `applyTo`.
4.  **Description rules to skills.** Make a folder `.claude/skills/<name>/` with a `SKILL.md`. The `description` field does the same job as in Cursor: it is what the agent reads to decide whether to load the skill. The body only loads when used, so long procedures cost little.
5.  **Manual rules to commands.** Same as step 4, plus `disable-model-invocation: true`, so the skill runs only when someone types `/name`.
6.  **User Rules by hand.** They are stored on your Cursor account, not as files. Copy the text into `~/.claude/CLAUDE.md`, and for Codex into `~/.codex/AGENTS.md`.
7.  **Test.** Run `/memory` in Claude Code to list and open your instruction files, then ask Claude to read a file that should trigger a path rule and check that the rule is followed.

Cursor’s `/migrate-to-skills` command can help with step 4: it turns Apply Intelligently rules into skills in `.cursor/skills/`. It skips always-on rules, glob rules and User Rules. Move the output to `.claude/skills/` so both tools find it.

## The common mistake: copying the frontmatter along

The most common failure is copying `.mdc` files into `.claude/rules/` and renaming them. Claude Code reads exactly one field from a rule, `paths`; every other field, including `globs`, `alwaysApply` and `description`, is ignored without an error. A rule without `paths` loads in every session. So ten carefully scoped Cursor rules silently become ten always-on rules, and the context fills up. Rewrite `globs` as `paths`, and turn description rules into skills instead of rules.

The reverse surprise is pleasant: you may not need two copies. Cursor reads `CLAUDE.md` and always applies it, and it loads skills from `.claude/skills/` for compatibility. Skills in both tools also accept a `paths` field to limit when they are surfaced. A repository with `AGENTS.md`, a short `CLAUDE.md` that imports it, and skills in `.claude/skills/` serves Cursor and Claude Code from one set of files. Only glob-scoped rules still need a form per tool.

For the plain question of what belongs in `AGENTS.md` versus Cursor rules, see [Cursor rules vs skills](https://bombos.ai/en/questions/cursor/cursor-rules-vs-skills/) and [What is AGENTS.md](https://bombos.ai/en/questions/codex/what-is-agents-md-and-how-does-codex-read-it/).

## What this means for a team

Most teams do not switch tools at once; one developer tries Claude Code while the rest stay in Cursor, someone else uses Copilot. Every rule that exists in only one tool’s format is a rule the others do not get. Moving to the shared formats, `AGENTS.md` and Agent Skills, is less about migration and more about making the team’s agreements tool-independent. What does not move are the things neither format holds: your Cursor chat history, and anything Agent learned that was never written down.

## Where Bombos fits

Converting rules between formats keeps written instructions in step, but each tool still keeps its own context. Bombos is a plugin that gives every AI tool your team uses, Cursor, Claude Code, Copilot, Codex and your own agents, one shared memory with team knowledge and rules learned from corrections, traceable, in the cloud or on your own server. One developer can try it first while switching tools, so the context comes along.

## Related questions

Can I just rename my .mdc files to .md and drop them in .claude/rules?

They will load, but not as you expect. Claude Code reads only the paths field from a rule and ignores other fields, including globs and alwaysApply. A rule without paths loads in every session, so your scoped rules become always-on until you rewrite globs as paths.

Does Claude Code read AGENTS.md?

Yes, from v2.1.277, but by default only when there is no CLAUDE.md or CLAUDE.local.md in your working directory or above it. If you have both, put @AGENTS.md in your CLAUDE.md.

Do Claude skills work in Cursor?

Cursor loads skills from .claude/skills/ and ~/.claude/skills/ for compatibility, next to its own .cursor/skills/ and .agents/skills/. Both tools follow the Agent Skills format with a SKILL.md and a description.

Where do my Cursor User Rules go?

In Claude Code, personal instructions for all projects go in ~/.claude/CLAUDE.md or ~/.claude/rules/. In Codex, the global file is AGENTS.md in ~/.codex. Cursor User Rules are not files, so copy them by hand.

## Sources

1.  [Cursor docs: Rules](https://cursor.com/docs/context/rules)
2.  [Cursor docs: Agent Skills](https://cursor.com/docs/context/skills)
3.  [Claude Code docs: How Claude remembers your project](https://code.claude.com/docs/en/memory)
4.  [Claude Code docs: Skills](https://code.claude.com/docs/en/skills)
5.  [GitHub Docs: Adding repository custom instructions for Copilot](https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions)
6.  [OpenAI Codex docs: AGENTS.md](https://learn.chatgpt.com/docs/agent-configuration/agents-md)
7.  [GitHub Docs: Adding agent skills for Copilot](https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/add-skills)
8.  [OpenAI Codex docs: Skills and plugins](https://learn.chatgpt.com/docs/skills-and-plugins)

## What does your AI forget?

1.  01You tell us which AI you use and where it keeps starting over.
2.  02We show what a shared memory changes there, on your own examples.
3.  03You keep the plan, with or without Bombos.

![Piet Baudoin](https://bombos.ai/assets/team/piet-klein.jpg)

**Piet Baudoin**You talk to Piet, from the Bombos teamDutch team from Utrecht and Nijmegen · data in Europe

## More questions about Cursor

-   [Cursor rules vs skills: what is the difference and when do you use each?](https://bombos.ai/en/questions/cursor/cursor-rules-vs-skills/)
-   [How do Cursor Bugbot rules work?](https://bombos.ai/en/questions/cursor/cursor-bugbot-rules/)
-   [How do you share context and team rules across a team in Cursor?](https://bombos.ai/en/questions/cursor/share-cursor-context-with-team/)
-   [Why is Cursor ignoring my rules?](https://bombos.ai/en/questions/cursor/why-cursor-ignores-rules/)
-   [How do you set Cursor rules that apply to every project?](https://bombos.ai/en/questions/cursor/cursor-global-user-rules/)
-   [How do you use Cursor rules (.cursor/rules) and which rule type should you pick?](https://bombos.ai/en/questions/cursor/how-to-use-cursor-rules/)
-   [Did Cursor remove Memories, and how do you keep memory across sessions now?](https://bombos.ai/en/questions/cursor/cursor-memory-removed/)
-   [How much does Cursor cost for teams in 2026?](https://bombos.ai/en/questions/cursor/cursor-pricing-for-teams/)

[All questions about Cursor →](https://bombos.ai/en/questions/cursor/)


---

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","url":"https://bombos.ai/","logo":"https://bombos.ai/assets/bombos-bee.png","description":"Bombos is the memory layer under every AI your team uses. One shared memory for Claude, ChatGPT, Copilot, Cursor and your own agents, that learns how you work.","sameAs":["https://www.linkedin.com/company/bombos-ai","https://www.youtube.com/@truebombos","https://www.instagram.com/truebombos/","https://bsky.app/profile/bombostrue.bsky.social","https://www.threads.com/@truebombos","https://mastodon.social/@Bombos","https://www.tiktok.com/@truebombos","https://t.me/truebombos","https://www.pinterest.com/truebombos/","https://github.com/bombos-ai","https://linktr.ee/bombos.ai","https://bombosai.substack.com","https://hashnode.com/@bombosai","https://hackernoon.com/u/bombos","https://dev.to/bombos"],"email":"info@bombos.ai","areaServed":["NL","Europe"],"knowsLanguage":["nl","en"],"contactPoint":{"@type":"ContactPoint","email":"info@bombos.ai","contactType":"sales","url":"https://bombos.ai/en/contact/","availableLanguage":["nl","en"]}},{"@type":"WebSite","@id":"https://bombos.ai/#website","name":"Bombos","url":"https://bombos.ai/","inLanguage":["nl-NL","en"],"publisher":{"@id":"https://bombos.ai/#organization"}}]}

{"@context":"https://schema.org","@type":"Article","headline":"How do you move Cursor rules to Claude Code, Copilot or Codex?","description":"Map each Cursor rule type: always-on to AGENTS.md or CLAUDE.md, glob rules to .claude/rules with paths, description rules to skills, manual rules to /commands.","abstract":"Map by rule type. Always Apply rules go to AGENTS.md or CLAUDE.md, glob rules to .claude/rules/ with a paths field (or .github/instructions with applyTo for Copilot), Apply Intelligently rules become skills, and Apply Manually rules become skills you call with /name. Cursor also reads .claude/skills and CLAUDE.md, so one set can serve both tools.","datePublished":"2026-11-17T00:00:00.000Z","dateModified":"2026-11-17T00:00:00.000Z","author":{"@type":"Person","name":"Piet Baudoin"},"publisher":{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","logo":{"@type":"ImageObject","url":"https://bombos.ai/assets/bombos-bee.png"}},"image":"https://bombos.ai/assets/og-en-v2.png","mainEntityOfPage":"https://bombos.ai/en/questions/cursor/cursor-rules-in-claude-code/","inLanguage":"en-US","isPartOf":{"@type":"CollectionPage","name":"Cursor","url":"https://bombos.ai/en/questions/cursor/"},"citation":[{"@type":"CreativeWork","name":"Cursor docs: Rules","url":"https://cursor.com/docs/context/rules"},{"@type":"CreativeWork","name":"Cursor docs: Agent Skills","url":"https://cursor.com/docs/context/skills"},{"@type":"CreativeWork","name":"Claude Code docs: How Claude remembers your project","url":"https://code.claude.com/docs/en/memory"},{"@type":"CreativeWork","name":"Claude Code docs: Skills","url":"https://code.claude.com/docs/en/skills"},{"@type":"CreativeWork","name":"GitHub Docs: Adding repository custom instructions for Copilot","url":"https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions"},{"@type":"CreativeWork","name":"OpenAI Codex docs: AGENTS.md","url":"https://learn.chatgpt.com/docs/agent-configuration/agents-md"},{"@type":"CreativeWork","name":"GitHub Docs: Adding agent skills for Copilot","url":"https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/add-skills"},{"@type":"CreativeWork","name":"OpenAI Codex docs: Skills and plugins","url":"https://learn.chatgpt.com/docs/skills-and-plugins"}]}

{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Bombos","item":"https://bombos.ai/en/"},{"@type":"ListItem","position":2,"name":"Questions","item":"https://bombos.ai/en/questions/"},{"@type":"ListItem","position":3,"name":"Cursor","item":"https://bombos.ai/en/questions/cursor/"},{"@type":"ListItem","position":4,"name":"How do you move Cursor rules to Claude Code, Copilot or Codex?","item":"https://bombos.ai/en/questions/cursor/cursor-rules-in-claude-code/"}]}

{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Can I just rename my .mdc files to .md and drop them in .claude/rules?","acceptedAnswer":{"@type":"Answer","text":"They will load, but not as you expect. Claude Code reads only the paths field from a rule and ignores other fields, including globs and alwaysApply. A rule without paths loads in every session, so your scoped rules become always-on until you rewrite globs as paths."}},{"@type":"Question","name":"Does Claude Code read AGENTS.md?","acceptedAnswer":{"@type":"Answer","text":"Yes, from v2.1.277, but by default only when there is no CLAUDE.md or CLAUDE.local.md in your working directory or above it. If you have both, put @AGENTS.md in your CLAUDE.md."}},{"@type":"Question","name":"Do Claude skills work in Cursor?","acceptedAnswer":{"@type":"Answer","text":"Cursor loads skills from .claude/skills/ and ~/.claude/skills/ for compatibility, next to its own .cursor/skills/ and .agents/skills/. Both tools follow the Agent Skills format with a SKILL.md and a description."}},{"@type":"Question","name":"Where do my Cursor User Rules go?","acceptedAnswer":{"@type":"Answer","text":"In Claude Code, personal instructions for all projects go in ~/.claude/CLAUDE.md or ~/.claude/rules/. In Codex, the global file is AGENTS.md in ~/.codex. Cursor User Rules are not files, so copy them by hand."}}]}
```
