/loom:loom-migrate <runbook-path> [--dict-id=<id>] [--batch=<N>] [--root=<path>] [--mode=auto]from loom
Execute a runbook migration — pluck a bounded batch of annotated work sites, apply each site's runbook (migration dictionary) transform, verify, and open one PR for the batch. The execution half of the decentralized work-distribution axis (project 2026-06-30-distributed-project-store, Phases 6-8): /loom-runbook authors the inventory in the code, this skill works it off a batch at a time, and /ev-goal repeats until the dict-id scans clean. Use to run a migration authored by /loom-runbook.
Ships in loom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Work off a runbook migration one bounded batch at a time. The inventory
lives in the code as MIGRATE:<dict-id> annotations referencing a runbook
(authored by /loom-runbook); this skill plucks a batch, transforms it, and
opens a PR. /ev-goal repeats it until no sites remain. The partition is
the batch/branch, so many runs make progress without a central queue.
<runbook-path> — the migration dictionary TOML (runbooks/<name>.toml).--dict-id=<id> — work only this migration's sites (default: all ids in
the runbook).--batch=<N> — max sites per PR (default 10). Bounded so each PR stays
reviewable and conflicts stay small.--root=<path> — scan root (default repo root).--mode=auto — substrate auto-mode posture (per docs/AGENT-CONVENTIONS.md).loom runbook scan <root> --dict=<runbook-path>
Filter the returned sites to --dict-id if given. unknown must be 0 —
a non-zero count means a marker references a dict-id the runbook doesn't
define; stop and surface it (the inventory is inconsistent). If zero sites
remain, the migration is complete for this id — exit clean (this is the
terminal state /ev-goal watches for).
Take the first --batch sites (deterministic order: by file, then
line). Keeping batches small bounds PR size and the blast radius of a bad
transform.
Cut a migration branch off a freshly-pulled base, e.g.
migrate/<dict-id>-<n>. One branch = one batch = one PR.
For each site in the batch, read its runbook entry (description + the
runbook transform spec) and apply that spec to the site, using the site's
params. The runbook entry is self-contained — a worker transforms a
site from the marker + the entry alone. After transforming, remove or
update the MIGRATE:<dict-id> marker so the site no longer scans — the
marker's absence in the diff is the done-signal.
Keep strictly to the runbook spec. If a site doesn't match the spec's assumptions (the recognizer over-matched), skip it, leave its marker, and note it — do not force a transform the runbook didn't describe.
Run the repo's gate (tests / lint / build) over the change. A red gate means
do not open the PR — fix or reduce the batch. In --mode=auto, compose
/guild-validate over the changed files as the evaluator gate.
Push the branch and open a PR titled for the migration + batch (e.g.
[migrate] <dict-id> batch <n> (<k> sites)). The PR body lists the
transformed sites. Merging it removes those sites from the inventory; the
next /loom-migrate run scans fewer.
/ev-goal dispatches /loom-migrate per batch: each run opens a PR, the PR
merges (or its activity wakes the driver), and the driver re-runs until
loom runbook scan --dict=<runbook> --dict-id=<id> returns zero sites — the
migration's goal predicate. This is the runbook execution mode (Phase 7).
Decentralized claim/lease so concurrent runs don't grab the same sites is
Phase 8 — until it lands, run one /loom-migrate at a time per dict-id.
--batch.unknown from the scan → inconsistent inventory; stop and fix the
marker or runbook (do not transform)./loom-runbook and re-seed.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub krambuhl/agents --plugin loom7 skills in this plugin
/loom-adrRecord an Architectural Decision Record (ADR) to the workspace-level adr-log. Use when an architectural decision worth being durable — visible to other engineers and to future agents — surfaces in conversation: a chosen tradeoff, a deliberate constraint, a deferred alternative, a load-bearing invariant. Composes `loom adr` (the CLI verb) which writes `projects/adr-log/NNNN-<title-slug>.md` with permanent sequential numbering. ADRs are append-only; revise by writing a NEW ADR with `--status=superseded` body-linking to the prior number, never edit the old file./loom-archiveClose out a loom-managed project. Interview the user for color, synthesize a project-type retrospective from the corpus, write the retro via `bin/loom retro write --type=project`, then relocate the project to `archive/` via `bin/loom project archive`. Stops there — composing the archive PR is a separate concern./loom-planBirth a PLAN.md via relentless grill-me interview, grounded in a prior RESEARCH.md (attached if present; auto-spawned via /loom-research if missing). Evaluator panel runs against the proposed PLAN.md via bin/guild derive-panel + /guild-validate before commit. Supports human-paired and `--mode=auto` flows with the substrate two-budget(3 rounds × 10 decisions). Use when the user wants a plan grounded in research; for lighter "I know what I want" scaffolding, just answer the interview questions tersely and the loop closes fast. Dispatches deterministic file IO through `bin/loom plan`./loom-researchBirth a fact-anchored RESEARCH.md via relentless grill-me interview, with domain-shift detection that spawns a research panel per shift and an evaluator-contract-fit fact-check pass before commit. Composes /guild-plan for panel rounds and /guild-validate for the fact-check gate; dispatches the deterministic file IO through `bin/loom research`. Supports human-paired and `--mode=auto` flows with the substrate two-budget(3 rounds × 5 shifts). Use when the user wants a research dossier whose every claim cites a source or observable./loom-revise-planRevise an existing PLAN.md via a flavor-routed grill-me interview. First question is always "mechanical or research-flavored?" — mechanical revisions go through evaluators-only and shell `bin/loom revise-plan`; research-flavored revisions auto-spawn `/loom-research` (focused on the revision question) before the evaluator pass and commit. Supports human-paired and `--mode=auto` with the substrate two-budget(3 rounds × 10 decisions). Auto-mode callers supply the flavor up front via `--flavor=`./loom-runbookBirth a decentralized work inventory — a runbook (migration dictionary) plus in-code site annotations and the execution wiring — from a topic or a prior RESEARCH.md. The decentralized sibling of /loom-plan: where /loom-plan emits a central PLAN.md + phases, /loom-runbook emits MIGRATE:<dict-id> annotations at the work sites + a small shared runbook they reference, so /ev-goal can fan out massively with no central inventory to contend on. Use for large mechanical work (migrations, codemods, sweeps) where the partition is the site. Dispatches site scanning through `loom runbook scan`.