1---2name: agent-skills-setup3description: Use when a user wants to migrate, back up, restore, compare, or move AI-coding-agent context across Cursor, Claude Code, Codex, Cline, Copilot, Windsurf, Gemini CLI, or another supported profile, including switching computers. Handles reviewed Skills, instructions/rules, and MCP with secret redaction, preview, verification, and rollback.4license: MIT5---67# AI IDE Context Migration89## Permissions1011- `shell`: bundled offline scripts plus local read-only detection commands (git, version, mdfind). No downloads or binary installations.12- `env`: path resolution only; credential-looking values are redacted, never copied or printed.13- `file_read`: named source products, workspace tree, bundled `references/`; no probing of unlisted products.14- `file_write`: reviewed plan targets after `--yes` consent; state under `<workspace>/.agent-context-migration/`.15- `network`: denied. Every subcommand is offline; no downloads, telemetry, or remote calls.1617## Capabilities and authorization1819- `detect`, `doctor`, `inventory`, `plan`, `snapshot`, and `bundle-verify` read only named products and workspace; network access is forbidden. `snapshot` additionally writes only its explicit bundle output.20- A generic migration request authorizes planning only; separate explicit user approval (`--yes`) or explicit action verbs (apply, restore, 迁到) under `--apply-safe` authorize write.21- Save the plan, review its diff/rebuild manifest, and apply that exact file. ACB `restore` constructs a dual-side plan binding bundle sources to destination targets, supporting replayable plans (`--plan-in`) with strict TOCTOU state guards.2223## Route24251. Resolve both product profiles through [ide-registry.md](references/ide-registry.md) / [registry-v2.json](references/registry-v2.json).262. Read only [references/ides/<source>.md](references/ides/) and [references/ides/<target>.md](references/ides/).273. Load reference by need:28 - Before preview or apply: [references/migration-safety.md](references/migration-safety.md)29 - MCP objects: [references/mcp-migration.md](references/mcp-migration.md)30 - Other file objects: [references/object-migration.md](references/object-migration.md)31 - Approved apply / proof: [references/verification.md](references/verification.md)3233## Execution & Scope3435- High-level: `bash scripts/smart-ide-migration.sh migrate --source <src> --target <dst> --workspace . --objects all-portable --yes`36- Step-by-step: `plan --output <plan.json>` -> `apply <plan.json> --manifest <manifest.json> --yes` -> `verify --manifest <manifest.json>` -> `rollback --manifest <manifest.json> --yes`.37- Device handoff (ACB): `snapshot` captures portable skills/instructions/MCP with atomic staging and 1:1 manifest bindings; `bundle-verify` re-checks checksums, bindings, secrets, and signatures; `restore [--plan-only | --plan-in <plan> --yes]` reviews then executes the dual-side plan. `snapshot --all-installed` writes only the explicit bundle output after detection review; restoring or applying bulk results requires `--yes`.38- Cross-platform: `%APPDATA%` / `%USERPROFILE%` / `$APPDATA` resolution, platform detection, per-surface path isolation (remote hosts experimental). `detect` / `doctor` inspect installation state offline.39- The explicit `legacy` subcommand is read-only lookup compatibility (`--print-path`, `--dry-run`); legacy writes are disabled and enforced by the Python wrapper.40- Object-type scope (exhaustive — apply writes nothing outside it):41 - Auto-migratable (`ready`): `skills`, `instructions`, `mcp`; opaque plugin package copy where both profiles declare it.42 - Draft-only, never auto-written: `prompts`, `commands`, `agents`, `hooks`, `workflows`. Executable surfaces have no staging writer; replayed plans marking them eligible fail closed.43 - Opt-in session transfer: `handoff` needs `--objects handoff` AND `--include-session`; only reviewed summary, git branch, relative selected files, and an explicit patch travel. Raw conversation, tokens, session state, machine paths, logs discarded.44 - Never migrated: trust state, generated memory, cloud knowledge, approvals, chat history.45- Sensitive shared settings files are read only for the named migration's authorized MCP subobject; trust sections (`never-migrate`) and sibling settings never enter plans or bundles; strict secret redaction before output. See [references/mcp-migration.md](references/mcp-migration.md).46- Claude Desktop app MCP in **Settings → Extensions** and **Settings → Connectors** is UI-managed; do not infer or rewrite it from legacy JSON.