nuxt-4-minors-migration
/nuxt-4-minors-migration
Upgrade a Nuxt 4 site to the latest 4.x release with `future.compatibilityVersion: 5`, then migrate code that the 4.1 to 4.6 minors deprecated or improved. Use for Nuxt minor upgrades, enabling Nuxt 5 compatibility, explicit server imports or `nuxt/server`, and adopting new Nuxt 4.x features across sites.
- Author
- harlan-zw ↗
- Repository
- harlan-claude-code ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 8
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/explicit-server-imports.ts, scripts/server-imports.test.ts, scripts/server-imports.ts
What it does and when to use it
Upgrade a Nuxt 4 site to the latest 4.x release with `future.compatibilityVersion: 5`, then migrate code that the 4.1 to 4.6 minors deprecated or improved. Use for Nuxt minor upgrades, enabling Nuxt 5 compatibility, explicit server imports or `nuxt/server`, and adopting new Nuxt 4.x features across sites.
Arguments
/nuxt-4-minors-migration [site path or repository]
Original author description
Upgrade a Nuxt 4 site to the latest 4.x release with `future.compatibilityVersion: 5`, then migrate code that the 4.1 to 4.6 minors deprecated or improved. Use for Nuxt minor upgrades, enabling Nuxt 5 compatibility, explicit server imports or `nuxt/server`, and adopting new Nuxt 4.x features across sites.
How it works
- Before you start
- Rules
- Order
- Tiers
- Report
- Sources
SKILL.md preview
--- name: nuxt-4-minors-migration description: "Upgrade a Nuxt 4 site to the latest 4.x release with `future.compatibilityVersion: 5`, then migrate code that the 4.1 to 4.6 minors deprecated or improved. Use for Nuxt minor upgrades, enabling Nuxt 5 compatibility, explicit server imports or `nuxt/server`, and adopting new Nuxt 4.x features across sites." argument-hint: "[site path or repository]" license: MIT --- # Nuxt 4 Minors Migration 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. ## Before you start 1. Check the latest 4.x release: `npm view nuxt dist-tags.latest`. 2. If a minor newer than 4.6 exists, read its notes: `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. 3. Read the repository Agent instructions, package manager, catalogs, every `nuxt.config.ts`, layers, local `modules/`, CI Node version, and deploy target. 4. Mutate only in a task-owned `wt` worktree. Read the [worktree isolation contract](../../references/worktree-isolation.md). 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](../nuxt-module-migration/SKILL.md) Skill. This Skill covers apps, their layers, and their local `modules/`. ## Rules - **A green build proves nothing about server imports.** On 4.6, compatibility version 5 turns server auto-imports off. A build without them exits 0, then every affected handler returns 500. Any module that calls `addServerImports` turns them back on, types included, so typecheck cannot catch the gap either. The codemod dry run is the gate. Read [server imports](references/server-imports.md). - **Every opt-out needs a reason.** If you keep an option that undoes a compatibility version 5 default, add a comment that names the blocker and links the issue. - **Sessions need approval.** Moving session helpers to `nuxt/server` changes the cookie, so every user is signed out once. Never do it without explicit approval. - **Check mixed-case URLs before shipping.** Compatibility version 5 makes routing case sensitive. A mixed-case URL that search engines indexed then returns 404. - **Never deploy.** The repository's deploy workflow ships the change after merge. - **Never weaken a gate to pass.** Fix typecheck errors from `noUncheckedIndexedAccess`, typed pages, and typed `$fetch`. Do not turn the checks off. ## Order | Step | Do | Reference | | --- | --- | --- | | 1 | Record the baseline on the base branch: install, lint, typecheck, test, build. | [verification](references/verification.md) | | 2 | Raise the Node floor, upgrade Nuxt to the latest 4.x release, update every other dependency, dedupe the lockfile. | [minors](references/minors.md#upgrade) | | 3 | Make server imports explicit with the codemod. | [server imports](references/server-imports.md) | | 4 | Turn on compatibility version 5. Remove opt-outs and redundant flags. Fix each changed default. | [compatibility version 5](references/compat-v5.md) | | 5 | Replace deprecated APIs (Tier 1). | [minors](references/minors.md) | | 6 | Adopt new features where the evidence fits (Tier 2). | [minors](references/minors.md) | | 7 | Verify: gates, runtime smoke, browser pass, warnings. | [verification](references/verification.md) | | 8 | Open the pull request with the `pr` Skill. | [verification](references/verification.md#pull-request) | 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. ## Tiers 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. | ## Report End with the verification table from [verification](references/verification.md#report). 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 | ## Sources - Release notes: `agent-gh release view v4.<minor>.0 -R nuxt/nuxt`, for minors 1 to 6. - Upgrade guide, "Testing Nuxt 5" and "Moving to `nuxt/server`": <https://nuxt.com/docs/4.x/getting-started/upgrade> - Nuxt 5 upgrade guide: <https://nuxt.com/docs/5.x/getting-started/upgrade> - Defaults that compatibility version 5 changes: `packages/schema/src/config/experimental.ts` in `nuxt/nuxt` at `v4.6.0`.
Files in this package (8)
- SKILL.md 5 KB
- references/compat-v5.md 10 KB
- references/minors.md 12 KB
- references/server-imports.md 8 KB
- references/verification.md 4 KB
- scripts/explicit-server-imports.ts 8 KB
- scripts/server-imports.test.ts 12 KB
- scripts/server-imports.ts 17 KB
Versions
The database has no other skills named nuxt-4-minors-migration.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 8e3f4fd866ef (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 90vue-nuxt
Build and upgrade Vue or Nuxt applications with reactive state, server rendering and typed data boundaries. Use when implementing Vue components, composables or Nuxt routes; distinguish client-only Vue from Nuxt server/runtime features. - 100nuxt-data-audit
Use when auditing Nuxt data-fetching, performance, or client-server pagination schema boundaries. NOT for 非 Nuxt 專案,NOT for general code review。 - 95nuxt3
Nuxt 3 full-stack Vue framework. Covers file-based routing, data fetching, server routes, and auto-imports. Use when building Nuxt applications. USE WHEN: user mentions "Nuxt", "Nuxt 3", asks about "useFetch", "Nuxt server routes", "Nitro", "Nuxt auto-imports", "Nuxt… - 85nuxt
Nuxt full-stack Vue framework with SSR, auto-imports, and file-based routing. Use when working with Nuxt apps, server routes, useFetch, middleware, or hybrid rendering. - 85nuxt
Nuxt full-stack Vue framework with SSR, auto-imports, and file-based routing. Use when working with Nuxt apps, server routes, useFetch, middleware, or hybrid rendering. - 100bun-nuxt
Use when running Nuxt 3 with Bun runtime, building Vue/Nuxt apps with Bun, or configuring Nuxt projects to use Bun for development and production.