AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

Nuxt 4 Patterns

A rule set for hydration-safe rendering, SSR-safe data fetching, route rules, and lazy loading in Nuxt 4 apps.

Dev & CodingIntermediate★ 497⑂ 55AI score 9/10Last updated: Nov 24, 2026

What it does

  • Hydration safety: flags non-deterministic values and browser-only APIs in SSR markup and moves them behind onMounted, import.meta.client, ClientOnly, or .client.vue.
  • SSR-safe data fetching: clear criteria for useFetch vs useAsyncData vs $fetch, stable cache keys, lazy, server: false, and payload trimming with pick.
  • Route rules: ready-made routeRules config showing prerender, SWR, ISR, client-only, and Nitro cache strategies per route group.
  • Performance: Lazy component prefix, hydrate-on-visible, and defineLazyHydrationComponent() for below-the-fold UI.
  • Review checklist: five concrete checks for Nuxt pull requests.

Who it's for

  • Frontend developers shipping Nuxt 4 apps with SSR or hybrid rendering
  • Anyone stuck debugging hydration mismatch warnings
  • Teams that need different render strategies for marketing pages, catalogs, and dashboards

Example uses

  1. "My product page throws a hydration mismatch" → the skill traces non-deterministic render state and route.fullPath usage.
  2. "Blog on ISR, catalog on SWR, admin client-rendered" → it generates the matching routeRules block.
  3. "Comments block page navigation" → it suggests useLazyFetch plus LazyComments v-if with an explicit pending state.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/aiskillstore/marketplace/HEAD/pending/affaan-m/nuxt4-patterns/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the pending/affaan-m/nuxt4-patterns folder from the GitHub repo aiskillstore/marketplace into my ~/.claude/skills/nuxt4-patterns/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/aiskillstore/marketplace.git /tmp/aiskillstore && mkdir -p ~/.claude/skills/nuxt4-patterns && cp -r /tmp/aiskillstore/pending/affaan-m/nuxt4-patterns/* ~/.claude/skills/nuxt4-patterns/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open your terminal.
  2. Clone the skill repo: git clone https://github.com/aiskillstore/marketplace.git /tmp/aiskillstore
  3. Create the skill folder: mkdir -p ~/.claude/skills/nuxt4-patterns
  4. Copy the files: cp -r /tmp/aiskillstore/pending/affaan-m/nuxt4-patterns/* ~/.claude/skills/nuxt4-patterns/
  5. Verify with ls ~/.claude/skills/nuxt4-patterns that SKILL.md is present.
  6. Restart Claude Code, then ask something like "review this Nuxt 4 page for hydration issues" to trigger the skill.