Index of every page on this site: llms.txt
All skills
harlan-zw avatar

/nuxt-4-minors-migration

@2a530d0
Run it yourself

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.

  • 8 files
  • 77.4 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/harlan-zw/harlan-agent-kit/nuxt-4-minors-migration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈83 tokens for metadata: the name and description. ≈1.2k when used: this file. ≈8.8k more on demand in 4 files.

Description uses 4.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈332 characters, or 4.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

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/.

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.
  • 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
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.

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

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 2a530d0. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated last month
argument-hint
[site path or repository]

README badge

README badge for harlan-zw/harlan-agent-kit/nuxt-4-minors-migration