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.
npx agentmods add skills/blazity/nextjs-migration-plugin/migrate-newnpx skills add Blazity/nextjs-migration-plugin --skill migrate-newgit clone --depth 1 https://github.com/Blazity/nextjs-migration-pluginWrote 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.
[](https://agentmods.dev/skills/blazity/nextjs-migration-plugin/migrate-new)<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>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.
| Model | Per session | Once 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 |
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.
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).
-
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. -
Source code access (skip if
--source-repowas already passed). Ask: "Do you have the source code repo? Path (optional):" Default: skip, use theurl-onlyinput mode. If provided, use theurl-plus-repoinput mode. -
Pages to migrate. Ask: "Pages to migrate —
alldiscovered 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}"}
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.
- 3d ago First seen · 64 lines · 26 tokens per session scan A bfd979875b08
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.
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…
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…
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.
next-upgrade
Upgrade Next.js to the latest version following official migration guides and codemods.
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.
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.