nuxt

Implements Nuxt 4 applications with SSR, file-based routing, auto-imports, and Nitro deployment.

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/bramanda48/skills --skill nuxt-bramanda48
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuxt
Source: https://github.com/bramanda48/skills/tree/main/skills/nuxt
Command: npx skills add https://github.com/bramanda48/skills --skill nuxt-bramanda48

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building full-stack Vue applications requires coordinating SSR rendering, routing, data fetching, state management, and deployment configuration, and Nuxt 4's conventions (like the new app/ srcDir and changed path aliases) differ enough from Nuxt 3 that outdated guidance causes real bugs. ## Core Features & Use Cases - Framework Reference: Covers Nuxt 4 directory structure, configuration, CLI commands, file-based routing, and rendering modes including hybrid rendering and route rules. - Data Fetching & SSR Guidance: Documents useFetch, useAsyncData, $fetch, createUseFetch factories, caching strategies, and how to avoid hydration mismatches and SSR context leaks. - Extensibility: Explains modules, layers, lifecycle hooks, and module authoring with Nuxt Kit for building reusable extensions. - Use Case: When building a Nuxt app that fetches data from an API, use this Skill to set up a typed createUseFetch composable with auth interceptors, configure route rules for hybrid rendering, and deploy to Vercel or Cloudflare with the correct Nitro preset. ## Quick Start Use the nuxt skill to create a Nuxt 4 page that fetches posts from an API with useFetch and deploys with the Vercel preset.

Frequently Asked Questions about nuxt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch data in Nuxt without double fetching on server and client?

Use useFetch or useAsyncData instead of calling $fetch directly in setup. These composables fetch on the server, serialize the result into the payload, and hydrate it on the client without a second request.

What changed in Nuxt 4 directory structure compared to Nuxt 3?

Nuxt 4 moves the default srcDir to app/, so app.vue, components, composables, and pages live under app/ while server/, shared/, and nuxt.config.ts stay at the root. The ~ and @ aliases now point to app/, and ~~ or @@ point to the project root.

How do I create a reusable typed fetch composable in Nuxt?

Use the createUseFetch factory exported from app/composables to build a typed composable with shared baseURL, headers, and interceptors. Pass a function instead of an object when defaults must override caller options or when you need useNuxtApp.

Why does Nuxt show hydration mismatch errors?

Hydration mismatches occur when server-rendered HTML differs from the client render, typically from browser APIs like localStorage, random values, or time-based output in setup. Use useCookie, useState, or ClientOnly to keep server and client output consistent.

Can Nuxt apps deploy to Cloudflare or other edge platforms?

Yes, Nuxt uses Nitro as its server engine, which supports presets for Cloudflare Pages, Vercel, Netlify, Node.js, and static hosting. Set the preset in nuxt.config.ts or via the NITRO_PRESET environment variable before building.

When should I use runtimeConfig versus app.config in Nuxt?

Use runtimeConfig for secrets and values overridden by environment variables, with public keys exposed to the client. Use app.config for public build-time tokens like theme settings that support hot module replacement but cannot be changed via env vars.