migrate-new

migrate-new is a skill for Claude Code, Codex from Blazity/nextjs-migration-plugin. It costs 26 tokens per session (833 once invoked), scanned A, original, MIT.

A guided wizard for starting a new migration of a Next.js website. It asks about the destination folder, source code, and pages to move before beginning the component review.

In plain words
What is it for?
Use it to start migrating a website from a URL, optionally with its source-code repository. It helps select the target directory and decide whether to migrate all discovered pages or only chosen URLs or paths.
Why use it?
It removes the need to remember setup options or prepare migration state by hand. Sensible defaults let you proceed quickly while still choosing a source repository and specific pages when needed.

Skill for Claude CodeCodex

Part of the nextjs-migration-plugin plugin — 18 skills, 4 commands, 15 agents 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/blazity/nextjs-migration-plugin/migrate-new
Any agent
npx skills add Blazity/nextjs-migration-plugin --skill migrate-new
Clone the repo
git clone --depth 1 https://github.com/Blazity/nextjs-migration-plugin

Made for: Claude Code, Codex.

Or install nextjs-migration-plugin, the plugin that ships this one along with the rest of its 18 skills, 4 commands, 15 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/blazity/nextjs-migration-plugin/migrate-new.svg)](https://agentmods.dev/skills/blazity/nextjs-migration-plugin/migrate-new)
Your own site
<a href="https://agentmods.dev/skills/blazity/nextjs-migration-plugin/migrate-new"><img src="https://agentmods.dev/badge/skills/blazity/nextjs-migration-plugin/migrate-new.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 833 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.00026 $0.00833
Opus 5 $0.00013 $0.00417
Sonnet 5 $0.00005 $0.00167
Haiku 4.5 $0.00003 $0.00083

Measured 3d ago against content hash bfd979875b08, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

migrate-new 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.

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-new/SKILL.md · 64 lines

How it starts

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

/migrate:new

You are starting a new Next.js migration. The user has provided a source URL as the first positional argument and optionally a --source-repo <path> flag.

Step 1 — Ask the three wizard questions

All three are skippable with Enter (accept default).

  1. Target directory. Check if the current working directory is empty. If non-empty, ask: "Use current dir or ./[slugified-domain]/?" Default: subfolder if CWD is non-empty, current dir if empty.

  2. Source code access (skip if --source-repo was already passed). Ask: "Do you have the source code repo? Path (optional):" Default: skip, use the url-only input mode. If provided, use the url-plus-repo input mode.

  3. Pages to migrate. Ask: "Pages to migrate — all discovered pages, or comma-separated URLs/paths? [all]" Default: all. If the user gives paths or URLs, preserve them as ${INITIAL_PAGE_SELECTION} exactly as a comma-separated list. The initial crawl/probe pass normalizes paths against ${URL} and filters the crawl before probing.

Step 2 — Ensure the target scaffold exists before migration state

Before invoking the entry script, check ${TARGET_DIR} for package.json and src/app/layout.tsx.

If either is missing and the target directory is empty, scaffold before invoking the entry script, before .migration/ exists. This ordering avoids create-next-app conflicts with .migration/SESSION_LOG.md and other migration state.

If either is missing and the target directory is not empty, stop before creating .migration/ and print:

Target lacks a Next.js App Router scaffold. Create the scaffold first in [TARGET_DIR], then re-run /migrate:new.

Do not create .migration/ before the scaffold exists.

Step 3 — Invoke the entry script

Run the Node entry point with collected answers:

node --experimental-strip-types ${PLUGIN_DIR}/lib/new-migration.ts \
  --url "${URL}" \
  --target "${TARGET_DIR}" \
  --input-mode "${INPUT_MODE}" \
  --initial-page-selection "${INITIAL_PAGE_SELECTION}" \
  ${SOURCE_REPO:+--source-repo "${SOURCE_REPO}"}

Read the full file on GitHub · 64 lines

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 · 64 lines · 26 tokens per session scan A bfd979875b08

Subscribe to this mod's changes

migrate-new is a skill published in the GitHub repository Blazity/nextjs-migration-plugin (2 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 833 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.

Related

Other skills, from other repositories

arcgis-to-portaljs

Migrate a whole ArcGIS Hub site into a PortalJS Arc portal end-to-end. Harvests the Hub /data.json (DCAT-US) inventory, exports every FeatureService layer through the ArcGIS REST query API with resultOffset paging, converts each to the serverless dual tier (PMTiles render + GeoParquet query) with tabular items to…

datopian/portaljs · 134 tokens

portaljs-migrate

Migrate (harvest) datasets between open-data platforms. Reads CKAN, a DCAT-US /data.json catalog (DKAN, ArcGIS Hub, data.gov), a DCAT / DCAT-AP RDF feed (JSON-LD, Turtle, or RDF/XML), Socrata, OpenDataSoft, or an ArcGIS FeatureServer, and writes them to a static PortalJS catalog or pushes them into a CKAN instance…

datopian/portaljs · 122 tokens

nextjs-upgrade

Next.js version migrations using official guides and codemods. Use when migrating a Next.js project to a new major version using codemods.

FilippoDeSilva/skills · 34 tokens

next-upgrade

Upgrade Next.js to the latest version following official migration guides and codemods.

zebbern/termstack · 19 tokens

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

shadcn-ui/ui · 61 tokens

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens