nuxt4-patterns

Enforce Nuxt 4 hydration safety, data fetching, and route rendering patterns.

3|Updated Jul 1, 2026
One-click install
npx skills add https://github.com/KeyValueSoftwareSystems/maestro --skill nuxt4-patterns-keyvaluesoftwaresystems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuxt4-patterns
Source: https://github.com/KeyValueSoftwareSystems/maestro/tree/main/skills/stacks/vue/nuxt4-patterns
Command: npx skills add https://github.com/KeyValueSoftwareSystems/maestro --skill nuxt4-patterns-keyvaluesoftwaresystems

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill resolves common architectural friction in Nuxt 4 applications, specifically targeting hydration mismatches, inefficient data fetching, and suboptimal rendering strategies.

Core Features & Use Cases

  • Hydration Safety: Provides patterns to ensure server-rendered HTML matches client-side state, preventing common UI flickers and errors.
  • Rendering Strategy Optimization: Guides the implementation of route rules like SWR, ISR, and prerendering to balance performance and SEO.
  • Data Fetching Best Practices: Standardizes the use of useFetch and useAsyncData to ensure efficient, SSR-safe data loading.

Quick Start

Use the nuxt4-patterns skill to audit my current page component for hydration safety and verify that all data fetching uses the recommended composables.

Frequently Asked Questions about nuxt4-patterns

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

FAQPage Schema
How do I fix hydration mismatches in Nuxt 4 SSR?

To fix hydration mismatches in Nuxt 4 SSR, apply architectural patterns that ensure server-rendered HTML exactly matches client-side state. This prevents common UI flickers and errors by enforcing strict hydration safety during the Nuxt lifecycle.

What is the best way to use useFetch and useAsyncData for SSR-safe data loading?

The best way to use useFetch and useAsyncData for SSR-safe data loading is to standardize their implementation according to Nuxt 4 best practices. This ensures efficient data fetching without causing server and client state discrepancies.

How do I configure Nuxt route rules for SWR, ISR, and prerendering?

Configure Nuxt route rules for SWR, ISR, and prerendering by defining strategic route rendering paths. This optimizes hybrid rendering strategies to balance page load performance and SEO across your full-stack Vue application.

Can I audit my existing Vue page components for Nuxt 4 hydration safety?

Yes, you can audit existing Vue page components for Nuxt 4 hydration safety. The skill reviews your current components to verify adherence to Nuxt 4 lifecycle patterns and proper use of data fetching composables.

When should I optimize rendering strategies in a full-stack Vue application?

Optimize rendering strategies in a full-stack Vue application when facing performance-critical page loads. Implementing route rules like SWR and ISR resolves suboptimal rendering friction and improves overall Nuxt architecture efficiency.