dsifry/metaswarm/migrate
Claude Code and agent skill by dsifry/metaswarm
- community
Checking that the SKILL.md file is still in the repository.
Migrate from npm-installed metaswarm to the marketplace plugin — removes redundant files with safety checks
Install
npx vskill@latest install dsifry/metaswarm/migrateSKILL.md
The same SKILL.md was published earlier as dsifry/metaswarm/migrate.
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 withgit 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 (it restores only the files this migration removed, not other changes)- After committing:git revert HEADNo 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
- Confirm this skill is running from the marketplace plugin (if this skill loaded, the plugin is active)
- Read
.metaswarm/project-profile.json-- if"distribution": "plugin"is already set, inform the user migration was already completed and exit - Verify
.claude/plugins/metaswarm/.claude-plugin/plugin.jsonexists -- 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:
- Read file content
- Normalize line endings to LF (
\r\n->\n,\r->\n) - Strip trailing whitespace from each line
- Strip trailing newlines
- Compute SHA-256 of normalized content
- 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:
Step 5: User Confirmation
Use AskUserQuestion. The question is a decision request: lettered options (A clean up, B keep, C show diff), each with its pros and cons, the recommended option marked, and why it is recommended (see Decision requests in the metaswarm plugin's guides/delivery-scope.md). A line each is enough:
- Remind the user: "This stages the cleanup — nothing is committed yet. You can undo just these removals before committing (see the Rollback section)."
- Ask: "Ready to clean up the redundant framework files?" (not "Ready to delete files?")
- For each user-modified file, ask individually: keep, remove, or show diff
- If the user chooses "diff", display the difference between their version and the plugin's, then re-ask
Step 6: Git Safety
Before executing removals:
- Run
git statusto check for uncommitted changes - If uncommitted changes exist, warn: "Recommended to commit or stash before migrating so changes are in their own commit. Continue anyway?"
- If the user declines, exit
Step 7: Cleanup
Announce what you're doing: Before running any commands, say:
"Staging the redundant files for removal. These are all framework copies — your project files are untouched. Nothing is committed yet."
Git-tracked files -- use git rm (staged, reversible via git checkout):
After running: Reassure: "Done — XX files staged for removal. These are only staged, not committed. Run git status to see the staged changes; the Rollback section below shows how to undo just these removals."
Untracked files -- move them to a timestamped backup folder, not rm (unlikely, but git can't restore them). List the confirmed untracked files in UNTRACKED (find them with git ls-files --others -- .claude/plugins/metaswarm .claude/rubrics .claude/guides .claude/commands, then keep only the confirmed ones; skip this step when there are none):
If any file is reported as NOT moved, stop and tell the user before continuing; don't report the cleanup as complete. The backup keeps each file at its original path inside the folder, and its own .gitignore keeps git from listing or committing it. Delete the folder once you're happy with the migration. Name it in the Step 10 summary.
Empty directories -- remove .claude/rubrics/ and .claude/guides/ if empty after cleanup. Do NOT remove .claude/commands/ (shims remain).
Step 8: Command Shim Creation
Write 6 shims to .claude/commands/ (same as setup skill):
| Shim | Routes to | |
|---|---|---|
start-task.md | /metaswarm:start-task | |
prime.md | /metaswarm:prime | |
review-design.md | /metaswarm:review-design | |
self-reflect.md | /metaswarm:self-reflect | |
pr-shepherd.md | /metaswarm:pr-shepherd | |
brainstorm.md | /metaswarm:brainstorm |
Each shim:
If a shim already exists with different content, ask before overwriting.
Step 9: Profile Update
Merge these fields into .metaswarm/project-profile.json (preserve existing fields):
Step 10: Post-Migration Summary
Display what was done and next steps:
Generated agent files
/setup and /update generate .claude/agents/metaswarm-<role>.md from .metaswarm/models.yaml. These are separate from the legacy files above, and removing them is also how to uninstall metaswarm's phase agents.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/migrate/SKILL.md
Popularity
- Repository stars
- 335
- Repository forks
- 44
- Repository npm downloads, 7 days
- 25
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dsifry/metaswarm/migrate)