migrate

migrate is a skill for Claude Code, Codex from ramboz/jig. It costs 151 tokens per session (8,531 once invoked), scanned A, original, MIT.

A migration tool for projects that already use written specifications and decision records but organize them differently from Jig’s expected layout. It inventories the project, suggests changes, and can apply selected renames or reorganizations.

In plain words
What is it for?
Use it to inspect a spec-driven repository, adopt its existing layout, rename decision records, split or restructure slices, convert slices into specs, seed decisions, or copy Jig’s supporting files.
Why use it?
It prevents an existing project from being misidentified as unconfigured or having a second, conflicting structure added. It also makes migrations reviewable through reports and dry runs.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the jig plugin — 20 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/ramboz/jig/migrate
Any agent
npx skills add ramboz/jig --skill migrate
Clone the repo
git clone --depth 1 https://github.com/ramboz/jig

Made for: Claude Code, Codex.

Or install jig, the plugin that ships this one along with the rest of its 20 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/ramboz/jig/migrate.svg)](https://agentmods.dev/skills/ramboz/jig/migrate)
Your own site
<a href="https://agentmods.dev/skills/ramboz/jig/migrate"><img src="https://agentmods.dev/badge/skills/ramboz/jig/migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,531 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.00151 $0.08531
Opus 5 $0.00076 $0.04265
Sonnet 5 $0.00030 $0.01706
Haiku 4.5 $0.00015 $0.00853

Measured 3d ago against content hash 4b14d6c765b6, 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.

The scan reads SKILL.md. This mod also ships 1 executable file (migrate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

hosts/claude/skills/migrate/SKILL.md · 720 lines

How it starts

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

Spec 008 created this skill from scratch. The deterministic filesystem walk + verdict logic + report rendering live in migrate.py; this SKILL.md drives the judgment layer (when to invoke, how to interpret ambiguities, what operations to suggest in what order).

What this skill does

Closes the "already spec-driven" gap that scaffold-init doesn't handle: projects that organically grew the same workflow jig codifies but landed on different conventions (folder names, filename prefixes, slice topology). Direct example: a project with docs/slices/ (flat) and docs/decisions/ (validator-style) — scaffold-init would not detect it as scaffolded and would either refuse confusingly or pollute the tree.

migrate flips that around: detect existing shape first, then propose a migration plan, then (in later slices) apply the rename / restructure operations.

migrate.py exposes six subcommands:

  • report — strictly read-only inventory + plan.
  • adopt-layout — validates an existing custom-root corpus and writes only its scaffold.json sentinel/config; supports --dry-run.
  • rename-decisions — applies ADR-0004's rename. Idempotent; refuses on conflict; has a --dry-run mode; --host claude|codex selects whether cross-reference rewrites scan CLAUDE.md/.claude/ or AGENTS.md/.codex/.
  • split-slices — extracts embedded slice sections into sibling slice files.
  • seed-decisions — seeds docs/decisions/lightweight-decisions.md from jig's template. Idempotent; supports --dry-run and --docs-root; never overwrites an existing file.
  • copy-machinery — copies jig runtime machinery into the target's host-local scaffold runtime; --host claude writes .claude/, and --host codex writes .codex/.

How to use

Run the migration report

python3 "${CLAUDE_PLUGIN_ROOT}/skills/migrate/migrate.py" report \
  <project-dir> [--docs-root <relative-root>]
  • <project-dir> — path to the project root (e.g. /path/to/repo, . for cwd).
  • --docs-root . — inventory a track-local corpus whose specs/, decisions/, workflow.md, and architecture.md live directly under the selected subproject instead of under docs/.

Read the full file on GitHub · 720 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 720 lines · 151 tokens per session scan A 4b14d6c765b6

Subscribe to this mod's changes

migrate is a skill published in the GitHub repository ramboz/jig (6 stars, last pushed 2d ago), licensed MIT. It adds 151 tokens to every session and 8,531 once invoked, about $0.0008 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.