Cursor Agent Skills Migration To Claude Code: 2026 Guide
The current mattpocock/skills listing reports 51 skills and 16.5M total installs. That makes portability a real maintenance issue, not a theoretical one. Cursor Agent Skills migration to Claude Code is feasible, but the safest winner is a repository-managed file set stored in .claude/skills/, with both agents verified against that one source. Do not install the Claude Code plugin and the skills.sh copy at the same time.
Last updated August 19, 2026. Directory behavior, installation commands, and the duplicate-install warning were checked against the Cursor Agent Skills documentation, the Claude Code Skills documentation, the mattpocock/skills README, and the current skills.sh project page.
This guide is for developers who installed skills in Cursor through skills.sh or npx, then started considering Claude Code without losing local edits. It also fits small teams that need Cursor and Claude Code to use one controlled skill library on a local or remote Mac.
The ownership decision
The migration becomes difficult when the same skill exists in several places and nobody can say which copy is authoritative. A Cursor installation can leave files under .cursor/skills/, while Claude Code can discover project skills under .claude/skills/, personal skills under ~/.claude/skills/, and plugin-provided skills from an enabled plugin. Claude Code documents these locations and applies different precedence rules when names collide. See the official Claude Code skill locations and conflict rules.
For a developer preparing to leave Cursor, the practical choice is:
- Repository-managed files: Best when the team has custom edits, needs code review, or wants predictable rollback. The project owns the files, and updates happen through Git.
- Claude Code plugin: Best when the team wants the publisher’s complete managed bundle and does not intend to customize individual skills. The plugin is read-only from the project’s point of view and updates under the plugin model.
- Separate copies in both tools: Avoid this unless the copies are intentionally different. It creates two update paths and makes it easy to invoke an unexpected version.
The mattpocock/skills README explicitly describes the plugin as a managed, read-only bundle and the skills.sh path as editable project files. It also says to choose one because installing both leaves each skill twice. The repository installation section is the controlling source for that decision.
Decision rule: If a developer has changed a
SKILL.md, added scripts, or wants reviewable updates, keep the editable file version. If the files must remain publisher-managed and untouched, use the plugin. Do not use both to solve portability.
The shared source should normally be the repository directory:
.claude/
└── skills/
└── code-review/
├── SKILL.md
├── scripts/
├── references/
└── templates/
Claude Code requires SKILL.md as the entry point. Its documentation also shows that supporting files such as templates, examples, references, and scripts remain part of the skill directory. A migration that copies only the Markdown file can silently remove the workflow’s executable or reference layer.
The pre-migration inventory
Before changing directories, create a short inventory for every skill that matters. This is where most failed migrations are prevented. The goal is not to record every line of every file. The goal is to identify ownership, dependencies, and behavior that may differ between agents.
For each selected skill, record:
- The directory name and the displayed skill name.
- The complete path to
SKILL.md. - YAML frontmatter fields, especially
name,description,disable-model-invocation,allowed-tools, and any custom metadata. - Scripts referenced from the Markdown instructions.
- Templates, examples, reference documents, and generated output locations.
- Local edits that do not exist in the upstream repository.
- Commands or slash invocations used by the current Cursor workflow.
- Any environment variable, shell command, credential, or file permission assumed by the skill.
- Whether the skill is meant to be automatically selected or explicitly invoked.
The description field matters because agents use it to decide when a skill is relevant. The disable-model-invocation: true field matters because it prevents automatic model invocation while preserving explicit invocation behavior. The Claude Code frontmatter reference documents these controls and the difference between display metadata and invocation behavior.
A useful inventory command from the repository root is:
find .cursor/skills -type f -print
Then inspect each skill directory rather than assuming every folder has the same structure:
find .cursor/skills/code-review -maxdepth 3 -type f -print
sed -n '1,80p' .cursor/skills/code-review/SKILL.md
Do not treat a successful file listing as proof that the skill is portable. A script may use a relative path that changes when the agent’s working directory changes. A template may be referenced with an incorrect filename. A frontmatter field may be understood by one agent and ignored by another.
Create a Git checkpoint before copying anything:
git status --short
git add .cursor/skills
git commit -m "Checkpoint Cursor skills before migration"
If the skills are not yet tracked, make a separate archive before the commit:
tar -czf cursor-skills-before-migration.tar.gz .cursor/skills
The checkpoint gives the team a known rollback point. It also makes later comparison easier when an installer changes files or when an upstream update overwrites a local edit.
The shared directory layout
For project-level portability, copy each complete skill folder into .claude/skills/. Do not flatten the directory and do not rename SKILL.md.
mkdir -p .claude/skills
cp -R .cursor/skills/code-review .claude/skills/
cp -R .cursor/skills/tdd .claude/skills/
A safer migration copies one skill at a time and compares the result:
diff -ru .cursor/skills/code-review .claude/skills/code-review
If the repository already has .claude/skills/, merge carefully. A same-name folder may represent an existing Claude Code customization. Do not overwrite it without comparing both versions.
Claude Code’s project location is .claude/skills/<skill-name>/SKILL.md. The official directory guide also distinguishes project skills from personal and plugin skills. This distinction matters for teams: a project copy follows the repository, while a personal copy follows an individual account or machine.
Cursor’s native location remains .cursor/skills/<skill-name>/SKILL.md, while its documented compatible locations include the shared Agent Skills layout. The Cursor documentation should be checked again if the product changes its supported roots or command behavior.
The recommended ownership pattern is therefore:
repository/
├── .claude/
│ └── skills/
│ ├── code-review/
│ └── tdd/
├── .cursor/
│ └── rules/
└── src/
In this layout, .claude/skills/ is the canonical editable source. Cursor can read the compatible skill directory, while Claude Code reads its native project path. The .cursor/skills/ directory should not contain a second copy unless a specific Cursor-only customization is intentional and documented.
The installer route
The skills.sh route is useful when the developer wants the installer to select skills and target agents. The documented command is:
npx skills@latest add mattpocock/skills
The installer can prompt for the desired skills and coding agents. The current skills.sh project page displays the install entry point, while the mattpocock/skills README explains that the files are written into the repository as ordinary editable files.
Use this route when:
- The repository should own the skill files.
- The team wants to select only part of the collection.
- Custom changes must be visible in Git.
- Updates should happen when the team chooses.
- The same files must be inspected by Cursor and Claude Code.
After installation, inspect the generated paths instead of assuming the installer used the desired location:
find . -path "*/skills/*/SKILL.md" -print
git status --short
If the installer creates agent-specific directories, move or consolidate the chosen source deliberately. Do not leave a Cursor copy, a Claude Code copy, and a shared copy active at the same time.
The repository README also documents:
npx skills update
Use that command only after checking the project’s local modifications and reviewing the resulting Git diff. An automated update is not automatically safer than a manual update. It can change instructions, scripts, or references that affect production workflows.
The first Claude Code session
Start Claude Code from the repository root so the project-level skill directory is within the session’s discovery path:
claude
If .claude/skills/ was created after the session began, restart Claude Code. The official documentation states that Claude Code watches existing skill directories for changes, but a newly created top-level skills directory requires a restart before it is watched.
Begin with discovery, not a destructive command. Use a harmless prompt that asks Claude Code to identify the available skill, or invoke a known skill explicitly:
List the project skills available in .claude/skills and explain how code-review would be invoked.
Then test the slash command:
/code-review
The exact command comes from the skill directory name for project skills. Claude Code documents that a project skill such as .claude/skills/deploy-staging/SKILL.md becomes /deploy-staging. A frontmatter name value can affect display behavior, but the directory name remains important for project-level invocation.
Test automatic selection separately. Use a prompt that clearly matches the skill description but does not mention the skill name. For example:
Review the uncommitted changes for correctness, security risks, and missing tests. Do not edit files.
A successful migration has two separate results:
- Claude Code can discover the skill.
- Claude Code can apply the skill’s instructions correctly.
File presence proves neither result by itself.
Use a non-destructive test first. Avoid running a skill that modifies files, creates tickets, changes branches, or executes shell scripts until the discovery and instruction path is confirmed.
The dual-agent acceptance checklist
Use the following checklist for every skill that will remain in production use:
- [ ] The complete skill directory was copied, including scripts, templates, references, and examples.
- [ ]
SKILL.mdexists at.claude/skills/<skill-name>/SKILL.md. - [ ] The skill directory name uses the expected lowercase and hyphenated form.
- [ ] The frontmatter contains a useful
description. - [ ] Any
disable-model-invocationsetting has been reviewed and is intentional. - [ ] Local edits have been committed or archived before migration.
- [ ] Claude Code lists or recognizes the skill after startup.
- [ ] Explicit slash invocation works without modifying files unexpectedly.
- [ ] A description-based prompt triggers the skill when automatic invocation is expected.
- [ ] Referenced scripts resolve from the repository and have the required permissions.
- [ ] References and templates open from the paths named in
SKILL.md. - [ ] Cursor still discovers the same canonical files.
- [ ] The expected output is materially the same in both agents.
- [ ] Duplicate personal, project, and plugin copies have been identified.
- [ ] A rollback commit or archive is stored where another team member can find it.
This is more reliable than testing only /skill-name. Explicit invocation can succeed even when automatic discovery is disabled. Conversely, automatic invocation can work while the slash-command menu does not show the skill because of a directory, session, or CLI-specific discovery issue.
Acceptance standard: A migration is complete only when discovery, explicit invocation, automatic selection, supporting files, and rollback have all been checked.
The duplicate-source cleanup
After the first successful Claude Code test, search for every possible source:
find . -path "*/skills/*/SKILL.md" -print
find "$HOME" -path "*/.claude/skills/*/SKILL.md" -print 2>/dev/null
find "$HOME" -path "*/.cursor/skills/*/SKILL.md" -print 2>/dev/null
Then compare names and decide which source survives. Pay particular attention to:
- A project copy under
.claude/skills/. - A Cursor copy under
.cursor/skills/. - A personal copy under
~/.claude/skills/. - A managed Claude Code plugin.
- A second installer-created copy under another agent directory.
Claude Code has documented precedence and namespacing behavior for project, personal, nested, and plugin skills. That behavior can make duplicates appear to work while the agent is actually selecting a different source than expected. A namespaced plugin command can also coexist with a project command, which may hide duplication until a user invokes the wrong form.
For mattpocock/skills, use one of these clean configurations:
Editable repository configuration
Repository .claude/skills/
Cursor reads the compatible repository files
Claude Code reads the project files
Updates are reviewed through Git
Managed plugin configuration
Claude Code plugin provides the bundle
No editable skills.sh copy for the same skills
Publisher-managed updates are accepted
Do not select the plugin merely because it is quicker to install. The plugin is the better fit only when managed updates and read-only ownership are more valuable than local customization.
The first-week maintenance loop
Treat the migration as a change to the development environment, not as a one-time file copy. During the first week, record the skill source, expected command, test prompt, output expectation, and rollback commit.
For each update:
- Pull or install changes into a temporary branch.
- Review modifications to
SKILL.md, scripts, and references. - Run the same explicit and automatic tests in Claude Code.
- Run a smaller discovery check in Cursor.
- Confirm that scripts still resolve from the repository root.
- Merge only after the expected behavior remains intact.
Claude Code recommends keeping SKILL.md under 500 lines and moving detailed references into separate files. That is a useful maintenance boundary because it keeps the entrypoint focused while allowing the agent to load supporting material when needed. The limit is documented in the Claude Code supporting files guidance.
For a remote Mac environment, add operational records to the migration note:
- Which repository contains the canonical skill source.
- Whether the environment uses a personal or project-level Claude Code directory.
- How a new session is started after a top-level directory is created.
- Where the rollback archive is stored.
- Which team member can remove a plugin or restore the previous commit.
- Whether multiple developers are sharing the same remote workspace.
A managed remote environment should not rely on one developer remembering which copy was installed. The environment handoff should include the repository path, the validation prompt, and the expected slash command.
The KuzCloud Mac user guide is the relevant next reference when the same repository must remain available in a persistent remote development environment. The KuzCloud console can be used when the team needs to inspect or manage that environment without rebuilding the local setup.
FAQ
Can Cursor Agent Skills be used by Claude Code?
Yes, when the skill follows the shared SKILL.md format and its supporting files are preserved. The safest route is to copy the complete skill directory into .claude/skills/<skill-name>/ and commit it. Do not assume that a Cursor-only wrapper, plugin command, or hidden installation path will be understood by Claude Code.
What should happen to custom edits?
Custom edits should stay in the repository-managed copy and be reviewed through Git. Do not install the managed plugin over the edited files and expect Claude Code to preserve the changes. Keep the pre-migration commit or archive until both agents pass the acceptance checklist.
Is a shared folder always better than separate folders?
A shared folder is better when the same instructions, scripts, and references should produce consistent behavior in both agents. Separate folders are justified only when the workflows intentionally differ, such as a Cursor-specific UI command or a Claude Code-only permission flow. Document that exception so a later cleanup does not delete an intentional customization.
The practical handoff decision
Leaving Cursor does not require rebuilding the skill library. It requires removing ambiguity about ownership. The repository-file route gives the strongest control for teams that edit SKILL.md, need reviewable updates, or want a reliable rollback. The plugin route is simpler for teams that want a managed bundle and accept publisher-controlled updates. The failed approach is installing both and hoping the agents resolve the difference correctly.
A local workstation may still be the right choice for one developer with stable files and no shared environment. It becomes less attractive when the repository, credentials, runtime tools, and two coding agents must stay available across machines. Local setup also makes handoff, session continuity, and rollback dependent on one computer’s state.
For temporary parallel testing, a remote Mac environment can be the cleaner option because the project files, agent configuration, session access, and rollback record can be kept together. If the requirement is only a short migration test, or if the team needs to keep Cursor and Claude Code available without rebuilding the workstation, review the KuzCloud remote Mac environment options alongside the deployment and acceptance requirements. The decision should be based on environment continuity and controlled delivery, not on adding another unmanaged skill copy.
Run Your Agent Workflows on a Remote Mac
Deploy a KuzCloud Mac to test AI coding agents in a consistent macOS environment.
Keep your projects, configuration files, and custom skills together in one persistent workspace.