migrate

migrate is a skill for Claude Code, Codex from tonydzi/second-brain-starter-kit. It costs 73 tokens per session (1,484 once invoked), scanned A, original, MIT.

A command for checking and carrying out the planned movement of a Claude setup and its shared vault between computers. The setup uses one always-on Windows desktop as the central hub and other computers as satellites, with Git for configuration and Syncthing for large live files.

In plain words
What is it for?
Checking migration status, preparing a migration package, bootstrapping a satellite computer, and synchronizing the Claude configuration and vault.
Why use it?
It reduces differences between machines and checks whether configuration and shared files are synchronized before moving or restoring the setup.

Skill for Claude CodeCodex

Part of the second-brain-skills plugin — 57 skills shipped together

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.

agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/migrate
Any agent
npx skills add tonydzi/second-brain-starter-kit --skill migrate
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code, Codex.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 57 skills.

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 migrate

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/migrate.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/migrate)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/migrate"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00073 $0.01484
Opus 5 $0.00036 $0.00742
Sonnet 5 $0.00015 $0.00297
Haiku 4.5 $0.00007 $0.00148

Measured 3d ago against content hash daf5b1ed732f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 3d 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/migrate/SKILL.md · 51 lines

How it starts

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

/migrate — seamless Claude across Anton's machines

🧒 When reporting to Anton end with a child-simple "In plain words" recap. (memory eli5-always)

This is the single command over the migration project that several sessions already built. It does NOT redesign anything — it reads MIGRATION-PLAN.md + the migration-prep\* scripts and runs the right one. Full state + decisions = memory [[machine-migration]] (READ it first each run — the project is live and moves fast).

The shape (decided, do not re-litigate): always-on Windows DESKTOP = HUB (vault + automation + RAG); this laptop + Mac Studio + MacBook = satellites. Transport: small CONFIG → git/private GitHub; huge live VAULT → Syncthing star (Introducer OFF, .git hub-only). "Seamless" = same vault + same ~/.claude config + same memory on every machine, NOT teleporting the live chat.

Working dir: $USERPROFILE/!CLAUDE-HP17 May26\ · scripts under migration-prep\ · config repo $USERPROFILE/.claude/_config-backup/.

Modes

  • check (default, read-only) — status + drift. Report: is _config-backup fresh (working tree clean vs HEAD; run config_sync.ps1 if skills/memory changed since)? how many Windows scheduled tasks now vs the 16 captured in migration-prep\tasks\*.xml (drift = re-export before a move)? is the F:\ chemodan stale? is gh logged in (offsite optional)? Surface what's BLOCKED.
  • pack — refresh the carry-kit right before an actual move (snapshots go stale): powershell migration-prep\config_sync.ps1 (config+memory → repo) then powershell migration-prep\build_chemodan.ps1 (→ F:\PaloAlto-Migration\, robocopy COPY-only). Re-export tasks if drifted. ⚠️ confirm with Anton before writing F:\ (it's the seed drive).
  • bootstrap — on a NEW machine: read & execute _config-backup\BOOTSTRAP-NEW-MACHINE.md (ordered A→G) or migration-prep\NEW-SESSION-RUNME.md. New machine user = Anton (%WORKDIR%) → every %USERPROFILE%\ path needs _→Anton; memory encoded-path + task XML absolute paths need the rename too. MANDATORY config-safety step: run powershell "$env:USERPROFILE\.claude\scripts\claude_git_backup_setup.ps1" (idempotent — git-inits the ~/.claude config repos + sets a global git identity) THEN ensure the 15-min "Claude Config Git Snapshot" task exists. Without the init, the snapshot task commits NOTHING (the 2026-06-24 hub near-loss). Canon: [[claude-skills-git-backup]] + [[config-safety-backup-and-migration-check]].
  • connectors — reconnect external MCPs after a move via migration-prep\CONNECTORS-INVENTORY.md. The 3 blind spots the vault+config backup MISSES: C:\mcp\telegram-mcp\ (.env + patched source), $USERPROFILE/.claude/secrets/ (n8n.env + SSH key), $USERPROFILE/.local/share/whatsapp-mcp/. Enumerate from .claude.json mcpServers, not the backup. After reconnecting, verify each server is actually alive & authed with the /mcp skill (its in-session health check — and it carries the Telegram AUTH_KEY_DUPLICATED landmine that bites right after a move: re-auth per machine, never copy .claude.json).
  • sync — Syncthing setup/repair via migration-prep\SETUP-SYNC.md. First-sync order is CRITICAL: laptop is most-current → laptop = Send&Receive, desktop = Receive-Only on first pass to ABSORB, THEN flip. Laptop Device ID is in [[machine-migration]]. Same Syncthing pipe also carries the cross-machine RELAY — Claude-to-Claude messages between machines (folder $OBSIDIAN_VAULT/_machine-bus/); that is the /inbox skill's job, NOT /migrate (rule lives in [[reglament-multi-machine-claude-i-peredacha-mezhdu-mashinami]]).

Read the full file on GitHub · 51 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. 3d ago First seen · 51 lines · 73 tokens per session scan A daf5b1ed732f

Subscribe to this mod's changes

migrate is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (5 stars, last pushed 4d ago), licensed MIT. It adds 73 tokens to every session and 1,484 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

wiki-ingest

Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this…

AgriciDaniel/claude-obsidian · 88 tokens

autoresearch

Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find…

AgriciDaniel/claude-obsidian · 80 tokens

canvas

Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.

AgriciDaniel/claude-obsidian · 72 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

wiki

Initialize, adopt, and route work for a separate Obsidian knowledge vault through the portable claude-obsidian core. Use for vault setup, scaffolding, workspace selection, cross-project configuration, or choosing the correct wiki sub-skill. Triggers: /wiki, set up wiki, scaffold vault, create knowledge base, adopt…

AgriciDaniel/claude-obsidian · 84 tokens

defuddle

Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion.

AgriciDaniel/claude-obsidian · 57 tokens