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
useFetchvsuseAsyncDatavs$fetch, stable cache keys,lazy,server: false, and payload trimming withpick. - Route rules: ready-made
routeRulesconfig showing prerender, SWR, ISR, client-only, and Nitro cache strategies per route group. - Performance:
Lazycomponent prefix,hydrate-on-visible, anddefineLazyHydrationComponent()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
- "My product page throws a hydration mismatch" → the skill traces non-deterministic render state and
route.fullPathusage. - "Blog on ISR, catalog on SWR, admin client-rendered" → it generates the matching
routeRulesblock. - "Comments block page navigation" → it suggests
useLazyFetchplusLazyComments v-ifwith 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)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the 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.
- Open your terminal.
- Clone the skill repo:
git clone https://github.com/aiskillstore/marketplace.git /tmp/aiskillstore - Create the skill folder:
mkdir -p ~/.claude/skills/nuxt4-patterns - Copy the files:
cp -r /tmp/aiskillstore/pending/affaan-m/nuxt4-patterns/* ~/.claude/skills/nuxt4-patterns/ - Verify with
ls ~/.claude/skills/nuxt4-patternsthatSKILL.mdis present. - Restart Claude Code, then ask something like "review this Nuxt 4 page for hydration issues" to trigger the skill.