- Home
- Skills
- Agents & Orchestration
- Migrate Nuxt 2 to Nuxt 3 or 4, Safe Steps
Migrate Nuxt 2 to Nuxt 3 or 4, Safe Steps
Your coding agent moves a Nuxt 2 app to Nuxt 3 or 4: inventory and estimate first, then config, plugins, middleware, Vuex to Pinia, data fetching and head, one testable step at a time.
$7
Works with the AI Agents you already use
Migrate Nuxt 2 to Nuxt 3 or 4, Safe Steps
Example session with this skill installed
We have a Nuxt 2 app with Vuex, @nuxtjs/axios and @nuxtjs/auth. How big is the move to Nuxt 4, and where do we start?
- Read your context and instructions
- Compiled the migrate nuxt 2
Summary (example run). 38 pages, 6 Vuex modules, 9 modules in nuxt.config.js. The biggest item is auth: @nuxtjs/auth has no Nuxt 3 version and touches middleware, API calls and cookies. Plan it first. Path: rewrite in a new Nuxt 4 project, page by page.
Inventory
| Item | Count or status | Nuxt 4 move |
|---|---|---|
@nuxtjs/axios | 112 calls | Built in: $fetch.create in a plugin |
@nuxtjs/auth | used in 14 pages | nuxt-auth-utils or @sidebase/nuxt-auth |
@nuxtjs/i18n | v7 | v8+, config shape changed |
| Vuex modules | 6 | Pinia, module by module |
asyncData / fetch() | 31 files | useAsyncData / useFetch, unique key each |
Filters, .sync, $on | 19 | Functions, v-model:prop, mitt |
First step: config
export default defineNuxtConfig({
app: { head: { title: 'Orders' } },
runtimeConfig: { public: { apiBase: '' } },
})
apiBase is set at runtime with NUXT_PUBLIC_API_BASE.
Order of work
Config, env, layouts and pages, plugins, middleware, Pinia, data fetching, head, server, Vue 3 changes.
Next steps
- Pick the auth replacement this week.
- Port the API layer and the
ordersstore first, then the pages that use them.
Connects securely to your tools. The creator never sees your data.
About this skill
Nuxt 2 reached end of life in June 2024. Your app still runs on it, a few modules have no Nuxt 3 version, and nobody knows how long the move will take. Nuxt 3 is a rewrite on Vue 3, so this is a port, not a version bump.
This skill gives your agent the order of work and the traps.
What it does
- Starts with an inventory table: every module and UI library with its Nuxt 3 status, plus counts of
asyncData,$store,$axios, filters,.syncand event bus calls. If one module with no Vue 3 version drives the estimate, it says so first. - Picks the path with you: rewrite page by page next to the old app (the default), Nuxt Bridge for big apps that must keep shipping, or in place for small apps.
- Ports in order: config, env to
runtimeConfig, layouts and pages, plugins, middleware, Vuex to Pinia,asyncDataandfetchtouseAsyncDataanduseFetch,headtouseHead, server middleware, then the Vue 3 breaking changes. - Each step ends with the dev server starting clean and the smoke pages checked.
What you get The inventory and plan, ported code step by step, and a final check: same routes return 200, same titles and meta, same redirects and auth cookies.
What it doesn't do It doesn't run a blind codemod over your Vue 2 components. They're ported by hand or with targeted codemods, every diff reviewed.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.
No support for the Vue 2 migration build. Requires manual refactoring for Vue 3 component changes like filters and event buses. Targeted codemods may be needed for large component libraries.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
Node.jsNuxt 2 appnuxtcodemodnuxi
Permissions
File Scopes