/sdlc-toolkit:migrate-cursorfrom sdlc-toolkit
Migrate workspace configuration, local skills, and rules from Cursor to Claude Code. Two-phase workflow: export in Cursor, import in Claude Code. Use when the user says "migrate cursor", "migrate from cursor", "import cursor config", "export cursor skills", or "switch to claude code".
Ships in sdlc-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Migrate workspace skills, rules, and configuration from a Cursor setup to Claude Code. This skill runs in two phases:
.cursor/ for local skills, rules, and config, then writes a portable .cursor-export.md file..cursor/ directly), creates .claude/, and recreates all artifacts in Claude Code format.This skill works without skills-config.yaml — it is designed to run before config exists in the target environment.
If skills-config.yaml exists in .cursor/, it will be migrated to .claude/.
.cursor/ — this is a non-destructive migration..claude/ or CLAUDE.md without explicit user confirmation..cursor-export.md already exists, ask before overwriting.Check the workspace for:
ls .cursor/skills/*.skill 2>/dev/null
ls .cursor-export.md 2>/dev/null
ls .claude/ 2>/dev/null
Determine which phase to run:
| Condition | Phase |
|---|---|
.cursor/skills/*.skill files exist | Export (Step 2) |
.cursor-export.md exists | Import (Step 5) |
.cursor/ exists but no .skill files | Direct import (Step 5, reading from .cursor/ directly) |
Neither .cursor/ nor .cursor-export.md exist | Nothing to migrate — tell the user |
If the user explicitly says "export" or "import", follow their instruction regardless of auto-detection.
Run this phase in Cursor to extract all local artifacts into a portable file.
For each .skill file in .cursor/skills/:
.skill format is a ZIP archive containing a SKILL.md and optional references/ files. Extract the SKILL.md:unzip -p "<name>.skill" "*/SKILL.md"
unzip -l "<name>.skill"
For each reference file found, extract its content with unzip -p.
If extraction fails (corrupted or unsupported format), note the filename and skip it with a warning.
.cursor/rules/*.mdc files. For each, capture:
description, alwaysApply, globs (if present)---).cursor/skills-config.yaml if it exists..cursor/settings.json for reference (note which plugins are enabled).Combine everything into .cursor-export.md at the workspace root. Use the following structure so the import phase can parse it reliably:
# Cursor Export
Generated by sdlc-toolkit migrate-cursor on <YYYY-MM-DD>.
---
## Skills
### <skill-name>
<full SKILL.md content>
#### References
##### <reference-filename>
<reference file content>
---
[repeat for each skill]
## Rules
### <rule-filename>
| Field | Value |
|-------|-------|
| Description | <from frontmatter> |
| Always apply | <yes/no> |
| Globs | <glob pattern or "none"> |
<rule markdown body>
---
[repeat for each rule]
## Config
```yaml
<full skills-config.yaml content>
```
## Settings
```json
<full settings.json content>
```
After writing, tell the user:
Export complete. Open this workspace in Claude Code and run
migrate cursorto complete the migration.
Run this phase in Claude Code to recreate all artifacts.
Determine what to read:
.cursor-export.md exists: parse it to extract skills, rules, and config sections. Use the ## Skills, ## Rules, ## Config headings as delimiters..cursor/ exists (direct import): read directly:
.cursor/skills-config.yaml.cursor/rules/*.mdc.cursor/skills/*.skill files via unzip -p. If the binary cannot be read (e.g., no unzip available), skip skills and warn the user..claude/ directory.claude/ already exists.mkdir -p .claude
.cursor/skills-config.yaml).Location: *.cursor/skills-config.yaml with Location: <workspace>/.claude/skills-config.yaml.claude/skills-config.yaml..claude/skills-config.yaml already exists, show a diff and ask before overwriting.CLAUDE.md exists at the workspace root, read its current content..mdc frontmatter format.alwaysApply: true, include it as a top-level section.globs pattern, add a note about which files it applies to.CLAUDE.md (or create the file if it doesn't exist).CLAUDE.md content before writing.For each exported skill:
CLAUDE.md.# Local Skills heading in CLAUDE.md.Keep each skill summary focused on what the agent should do — not how the original Cursor skill was structured. Adapt terminology:
.cursor/ paths → .claude/Important: Migrated skills become static instructions — they are not executable slash-command skills. For equivalent interactive behavior, recommend the user creates a proper sdlc-toolkit skill using generate-skill.
Present a migration summary.
.cursor/ contents..claude/ files or CLAUDE.md without user confirmation..cursor-export.md to .gitignore if it contains sensitive data (Slack IDs, project IDs, tokens).skills-config.yaml contains secrets or tokens, warn the user before writing.Export phase:
Export written to `.cursor-export.md`.
- Skills exported: <count> (<list of names>)
- Rules exported: <count> (<list of filenames>)
- Config: <included / not found>
Next: open this workspace in Claude Code and run `migrate cursor` to import.
Import phase:
Migration complete.
- `.claude/skills-config.yaml` — <created / updated / skipped>
- `CLAUDE.md` — <created / updated>
- Rules migrated: <count> (<list>)
- Skills migrated: <count> (<list>)
- Skipped: <list of items that could not be migrated, if any>
Tip: run `bootstrap-config` to verify and update the config for Claude Code.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vecten/sdlc-toolkit --plugin sdlc-toolkit13 skills in this plugin
/analyse-taskAnalyse a ticket from the configured PM tool, gather context from the codebase, produce a tech or non-tech plan, update the ticket, prepare questions for PM/client, send a Slack notification, and draft a client email. Use when the user says "analyse task", "analyze ticket", "plan task", "review ticket", "what does this ticket need", or provides a ticket URL/ID with analysis intent.
/bootstrap-configAuto-generate or update the skills-config.yaml file for the current workspace. Scans repos, resolves PM tool and Slack IDs, asks structured questions for gaps. Use when the user says "bootstrap config", "setup skills config", "update skills config", "initialize workspace", or when any other skill detects that skills-config.yaml is missing.
/