Skip to content
Agent Orchestration
Skill

/migrate

Migrate from npm-installed metaswarm to the marketplace plugin — removes redundant files with safety checks

From plugin
metaswarm
43214 skills23 agents16 commands2 hooks

Claude Code

$ npx -y skills add dsifry/metaswarm --skill migrate --agent claude-code

SKILL.md

migrate.SKILL.md
name: migrate
description: Migrate from npm-installed metaswarm to the marketplace plugin — removes redundant files with safety checks

Migration Skill

Migrate a project from npm-installed metaswarm (`npx metaswarm init`) to the marketplace plugin. Removes redundant embedded files with a safety protocol that prevents data loss.

**When to use**: The SessionStart hook detects `.claude/plugins/metaswarm/.claude-plugin/plugin.json` (legacy embedded plugin) and recommends running this skill.

---

IMPORTANT: Safety & Messaging Guidelines

**The user MUST understand this before any file list is shown:**

Before presenting any migration preview or file list, ALWAYS lead with this framing:

> **What this migration does**: The marketplace plugin now provides all the skills, commands, rubrics, and guides that were previously copied into your project directory. This migration simply removes those redundant copies — the originals now live in the plugin itself. > > **Nothing is lost**: Your project-specific files (CLAUDE.md, .coverage-thresholds.json, .beads/, bin/, scripts/) are NEVER touched. Only duplicate metaswarm framework files are removed. > > **Reversible**: Removals of git-tracked files are staged with `git rm` (not permanently deleted). Untracked copies, which git can't restore, are moved to `.metaswarm/migrate-backup-<timestamp>/` instead of being deleted. Before you commit: > - Undo the removals: see [Rollback](#rollback-nothing-is-permanent) (it restores only the files this migration removed, not other changes) > - After committing: `git revert HEAD` > > **No commit is made automatically** — you review and commit when you're satisfied.

**Tone**: Be reassuring, not alarming. Say "cleaning up XX redundant copies" not "deleting XX files". Say "these files now live in the plugin" not "these files will be removed". Frame the migration as housekeeping, not destruction.

**When showing file counts**: If there are many files (e.g., 40+), explain that the large count is because the old npm installer copied the entire plugin framework into `.claude/plugins/metaswarm/` — that one directory accounts for most of the count, and it's all framework code that's now served directly by the plugin.

---

Step 1: Pre-flight Check

1. Confirm this skill is running from the marketplace plugin (if this skill loaded, the plugin is active) 2. Read `.metaswarm/project-profile.json` -- if `"distribution": "plugin"` is already set, inform the user migration was already completed and exit 3. Verify `.claude/plugins/metaswarm/.claude-plugin/plugin.json` exists -- if not, there is nothing to migrate; inform the user and exit

If the plugin is not loaded, the user needs to install it first: `/plugin marketplace add dsifry/metaswarm-marketplace`

---

Step 2: Inventory Legacy Files

Scan for files installed by `npx metaswarm init` that are now provided by the marketplace plugin.

**Candidates for removal:**

| Category | Path pattern | |---|---| | Embedded plugin | `.claude/plugins/metaswarm/` (entire directory) | | Rubrics | `.claude/rubrics/*.md` | | Guides | `.claude/guides/*.md` | | Old commands | `.claude/commands/metaswarm-setup.md`, `.claude/commands/metaswarm-update-version.md` |

**NEVER removed** (project-local files): `CLAUDE.md`, `.coverage-thresholds.json`, `.metaswarm/project-profile.json`, `.beads/`, `bin/`, `scripts/`, `.github/workflows/`, `.claude/commands/` shims.

---

Step 3: Content Verification

For each removal candidate, verify it is an unmodified metaswarm file using SHA-256 hash comparison.

**Hash protocol:** 1. Read file content 2. Normalize line endings to LF (`\r\n` -> `\n`, `\r` -> `\n`) 3. Strip trailing whitespace from each line 4. Strip trailing newlines 5. Compute SHA-256 of normalized content 6. Compare against hash of the corresponding file from the marketplace plugin's own directories (rubrics/, guides/, etc.)

Computing hashes from the plugin's live files ensures the hash list stays current -- no hardcoded hashes that drift.

**Classification:**

| Result | Action | |---|---| | Hash matches | **Unmodified** -- add to deletion list | | Hash differs | **User-modified** -- flag for user decision, never auto-delete | | Not in hash list | **Unknown file** -- skip entirely |

---

Step 4: Dry Run Preview

Display the complete migration plan before any changes. **Lead with the safety framing from the guidelines above**, then show the preview:

## Migration Preview

These are redundant copies of framework files that are now provided by the plugin.
All removals are staged (not committed) — you can undo everything before committing.

### Redundant framework files to clean up (XX files)
These are unmodified copies that the plugin now provides directly:
- .claude/plugins/metaswarm/ (embedded plugin copy — XX files, now served by marketplace plugin)
- .claude/rubrics/<each matching file> (now in plugin's rubrics/)
- .claude/guides/<each matching file> (now in plugin's guides/)
- .claude/commands/metaswarm-setup.md (replaced by plugin command)
- .claude/commands/metaswarm-update-version.md (replaced by plugin command)

### Files you've customized (require your decision)
- .claude/rubrics/code-review-rubric.md (MODIFIED — your changes are preserved until you decide)

### Your project files (NEVER touched)
- CLAUDE.md, .coverage-thresholds.json, .metaswarm/, .beads/, bin/, scripts/

### What gets added
- 6 command shims in .claude/commands/ (thin wrappers that route to plugin commands)
- .metaswarm/project-profile.json updated with "distribution": "plugin"

### Untracked copies (moved, not deleted)
- <each confirmed untracked file> → .metaswarm/migrate-backup-<timestamp>/

### How to undo (before committing)
git diff --cached --name-only -z --diff-filter=D -- .claude/plugins/metaswarm .claude/rubrics .claude/guides .claude/commands/metaswarm-setup.md .claude/commands/metaswarm-update-version.md | xargs -0 git restore --staged --worktree --

---

Step 5: User

Read more
@dsifry
Ships withmetaswarm

A self-improving multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI.

43214 skills23 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
432
Star history of dsifry/metaswarm on GitHub, a chart by star-history.com

Other skills on metaswarm.

brainstorming-extension

brainstorming-extensio…

Loads the assumption ledger and misreadings checklist at the start of brainstorming, and enforces the design review gate when a…

@dsifry@dsifryInstall Skill
create-issue

create-issue

Create comprehensive GitHub issues with TDD plans, acceptance criteria, and agent instructions for autonomous PR lifecycle…

@dsifry@dsifryInstall Skill
design-review-gate

design-review-gate

Automatic review gate that runs when brainstorming commits a project-sized design doc - spawns PM, Architect, Designer, Security,…

@dsifry@dsifryInstall Skill
external-tools

external-tools

Delegate implementation and review tasks to external AI CLI tools (Codex, Gemini) with cross-model adversarial review

@dsifry@dsifryInstall Skill
handling-pr-comments

handling-pr-comments

Address PR review feedback systematically — fetch inline comments, review bodies, handle outside-diff-range comments, resolve…

@dsifry@dsifryInstall Skill
handoff

handoff

Analyze the current session and write a self-contained handoff document so a fresh agent can resume the work with full context —…

@dsifry@dsifryInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw4d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca2d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip3d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about migrate.

Which coding agents can use migrate?
migrate installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.