/ccxp-skills:migrate-task T<id> <target-repo> [--dry-run]from ccxp-skills
Use when the user explicitly asks to move a task file from one repo's dev/TODO/ to another repo's — e.g. a mis-scoped target-repo: task, or a task filed in the wrong hub before a repo split
Ships in ccxp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
<skills-root>= this skill's "Base directory" minus its last component; substitute the literal path (skill-conventions§9).
Move a task file — and its dev/TODO/queue.md entry — from the current
repo's dev/TODO/ to another repo's, landing the destination first and
removing the source second (see ## Solution
of the design task for full rationale). Distilled from
T20260827-420045's by-hand migration (3 tasks, hub-repo → ccxp-skills).
/migrate-task <task-id> <target-repo> [--dry-run] — positional, no flag
soup beyond the one optional preview flag.
<task-id>: a T<id> that resolves to exactly one dev/TODO/T<id>-*.md
in the current working repo (found via bash <skills-root>/_taskid/in-this-repo.sh <id>, same as /stage//drive).<target-repo>: a local sibling directory path, or a
Synx-Data-Labs/<repo> slug (resolved to a clone URL via gh repo view --json url). Never read from the task's own target-repo: frontmatter
field — that field can go stale across a repo split (T20260827-420045's
3 files all pointed at the wrong repo by the time they were migrated). The
caller re-verifies the current-correct destination and supplies it
explicitly.--dry-run: runs the resolve/clone/collision-check/blocking-check steps
against the real clones, then prints the two diffs that would be
committed (target addition, source removal) and exits — no branch, no
push, no PR, no mutation of either remote.Resolve source and target. Confirm dev/TODO/T<id>-*.md exists in
the current repo (hard-fail with the same diagnosis /stage uses
otherwise). Resolve <target-repo> to a clone URL.
Clone both fresh under /tmp/ — never the caller's interactive
sibling clones (/drive Phase 1.5's ephemeral-clone pattern; mutating an
interactive clone directly hit a hard block during the worked example).
Collision-check the id against target's
dev/{TODO,PARKING,JOURNAL}/ (mt-collision-check in scripts/migrate.sh
— mirrors _taskid/new.sh --check's loop). Should never collide (IDs are
timestamp-random) — hard-fail loudly if it does.
Bidirectional-blocking check (mt-blocking-check): hard-fail if the
migrated task's own blocks: is non-empty, or if another source-repo
task's status: reads Blocked by T<id> for this task — per
lifecycle.md's "Blocking: Bidirectional Links" cascade-unblock
invariant. A human resolves the relationship first; this skill doesn't
guess.
Claimed-task guard: hard-fail if claimed_by: is non-empty — release
the claim before migrating, don't silently carry or drop it.
Land the destination first (add before remove — a task existing in
both repos briefly is safe; existing in neither is not): copy the file
into target's dev/TODO/, strip target-repo:/target-path:, run
target's repo-conventions/scripts/lint_tasks.py --changed <file> if
present, run repo-conventions/scripts/lint_identifiers.py --changed <file> --fix (T20260919-231319 — genericize a known internal identifier
in the staged copy, or refuse outright when a hit has no safe
replacement), insert into target's queue.md via mt-queue-insert —
append, unless a task already in the target queue reads status: Blocked by T<id> (mt-target-blocked-by), in which case insert
immediately before it. (The migrated task's own blocks: can't trigger
this branch — step 4 already hard-failed if it were non-empty; this is
the other direction, where the task becomes someone else's blocker
only once it lands in the target queue.) Branch t<id>-migrate-in,
commit, push, open PR, drive to merge via /address-pr.
Implementation note: today, scripts/migrate.sh only implements
this step's --dry-run preview (the staged-copy path, which the
internal-identifier check above IS wired into); the live push/PR-opening
half of step 6 — and with it, the lint_tasks.py call this bullet also
describes — remains an unimplemented stub (migrate.sh, return 8).
See scripts/migrate.sh's own header comment and tests/migrate_task.bats
(repo root) for what's actually exercised.
Then remove from source: git mv the file to
dev/JOURNAL/<today>-T<id>-<slug>.md, set status: Done (matching
lifecycle.md's Status Flow enum — no Closed value exists), stamp
scheduled: to the JOURNAL-date's Monday if empty, add a
## Migrated (<date>) section linking the new location. Remove its
queue.md line. Branch t<id>-migrate-out, commit, push, open PR,
drive to merge via /address-pr.
If step 6's PR fails to merge, stop before step 7 — source is untouched, safe to retry or abort.
Clean up both ephemeral clones (trap EXIT).
--dry-run is the regression-check mechanism, not a general preview
toy — it's what validates this skill against T20260827-420045's
already-merged diffs (#28, #564)
without re-migrating anything.scripts/migrate.sh, sourceable and BATS-tested
(tests/migrate_task.bats, repo root): frontmatter get/delete, the
collision check, the bidirectional-blocking check, and the
queue wrapper mt-queue-insert (delegates to the shared
_queue/queue.sh, the same implementation /stage, /top, /bottom
and /todo sweep use). The live push/PR-opening
path is integration surface, not unit-tested — same convention as
_session/task_claim.sh's thin gh/git I/O wrappers.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status/agents-sdkBuild AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge./autopilotUse when the user explicitly asks to turn the unattended background /drive loop on or off, pause or resume it, or check its status — "/autopilot on", "/autopilot off", "/autopilot pause", "/autopilot resume", "/autopilot status", "/autopilot config"/bottomUse when the user explicitly asks to move a task (or several) to the back of the dev/TODO priority queue