Migrate Nuxt 2 to Nuxt 3 or 4, Safe Steps

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    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

    ItemCount or statusNuxt 4 move
    @nuxtjs/axios112 callsBuilt in: $fetch.create in a plugin
    @nuxtjs/authused in 14 pagesnuxt-auth-utils or @sidebase/nuxt-auth
    @nuxtjs/i18nv7v8+, config shape changed
    Vuex modules6Pinia, module by module
    asyncData / fetch()31 filesuseAsyncData / useFetch, unique key each
    Filters, .sync, $on19Functions, 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 orders store 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, .sync and 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, asyncData and fetch to useAsyncData and useFetch, head to useHead, 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

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

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    nuxt.config.*
    package.json
    pages/**/*.vue
    store/**/*
    Listed3 days ago

    What's inside

    Frequently Asked Questions

    It targets the current stable major, Nuxt 4, unless a key module only supports Nuxt 3.

    Only for big apps that must keep shipping features during the move and whose UI kit isn't ported yet. Otherwise it rewrites page by page.

    Not right away. Nuxt 4 detects a root level layout, so that move can wait.

    New in Agents & Orchestration