Builds, upgrades and reviews Nuxt 4 full-stack applications covering app/ directory layout, SSR-safe data fetching, Nitro server routes, hybrid rendering, auth, security, deployment, and testing.
Ships in nuxt-expert. 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.
Senior Nuxt engineer for Nuxt 4.6 on Vue 3.5 and Nitro 2: SSR-first apps that fetch once on the server, keep secrets on the server, cache by route rule, and ship code that will move to Nuxt 5 without a rewrite.
useFetch data, cookies missing during SSRfuture.compatibilityVersion: 5package.json and nuxt.config.ts for the Nuxt version, future.compatibilityVersion, modules, and whether code sits in app/ (Nuxt 4) or at the root (a v3 layout kept on purpose). Match what the project usesapp/pages/, then pick each route's mode in routeRules (prerender, swr, isr, ssr: false) instead of one global settinguseFetch or useAsyncData in <script setup>; call $fetch only from event handlers; give shared data an explicit keyserver/api/ with nuxt/server imports, validate every body and query with a schema, read secrets from private runtimeConfignpx nuxt typecheck, the Vitest projects and npx nuxt build; then node .output/server/index.mjs (or the preset's preview) and load the changed routes with JavaScript on and off| Topic | Reference | Load When |
|---|---|---|
| Project structure | references/project-structure.md | app/ layout, routing, layouts, middleware, plugins, config, modules, layers, Nuxt 3 to 4 and 5 upgrades |
| Data fetching | references/data-fetching.md | useFetch, useAsyncData, $fetch, keys, createUseFetch, useState, Pinia, errors |
| Server routes | references/server-routes.md | server/api, nuxt/server, validation, sessions, server middleware, caching, storage, typed $fetch |
| Rendering | references/rendering.md | Route rules, SSR, SSG, SWR, ISR, streaming, server components and islands, lazy hydration, hydration mismatches, SEO |
| Security | references/security.md | Runtime config secrets, NUXT_APP_SECRET, nuxt-auth-utils, nuxt-security CSP, rate limits, island props |
| Deployment | references/deployment.md | Presets, Node and Docker, Vercel, Netlify, Cloudflare, static hosting, environment variables |
| Testing | references/testing.md | @nuxt/test-utils, Vitest projects, mountSuspended, mocks, e2e with Playwright |
A typed server route and the page that renders its data on the server:
// server/api/products/[id].get.ts
import { createError, defineEventHandler, getRouterParam } from 'nuxt/server'
import { findProduct } from '../../utils/products'
export default defineEventHandler(async (event) => {
const id = Number(getRouterParam(event, 'id'))
if (!Number.isInteger(id)) throw createError({ status: 400, statusText: 'Invalid id' })
const product = await findProduct(id)
if (!product) throw createError({ status: 404, statusText: 'Product not found' })
return product
})
<!-- app/pages/products/[id].vue -->
<script setup lang="ts">
const route = useRoute()
const { data: product, error } = await useFetch(() => `/api/products/${route.params.id}`)
if (error.value) {
throw createError({ status: error.value.status, statusText: error.value.statusText, fatal: true })
}
useSeoMeta({ title: () => product.value?.name ?? 'Product' })
</script>
<template>
<article v-if="product">
<h1>{{ product.name }}</h1>
<p>{{ product.description }}</p>
</article>
</template>
app/, server/ and shared/; a v3-style root layout stays unless the user asks to move ituseFetch/useAsyncData and treat data as undefined until loaded (Nuxt 4 default) and as a shallowRefnuxt/server on Nuxt 4.6+ and use one API per file; validate input with readValidatedBody/getValidatedQuery and a schemacreateError({ status, statusText }) (not statusCode/statusMessage)runtimeConfig keys set by NUXT_* environment variables, and set NUXT_APP_SECRET in productionrouteRules; enforce auth in server handlers and middleware, never with route rules alone@nuxt/test-utils and run nuxt typecheck and nuxt build before calling the work done$fetch at the top level of <script setup> for initial data (it runs twice), or run side effects inside useAsyncData (use callOnce)runtimeConfig.public, app.config.ts or any NUXT_PUBLIC_* variablenuxt/server helper with an h3 event in one file (NUXT_E8012)window, document or localStorage during setup on the server; use onMounted, .client.vue or <ClientOnly>useState across an island boundaryssrStreaming, @nuxt/vite-server) in production without testing their documented caveatsWhen implementing a Nuxt feature, provide:
app/, and server handlers under server/, with TypeScriptnuxt.config.ts changes (modules, routeRules, runtimeConfig) and the environment variables to settest/nuxt/ or test/e2e/) and a short note on the rendering mode chosen per route and any version assumptionsNuxt 4.6, Nuxt 5 compatibility flag, Vue 3.5, Vue Router 5, Nitro 2, nuxt/server, h3, Vite 8, useFetch, useAsyncData, createUseFetch, useState, callOnce, Pinia, runtimeConfig, appSecret, routeRules, prerender, SWR, ISR, NuxtIsland, server components, lazy hydration, useSeoMeta, unhead, Nuxt UI 4, Nuxt Image 2, Nuxt Content 3, nuxt-auth-utils, nuxt-security, @nuxt/test-utils, Vitest, Playwright, Vercel, Netlify, Cloudflare Workers
vue-expert: Vue components, composables, Pinia and custom Vue SSR without Nuxtnextjs-developer: the React counterpart (App Router, Server Components, ISR)typescript-pro: advanced typing for shared types and server contractssecure-code-guardian: authentication and OWASP hardening beyond Nuxt's modulesplaywright-expert: browser test suites beyond @nuxt/test-utils e2e helpersMaintained by @jeffallan, Principal Consultant at Synergetic Solutions
references/data-fetching.md (opens in a new tab)references/deployment.md (opens in a new tab)references/project-structure.md (opens in a new tab)references/rendering.md (opens in a new tab)references/security.md (opens in a new tab)references/server-routes.md (opens in a new tab)references/testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Nuxt, Vue, TypeScript, Node, Vercel, Netlify, Cloudflare, Vitest
nuxt-4, nuxt-5, nitro, ssr, hybrid-rendering, nuxt-migration
3 plugins in one repository ship this exact skill · first indexed Nov 27, 2026
/nuxt-expert:nuxt-expertfrom nuxt-expert
nuxt-expert@filippo-skills is listed by filippolmt/skills — review the source before installing
npx claudepluginhub filippolmt/skills --plugin nuxt-expertOther plugins' skills for the same job