Deft
Ask AI

Search

Search skills, authors and topics

antfu / skills

nuxt

Nuxt full-stack Vue framework guidance for SSR, auto-imports, file-based routing, and server routes.

Install

npx skills add https://github.com/antfu/skills --skill nuxt
metadata
author: Anthony Fu version: "2026.11.5" 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-11-05.

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 [blocked]
Configurationnuxt.config.ts, app.config.ts, aliases, Nuxt 5 defaults, jiti removal, experimentalcore-config [blocked]
CLI CommandsDev server, build, generate, preview, and utility commandscore-cli [blocked]
RoutingFile-based routing, case-sensitive + typed routes, named views, layout props, middlewarecore-routing [blocked]
Data FetchinguseFetch, useAsyncData, $fetch, typed routes, createUseFetch factories, cachingcore-data-fetching [blocked]
ModulesCreating and using Nuxt modules, Nuxt Kit utilitiescore-modules [blocked]
DeploymentPlatform-agnostic deployment with Nitro, Vercel, Netlify, Cloudflarecore-deployment [blocked]

Features

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

Rendering

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

Best Practices

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

Advanced

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