swarm-migrate

swarm-migrate is a skill for Claude Code, Codex from AnmarHani/SwarmVault. It costs 64 tokens per session (623 once invoked), scanned A, original, MIT.

A workflow for bringing existing software projects into SwarmVault, a system for registering projects and organizing their documentation and development records. It can mirror existing project files and optionally analyze the codebase for additional records.

In plain words
What is it for?
Use it to register selected projects, mirror README and documentation files, connect named platforms, create a project digest, or place an existing project into a requirements-and-development process.
Why use it?
It helps teams connect an existing codebase to a shared project workflow without duplicating projects when the migration is run again.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to register selected projects, mirror README and documentation files, connect…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anmarhani/swarmvault/swarm-migrate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AnmarHani/SwarmVault --skill swarm-migrate
Clone the repo
git clone --depth 1 https://github.com/AnmarHani/SwarmVault

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swarm-migrate

README.md
[![agentmods](https://agentmods.dev/badge/skills/anmarhani/swarmvault/swarm-migrate.svg)](https://agentmods.dev/skills/anmarhani/swarmvault/swarm-migrate)
Your own site
<a href="https://agentmods.dev/skills/anmarhani/swarmvault/swarm-migrate"><img src="https://agentmods.dev/badge/skills/anmarhani/swarmvault/swarm-migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 623 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00623
Opus 5 $0.00032 $0.00311
Sonnet 5 $0.00013 $0.00125
Haiku 4.5 $0.00006 $0.00062

Measured 6d ago against content hash cde64f9f24b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

swarm-migrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/swarm-migrate/SKILL.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

swarm-migrate — existing-project migration

Three tiers per project; each deeper tier is opt-in with its cost stated up front. Idempotent: re-running repairs, never duplicates.

1. Discover

List candidates: swarmvault.py register --import-claude covers Claude Code users' ~/.claude.json in one shot; otherwise the user names paths. Ask WHICH projects to migrate (multi-select) and, per project, the isolation flag.

2. Immediate tier (cheap, always)

Per chosen project: register + marker → first sync (mirrors existing CLAUDE.md/AGENTS.md/README/docs and any existing memory; builds the MOC) → wire the platforms they name with setup/wire (as swarm-init step 3; one command, no manual file edits). The project is now queryable.

3. Digest tier (token-costing, opt-in)

State the rough cost first. Analyze the repo → 10 Projects/<P>/<P> Digest.md (architecture, conventions, entry points — not generated, so sync preserves it) + seed memories for footguns found in code comments/READMEs/issue notes.

4. SDLC adoption tier (most token-costing, opt-in) — place it IN the flow

Mine first, ask second (swarm-spec's brownfield mode does the work):

  1. Sources: README, docs/, existing plan/TODO files, issue exports, test suites, the code.
  2. Produce docs/SRS.md + feature specs marked status: mined-draft, every statement with provenance (file:line).
  3. Detect the de-facto phase — e.g. "14 of 20 mined features implemented, no design doc" — and write flow-state accordingly.
  4. Gap interview via the question queue: only gaps, conflicts, low-confidence items. Never re-ask what the repo answers.
  5. Remaining work → tickets. From here /swarm-flow resumes the project mid-phase like any SwarmVault project.

Close

Ask once (if unset): vault as default for new projects? Show the security disclaimer (swarm-init step 4) if this user hasn't seen it. Huge monorepo → scope the deep tiers to user-chosen subpaths. A project containing its own Obsidian vault → exclude that folder from doc mirroring (no vault-in-vault).

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 54 lines · 64 tokens per session scan A cde64f9f24b6

Subscribe to this mod's changes

swarm-migrate is a skill published in the GitHub repository AnmarHani/SwarmVault (5 stars, last pushed 1mo ago), licensed MIT. It adds 64 tokens to every session and 623 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.