/harlan-agent-kit:nuxt-4-minors-migration [site path or repository]from harlan-agent-kit
Upgrades a Nuxt 4 site to the latest 4.x release with future.compatibilityVersion: 5, then migrates code deprecated or improved in minors 4.1 through 4.6. Use for Nuxt minor upgrades, enabling Nuxt 5 compatibility, explicit server imports, and adopting new Nuxt 4.x features.
Ships in harlan-agent-kit. 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.
Move one site to the latest Nuxt 4.x release with future.compatibilityVersion: 5 on.
Remove every API the 4.x minors deprecated. Adopt the new features that fit the site.
Ship one pull request per site.
The references cover Nuxt 4.1.0 to 4.6.0. Nuxt 4.6.0 shipped on 2026-10-05.
npm view nuxt dist-tags.latest.agent-gh release view v4.7.0 -R nuxt/nuxt. Apply its items with the same tiers. Report the gap, and update this Skill in a separate pull request.nuxt.config.ts, layers, local modules/, CI Node version, and deploy target.wt worktree. Read the worktree isolation contract.Out of scope: Nuxt 2 and 3 sites, the Nuxt 5 nightly channel, Vue Vapor, and server.builder: 'vite'.
A published Nuxt module belongs to the Nuxt module migration Skill. This Skill covers apps, their layers, and their local modules/.
addServerImports turns them back on, types included, so typecheck cannot catch the gap either. The codemod dry run is the gate. Read server imports.nuxt/server changes the cookie, so every user is signed out once. Never do it without explicit approval.noUncheckedIndexedAccess, typed pages, and typed $fetch. Do not turn the checks off.| Step | Do | Reference |
|---|---|---|
| 1 | Record the baseline on the base branch: install, lint, typecheck, test, build. | verification |
| 2 | Raise the Node floor, upgrade Nuxt to the latest 4.x release, update every other dependency, dedupe the lockfile. | minors |
| 3 | Make server imports explicit with the codemod. | server imports |
| 4 | Turn on compatibility version 5. Remove opt-outs and redundant flags. Fix each changed default. | compatibility version 5 |
| 5 | Replace deprecated APIs (Tier 1). | minors |
| 6 | Adopt new features where the evidence fits (Tier 2). | minors |
| 7 | Verify: gates, runtime smoke, browser pass, warnings. | verification |
| 8 | Open the pull request with the pr Skill. | verification |
If the codemod changes more than 200 files, split the work into two stacked pull requests. The first holds the upgrade and the explicit imports. The second holds everything else.
Every finding in the references carries a tier.
| Tier | Meaning | Default |
|---|---|---|
| 0 | Required by the upgrade or by compatibility version 5. | Always do it. |
| 1 | Deprecated in a 4.x minor, or removed in Nuxt 5. | Always do it. |
| 2 | New feature with a clear fit in this site. | Do it when the detection finds evidence. |
| 3 | Experimental with runtime risk, or benefit unmeasured. | List it in the pull request as a follow-up. Never enable it in the migration. |
End with the verification table from verification. List every opt-out kept, every Tier 2 item skipped, and every Tier 3 follow-up, each with a one-line reason.
Example rows, from the trial on a copy of harlanzw.com:
| Check | Result |
|---|---|
| Nuxt | 4.5.2 to 4.6.0, compatibility version 5 |
| Server imports | 8 files changed, 0 left, 0 unmapped |
| Runtime smoke | / 200, /feed.xml 200, /api/projects 200, unknown path 404 |
| Opt-outs kept | payloadExtraction: true: none needed, removed |
agent-gh release view v4.<minor>.0 -R nuxt/nuxt, for minors 1 to 6.nuxt/server": https://nuxt.com/docs/4.x/getting-started/upgradepackages/schema/src/config/experimental.ts in nuxt/nuxt at v4.6.0.references/compat-v5.md (opens in a new tab)references/minors.md (opens in a new tab)references/server-imports.md (opens in a new tab)references/verification.md (opens in a new tab)scripts/explicit-server-imports.ts (opens in a new tab)scripts/server-imports.test.ts (opens in a new tab)scripts/server-imports.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub harlan-zw/harlan-agent-kit --plugin harlan-agent-kit35 skills in this plugin
/adversarial-reviewReview one pull request adversarially, hand permitted defects to Repair, verify the remote head, and publish the Harlan Agent Kit bot status. Use for rigorous pre-merge PR review./agent-feedbackImprove one Agent skill from explicit Review feedback. Use only for the agent-feedback Routine./agent-retroWeekly retro of Harlan GitHub Agent sessions. Group transcripts by goal, find repeated and wasted work, and rank fixes to the controller, prompts, skills, or model. Use for agent retro, session review, agent efficiency, or self-improvement runs.Other plugins' skills for the same job