migrate-repo

migrate-repo is a skill for Claude Code from nirecom/agents. It costs 27 tokens per session (1,339 once invoked), scanned A, original, MIT.

A migration tool that moves tasks from documentation files into GitHub Issues, GitHub's system for tracking work. It uses preview checks and confirmation gates while creating the issues.

In plain words
What is it for?
Use it to preview and transfer work from docs/history.md and docs/todo.md into GitHub Issues, with labels and staged confirmation.
Why use it?
It reduces the risk of losing tasks or creating unwanted issues during the move. The process also checks authentication and requires the exact repository path.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it to preview and transfer work from docs/history.md and docs/todo.md into GitHub Issues, with labels and staged confirmation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirecom/agents/migrate-repo
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.

Any agent
npx skills add nirecom/agents --skill migrate-repo
Clone the repo
git clone --depth 1 https://github.com/nirecom/agents

Made for: Claude Code.

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-repo

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirecom/agents/migrate-repo.svg)](https://agentmods.dev/skills/nirecom/agents/migrate-repo)
Your own site
<a href="https://agentmods.dev/skills/nirecom/agents/migrate-repo"><img src="https://agentmods.dev/badge/skills/nirecom/agents/migrate-repo.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,339 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00027 $0.01339
Opus 5 $0.00014 $0.00669
Sonnet 5 $0.00005 $0.00268
Haiku 4.5 $0.00003 $0.00134

Measured 7d ago against content hash f8e4a20742fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

migrate-repo 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/preview-and-capture.sh), 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.

skills/migrate-repo/SKILL.md · 78 lines

How it starts

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

Always run --dry-run first.

Irreversibility hard rule

  • gh issue create consumes monotonically increasing global issue numbers; they can never be reused, freed, or reassigned. Every canary stage is irreversible.
  • Each stage MUST run as its own process: never chain stages, never pipe yes into the orchestrator, never run two stages in one command.
  • AskUserQuestion is the only gate between stages — never invoke orchestrate.sh inside a pipeline that supplies stdin.

Pre-flight

  • gh auth status — confirm project scope is active.
  • AGENTS_CONFIG_DIR must be set.
  • Step 1 label setup is delegated to bin/github-issues/bootstrap-labels.sh.

Procedure

MR-1. Get the migration target path from the user.

  • Never infer REPO_PATH from a path mentioned only as documentation / reference / context — accept only the path the user explicitly designates as the target.
  • Resolve REPO_PATH to an absolute path, then AskUserQuestion: "Migration target = <abs path> — correct? (confirm this is NOT the agents repo itself)"
    • "Yes, proceed with this path" → MR-2
    • "No, re-enter the correct path" → re-collect REPO_PATH, repeat MR-1

MR-2. Preview + capture the snapshot.

  • Run: eval "$(bash "$AGENTS_CONFIG_DIR/skills/migrate-repo/scripts/preview-and-capture.sh" "$REPO_PATH")" — runs the dry-run, mirrors it to stderr, and exports MIGRATE_ACK_UP_TO_ISSUE_N + MIGRATE_ACK_SELF_COUNT_AT_ACK.
  • Inspect MIGRATE_SELF_REPO_DETECTED:
    • =1AskUserQuestion: "WARNING: target (<REPO_PATH>) is the agents repo itself. Proceed ONLY for an intentional agents-repo Phase 3 self-migration."
      • "Proceed as agents-repo Phase 3" → MR-3
      • "Abort and fix the path" → stop the skill
    • =0 → MR-3

MR-3. Dry-run review gate. AskUserQuestion: "Dry-run reviewed — proceed to History canary 1, or abort?"

  • Note in the question: if an existing-issues WARNING was shown, migrated issues permanently lose the "early issue numbers = history chronology" invariant.
  • "proceed" → MR-4
  • "abort" → stop the skill (no irreversible mutation yet)

Read the full file on GitHub · 78 lines

Files

What ships with it

1 file 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. 7d ago First seen · 78 lines · 27 tokens per session scan A f8e4a20742fb

Subscribe to this mod's changes

migrate-repo is a skill published in the GitHub repository nirecom/agents (3 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 1,339 once invoked, about $0.0001 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.