From guide
Migrates configs from Cursor, Windsurf, Copilot, Continue, Aider, Cody, Codex to Claude Code. Discovers files, trims bloat, proposes and executes clean plans.
npx claudepluginhub orinachum/claude-code-guide --plugin guideThis skill is limited to using the following tools:
You are helping a developer migrate their AI coding assistant configuration to Claude Code. This is a multi-phase process: discover what they have, analyze it, propose a clean migration plan, and — only after approval — execute it.
Provides expert guidance on Anthropic's Claude Code CLI including setup, flags, CLAUDE.md optimization, hooks, MCPs, sub-agents, workflows, permissions, and troubleshooting.
Answers questions about Claude Code features like setup, best practices, automation, models, plugins, MCP, and configuration by reading reference docs.
Provides structured tutorials, templates, Mermaid diagrams, and learning path for Claude Code features: slash commands, memory, skills, subagents, MCP, hooks, plugins, checkpoints, CLI.
Share bugs, ideas, or general feedback.
You are helping a developer migrate their AI coding assistant configuration to Claude Code. This is a multi-phase process: discover what they have, analyze it, propose a clean migration plan, and — only after approval — execute it.
Key principle: don't just copy configs verbatim. Condense, deduplicate, and restructure for Claude Code's strengths. Less is more — a clean CLAUDE.md beats a bloated one.
Branch on $ARGUMENTS:
helpPresent the available commands:
| Command | What it does |
|---|---|
/guide:migrate-to-claude | Full migration: discover, analyze, plan, then pause for your approval |
/guide:migrate-to-claude scan | Discovery only — report what was found, no plan |
/guide:migrate-to-claude apply | Execute a previously presented migration plan |
/guide:migrate-to-claude help | Show this help |
scanRun Phase 1 (Discovery) only. Present the discovery table and stop. Do not analyze or propose a plan.
applyExecute the migration plan that was previously presented in this conversation. If no plan was presented yet, tell the user to run /guide:migrate-to-claude first.
Re-read the discovered source files and apply the planned changes as described in Phase 4 (Execution) and Phase 5 (Summary) below.
Run all phases in order: Discovery → Analysis → Plan → pause for approval.
Scan the project root for config files from other AI coding assistants. Use Glob for file detection, then Read to inspect contents.
| Tool | Paths |
|---|---|
| Cursor | .cursorrules, .cursor/rules/*.md, .cursor/mcp.json, .cursor/settings.json |
| Windsurf | .windsurfrules, .windsurf/rules/*.md, .windsurf/mcp.json |
| Copilot | .github/copilot-instructions.md, .github/copilot-chat.yml |
| Continue | .continue/config.json, .continue/config.yaml, .continue/rules/*.md |
| Cody | .cody/cody.json, cody.json |
| Aider | .aider.conf.yml, .aiderignore |
| Codex (OpenAI) | AGENTS.md, .codex/config.toml, .codex/AGENTS.md |
| Existing Claude Code | CLAUDE.md, CLAUDE.local.md, .claude/settings.json, .claude/settings.local.json, .mcp.json |
Also check for AGENTS.override.md and TEAM_GUIDE.md at the project root (Codex fallback filenames).
Present a formatted discovery table:
+=======================================================+
| DISCOVERY RESULTS |
+=======================================================+
| Tool Files Found Total Lines |
| -------------- ------------ ----------- |
| Cursor 3 287 |
| Copilot 1 42 |
| Codex 1 65 |
| Claude Code 1 (existing) 28 |
+=======================================================+
| Tools not found: Windsurf, Continue, Cody, Aider |
+=======================================================+
If no config files are found from any AI tool (excluding existing Claude Code configs), tell the user:
No AI coding assistant configs found in this project. If you have configs elsewhere, copy them into the project root and try again. Or use
/guide:onboardto set up Claude Code from scratch.
Then stop.
Read each discovered file. Classify every piece of content into one of these categories:
| Content type | Claude Code target |
|---|---|
| Project instructions, coding rules, conventions | CLAUDE.md (append if exists, create if not) |
| File-scoped rules (e.g., "for *.tsx files…") | .claude/rules/<name>.md with globs: frontmatter |
| MCP server configurations | .mcp.json (project scope) or claude mcp add command (local/user scope) |
| Permission or safety rules | .claude/settings.json permissions.allow / permissions.deny |
| Personal preferences (editor style, name) | CLAUDE.local.md (personal — remind user to add to .gitignore) |
| Codex AGENTS.md content | CLAUDE.md (direct 1:1 equivalent) |
| Codex config.toml MCP servers | .mcp.json or claude mcp add (same as other MCP sources) |
| Ignored file patterns (.aiderignore) | Note only — no direct equivalent in Claude Code |
| Tool-specific settings (model, temperature, sandbox) | Note only — use /model and permission modes instead |
| Tool-specific instructions ("when using Cursor…") | Drop entirely |
Apply these rules to keep the migrated config clean:
tsconfig.json, don't migrate "this is a TypeScript project." If it has package.json, don't migrate "this uses npm." Note what was dropped and why.CLAUDE.local.md, not CLAUDE.md.For each MCP server discovered in source configs:
.mcp.json at project root (project scope)claude mcp add --scope local commandclaude mcp add --scope user commandIf the project already has CLAUDE.md or .mcp.json:
## Migrated Rules heading. Never overwrite existing content..mcp.json exists: propose MERGING new servers into the existing file. Flag any duplicate server names..claude/settings.json exists: note existing permissions; propose additions only, never removals.Present the complete migration plan in a structured format. Show BOTH the summary table AND the full proposed content of each file.
+=======================================================+
| MIGRATION PLAN |
| Sources: <tools> | Target: Claude Code |
+=======================================================+
| |
| CLAUDE.md (CREATE / APPEND) |
| ───────────────────────────────────────── |
| + <description of added content> (N lines) |
| - TRIMMED: <what was dropped and why> |
| |
| .mcp.json (CREATE / MERGE) |
| ───────────────────────────────────────── |
| + <server-name> (<scope>) |
| ~ <server-name> (local scope — needs manual add) |
| |
| .claude/rules/<name>.md (CREATE) |
| ───────────────────────────────────────── |
| + File-scoped rules for <glob pattern> |
| |
| CLAUDE.local.md (CREATE) |
| ───────────────────────────────────────── |
| + Personal preferences extracted from <source> |
| |
| SKIPPED (not applicable to Claude Code) |
| ───────────────────────────────────────── |
| · <item> — <reason> |
| |
+=======================================================+
| N rules migrated | N lines trimmed | N servers added |
| Say "apply" or run /guide:migrate-to-claude apply |
+=======================================================+
After the summary table, show the exact content that will be written to each file, with any sensitive values redacted:
<YOUR_API_KEY> and suggest claude mcp add with user-provided auth insteadAfter the proposed content, show what was trimmed:
Trimmed from migration:
· 45 lines of boilerplate introductions (from .cursorrules)
· 12 lines of Cursor-specific instructions (dropped — not applicable)
· "This is a TypeScript project" (inferable from tsconfig.json)
· 3 duplicate rules consolidated into 1
Do NOT proceed to execution. Present the plan and tell the user:
Review the plan above. You can ask me to adjust anything — add, remove, or rephrase rules before applying. When you're satisfied, say "apply" or run
/guide:migrate-to-claude applyto execute.
Only run after the user explicitly confirms (says "apply", "yes", "go ahead", "do it", or runs /guide:migrate-to-claude apply).
For each planned change:
.claude/rules/ directory if needed, then Write each rule fileclaude mcp add commands for the user to run manually (cannot run these on behalf of the user)Never delete original source config files. The migration is purely additive. The user can clean up old files themselves when they're ready.
After execution, present a final summary:
+=======================================================+
| MIGRATION COMPLETE |
+=======================================================+
| Created / Modified: |
| <file> .............. <description> |
| <file> .............. <description> |
| |
| Trimmed (from originals): |
| <N> lines of boilerplate |
| <N> lines of tool-specific instructions |
| <N> duplicate rules consolidated |
| |
| Manual steps needed: |
| · <action needed, if any> |
| |
| Original configs preserved — nothing was deleted. |
| Tip: /guide:onboard for a full Claude Code intro |
+=======================================================+
Include:
/guide:onboard if the user is new to Claude Code