Skip to content

Nuxt 4 production guide covering hydration fixes, performance tuning, Vitest testing, and Nuxt 3 to 4 migration.

CCM score
50 of 100
skills.sh installs
435
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers hydration mismatch debugging, performance and Core Web Vitals, Vitest component testing, deployment, and v3 to v4 migration
  • Includes reference files for hydration, performance, Vitest, and Cloudflare deployment, loaded only when the matching task applies
  • Explains fixes for hydration mismatches such as Math.random(), browser APIs on the server, and third-party scripts, using useState, onMounted, and ClientOnly
  • Designed for Nuxt 4.x projects that need production hardening or a move off Nuxt 3

Install

$ npx -y skills add secondsky/claude-skills --skill nuxt-production -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Nuxt 4 Production Guide

Hydration, performance, testing, deployment, and migration patterns.

What's New in Nuxt 4

v4.2 Features (Latest)

1. Abort Control for Data Fetching

const controller = ref<AbortController>()

const { data } = await useAsyncData(
  'users',
  () => $fetch('/api/users', { signal: controller.value?.signal })
)

const abortRequest = () => {
  controller.value?.abort()
  controller.value = new AbortController()
}

2. Async Data Handler Extraction

  • 39% smaller client bundles
  • Data fetching logic extracted to server chunks
  • Automatic optimization (no config needed)

3. Enhanced Error Handling

  • Dual error display: custom error page + technical overlay
  • Better error messages in development

v4.1 Features

1. Enhanced Chunk Stability

  • Import maps prevent cascading hash changes
  • Better long-term caching

2. Lazy Hydration

<script setup>
const LazyComponent = defineLazyHydrationComponent(() =>
  import('./HeavyComponent.vue')
)
</script>

Breaking Changes from v3

Details

Repository
github.com/secondsky/claude-skills
Categories
Frontend & UI Code, Testing & QA
First seen
Jun 3, 2026

Questions

What does the nuxt-production skill do?

The nuxt-production skill covers Nuxt 4 production work: fixing hydration mismatches, optimizing performance and Core Web Vitals, writing tests with Vitest, deploying to Cloudflare Pages, Workers, Vercel or Netlify, and migrating from Nuxt 3 to Nuxt 4. It loads focused reference guides for hydration, performance, testing and deployment as needed.

How do I install the nuxt-production skill?

Run npx -y skills add secondsky/claude-skills --skill nuxt-production -y in your project. This installs the skill into your coding agent so it can guide hydration, performance, testing, deployment and migration work on your Nuxt app.

Which other skills lead the Frontend & UI Code category?

nuxt-production sits in the Frontend & UI Code category alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. Its focus is production Nuxt 4 work rather than general React or design guidance.

Is nuxt-production useful for migrating from Nuxt 3 to Nuxt 4?

Yes, the skill includes a breaking-changes table covering the move from Nuxt 3 to Nuxt 4. It lists changes such as the source directory moving to app/, shallow data reactivity by default, undefined as the default value, and server-side route middleware.

More from secondsky/claude-skills

All 116

Similar to Nuxt Production

More Frontend & UI Code