Skip to content
Back to skills

Migrate

ASecurity

Repo migration hub. Runs whichever of /migrate-tracker, /migrate-issues and /migrate-tests the target repo still needs, judged by bin/migrate-needs.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 25, 2026
toolsgobashnodegit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add nirecom/agents --skill migrate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Migrate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Migrate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nirecom-migrate/badge)](https://www.skillsdirectory.com/skills/nirecom-migrate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: migrate
description: Repo migration hub. Runs whichever of /migrate-tracker, /migrate-issues and /migrate-tests the target repo still needs, judged by bin/migrate-needs.
user-invocable: true
---

Hub skill that brings a target repo up to the agents workflow: issue tracker, issue history and the `.agents.json` tests section.
It is the only place that decides from `bin/migrate-needs` what to run; the sub-skills hold the judgments, the hub holds no criterion.

## Inputs

- `ROOT`: the target repo's checkout root (default: `git rev-parse --show-toplevel` of the CWD). `/workflow-init` passes it.
- Options forwarded verbatim to every sub-skill: `--no-push`, `--dry-run`.
- Pass `ROOT` and the `HOST` from MG-1 to each sub-skill, so none of them asks for the repo again.

## Procedure

MG-1. Read: run `node "$AGENTS_MAIN_ROOT/bin/migrate-needs" --root "<ROOT>"` as one standalone call; keep `NEEDED`, `UNCOMMITTED`, `UNPUSHED`, `HOST` and `MALFORMED` from its stdout.
   A non-zero exit goes to "On failure".
   When `MALFORMED=1` (the settings file is unparsable, not an object, or fails the reader's validation), ask once through AskUserQuestion (`metadata.source=migrate.reset-malformed`) before MG-2:
   - "Reset (recommended)": run `node "$AGENTS_MAIN_ROOT/bin/repo-settings" --root "<ROOT>" --reset-malformed` as one standalone call, then re-run MG-1; the original is kept as `.agents.json.malformed`.
   - "Skip for this session": write nothing, print `MIGRATE_RESULT=skipped` and end.
   With `--dry-run`, do not reset and ask nothing: report that it would run `--reset-malformed`, then go on to MG-2.
   "Settled" (judged in MG-3) means `UNCOMMITTED=0` and either `UNPUSHED=0` or `--no-push` was given.

MG-2. Run: when `NEEDED` is empty, go to MG-3 asking nothing.
   When `NEEDED` lists a skill, ask through AskUserQuestion (`metadata.source=migrate.run-needed`) with two choices:
   - "Run now (recommended)": invoke each skill in `NEEDED` in its order with `ROOT` / `HOST` / options; stop at the first failure and go to "On failure". Then go to MG-3.
   - "Skip for this session": write no state, print `MIGRATE_RESULT=skipped` and end.
   The skip choice's description names what silently fails until the migration runs: the label step in clarify_intent, the WIP record, the Projects v2 registration of an in-progress issue, and the session close board update.
   It also says tests stay blocked: the run_tests check refuses a repo with no valid tests section.

MG-3. Settle: run `bash "$AGENTS_MAIN_ROOT/skills/migrate/scripts/settle.sh" "<ROOT>"` (plus `--no-push` / `--dry-run` when given) and print its `MIGRATE_RESULT` line (`MIGRATE_RESULT=ok` or `MIGRATE_RESULT=skipped`) as is. Ask nothing.
   A non-zero exit goes to "On failure".

## On failure

Show the failing output (`bin/migrate-needs`, sub-skill, or settle.sh), then ask through AskUserQuestion (`metadata.source=migrate.on-failure`):
- "Skip for this session": print `MIGRATE_RESULT=skipped`; its description names the impacts by pointing at MG-2.
- "Stop": print `MIGRATE_RESULT=failed`.

## Rules

- Skip exits exist only in MG-1 (`MALFORMED=1`), MG-2 and On failure; never record a skip as done, so the next session's `/migrate` asks again.
- Print exactly one `MIGRATE_RESULT` line per run; its three values are the contract with `/workflow-init`.
- Commit recovery is a named exception in settle.sh: every needs.js already says done, so the missing commit or push is git state; it stages `.agents.json` only.
- Writes land in `ROOT`'s main worktree; each sub-skill commits right after writing through `commit-migration-artifacts.sh`, which pushes to the current branch unless `--no-push` is passed.
- Manual recovery commands: `docs/ops/migration-from-todo.md`.

Files in this skill

  • SKILL.md3.7 KB
  • scripts/settle.sh2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.