PluginBench
Skill
Pass
Audit score 90

nuxt

antfu/skills

Full-stack Vue framework with SSR, file-based routing, auto-imports, and Nitro server engine.

What is nuxt?

Nuxt is a full-stack Vue framework providing server-side rendering, file-based routing, auto-imports, and a powerful module system built on Nitro for universal deployment. Use it when building Nuxt applications, server routes, data fetching with useFetch, middleware, or hybrid rendering modes.

  • File-based routing with case-sensitive, typed routes and layout support
  • Server-side rendering (SSR) and hybrid rendering modes with Nitro v3 server engine
  • Auto-imports for Vue/Nuxt composables and components with lazy-loading strategies
  • Data fetching with useFetch, useAsyncData, and $fetch with typed route integration
  • State management via useState composable and Pinia integration
  • Module system for extending applications with reusable layers and custom modules

How to install nuxt

npx skills add https://github.com/antfu/skills --skill nuxt
Prerequisites
  • Node.js 22.19 or 24.11+
  • Nuxt 5.x project initialized
  • Vite 8 (Rolldown) as bundler
Claude Code
Cursor
Windsurf
Cline

How to use nuxt

  1. 1.Review the directory structure: app/ for Vue code, server/ and nuxt.config.ts at project root
  2. 2.Configure nuxt.config.ts for your rendering mode (SSR, SPA, or hybrid) and route rules
  3. 3.Create pages in app/pages/ using file-based routing; use app/components/ for auto-imported components
  4. 4.Define server routes in server/routes/ and use nuxt/server imports for server utilities
  5. 5.Use useFetch or useAsyncData in components for data fetching with typed routes
  6. 6.Build with `nuxi build` and deploy using Nitro's platform-agnostic deployment

Use cases

Good for
  • Building full-stack web applications with server routes and API endpoints
  • Creating universally deployable apps across Node.js, serverless, and edge platforms
  • Developing SSR applications with automatic hydration and data fetching
  • Building component libraries and reusable application layers
  • Setting up type-safe data fetching with auto-generated route types
Who it's for
  • Vue.js developers building full-stack applications
  • Teams needing server-side rendering and SEO optimization
  • Developers deploying to serverless or edge platforms
  • Frontend engineers working on modular, scalable applications

nuxt FAQ

What changed in Nuxt 5?

Nuxt 5 defaults many experimental flags: server code uses Nitro v3 (h3 v2, Web-standard Request/Response), server utilities require explicit `nuxt/server` imports, routing is case-sensitive and typed by default, and Vite 8 (Rolldown) is the bundler. Node 22.19+ is required.

Where should I put my code?

Vue app code (pages, components, composables) goes in `app/`; server code, config, and modules stay at the project root. Use `~`/`@` aliases for `app/` and `~~`/`@@` for the root.

How do I fetch data safely on server and client?

Use useFetch or useAsyncData in components; they handle SSR hydration automatically. For server-only logic, use server routes in `server/routes/` and call them via $fetch with typed routes.

Can I use this for static site generation?

Yes, use `nuxi generate` to pre-render routes. Configure route rules in nuxt.config.ts for hybrid rendering (some routes SSR, others prerendered).

How do I deploy a Nuxt app?

Nitro supports Node.js, serverless (AWS Lambda, Vercel, Netlify), and edge platforms (Cloudflare, Deno). Build with `nuxi build` and deploy the output according to your platform.

Full instructions (SKILL.md)

Source of truth, from antfu/skills.


name: nuxt description: 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. metadata: author: Anthony Fu version: "2026.9.25" source: Generated from https://github.com/nuxt/nuxt, scripts located at https://github.com/antfu/skills

Nuxt is a full-stack Vue framework that provides server-side rendering, file-based routing, auto-imports, and a powerful module system. It uses Nitro as its server engine for universal deployment across Node.js, serverless, and edge platforms.

The skill is based on Nuxt 5.x (5.0.0-0), generated at 2026-09-25.

Directory layout: the default srcDir is app/ — Vue app code (app.vue, components/, composables/, pages/, etc.) lives under app/, while server/, shared/, public/, modules/, layers/ and nuxt.config.ts stay at the project root. The ~/@ aliases point at app/; use ~~/@@ for the root.

Nuxt 5 note: Nuxt 5 makes many former experimental flags the default. The biggest shifts for agents: server code moves to Nitro v3 (h3 v2, Web-standard Request/Response), server utilities import from nuxt/server and are no longer auto-imported by default, $fetch/useFetch are typed from generated route types, routing is case-sensitive and typed by default, and the bundler is Vite 8 (Rolldown). Nuxt 5 requires Node 22.19/24.11+. A Nitro v2 compatibility layer (nitroLegacy) keeps older server code building during migration. See individual references for details.

Core

TopicDescriptionReference
Directory StructureNuxt 4 app/ srcDir, shared/, aliases, conventionscore-directory-structure
Configurationnuxt.config.ts, app.config.ts, aliases, Nuxt 5 defaults, jiti removal, experimentalcore-config
CLI CommandsDev server, build, generate, preview, and utility commandscore-cli
RoutingFile-based routing, case-sensitive + typed routes, named views, layout props, middlewarecore-routing
Data FetchinguseFetch, useAsyncData, $fetch, typed routes, createUseFetch factories, cachingcore-data-fetching
ModulesCreating and using Nuxt modules, Nuxt Kit utilitiescore-modules
DeploymentPlatform-agnostic deployment with Nitro, Vercel, Netlify, Cloudflarecore-deployment

Features

TopicDescriptionReference
Composables Auto-importsVue/Nuxt composables, custom composables, shared/, useAnnouncerfeatures-composables
Components Auto-importsComponent naming, lazy loading, hydration strategiesfeatures-components-autoimport
Built-in ComponentsNuxtLink, NuxtPage, NuxtLayout, NuxtAnnouncer, ClientOnly, and morefeatures-components
State ManagementuseState composable, SSR-friendly state, Pinia integrationfeatures-state
Server RoutesAPI routes, nuxt/server imports, Nitro v3 (h3 v2), sessions, middlewarefeatures-server

Rendering

TopicDescriptionReference
Rendering ModesUniversal (SSR), client-side (SPA), hybrid rendering, route rulesrendering-modes

Best Practices

TopicDescriptionReference
Data Fetching PatternsEfficient fetching, caching, parallel requests, error handlingbest-practices-data-fetching
SSR & HydrationAvoiding context leaks, hydration mismatches, composable patternsbest-practices-ssr

Advanced

TopicDescriptionReference
LayersExtending applications with reusable layersadvanced-layers
Lifecycle HooksBuild-time, runtime, and server hooksadvanced-hooks
Module AuthoringPublishable modules with Nuxt Kit, keyed composables, dependenciesadvanced-module-authoring