nuxt-patterns
Skill2 starsChanged 8 days agoMITView on GitHub
Nuxt 3+ patterns for rendering modes, data fetching (useFetch, useAsyncData, $fetch), server routes, SSR-safe state, file-based routing, the Nitro runtime, and review checklist. Use whenever the project contains a `nuxt.config.*`, `nuxt` in `package.json`, or `app/pages/`/`app/composables/` (Nuxt 4 `srcDir`), root-level `pages/`/`composables/` (Nuxt 3), or a root `server/` directory, OR the user asks about Nuxt, its data-fetching composables, its server routes, or its SSR behavior, even if Nuxt is not mentioned by name.
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- auditSkill
- backup-patternsSkill
- bash-patternsSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- logging-patternsSkill
- referenceSkill
- metaSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- opentofu-patternsSkill
- prSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- security-patternsSkill
- slop-patternsSkill
- storybook-patternsSkill
- tailwind-patternsSkill
- test-patternsSkill
- typescript-patternsSkill
- unslopSkill
- vps-provisioningSkill
- vue-patternsSkill
- wcag-auditSkill
- writeSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Default assumption: Nuxt 4 (current stable, latest 4.5.x) with Universal Rendering (SSR).
- Very specific: line 11
Verify the installed version via nuxt --version or package.json.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Nuxt patterns
Default assumption: Nuxt 4 (current stable, latest 4.5.x) with Universal Rendering (SSR).
- Nuxt 3 reached end-of-life on 2026-07-31; Nuxt 3 projects are still common and most patterns here apply, but flag the EOL and the version notes below cover deltas.
- Verify the installed version via
nuxt --versionorpackage.json; minor-version deltas may affect module resolution and Nitro config.
Reference files
| File | Covers |
| reference/anti-patterns.md | Severity-labeled anti-patterns: SSR state leakage, fetch dedup, runtimeConfig |
| reference/rendering.md | SSR, SPA, SSG, hybrid via routeRules, edge rendering |
| reference/data-fetching.md | useFetch, useAsyncData, $fetch, dedup, lazy fetching |
| reference/state.md | useState SSR-safety, module-level leakage, Pinia, composables |
| reference/routing.md | File-based routes, layouts, route middleware vs server middleware, definePageMeta |
| reference/server.md | Nitro, server routes, validation, runtimeConfig and env-var conventions |
References
- Nuxt docs: https://nuxt.com/docs
- Nuxt blog (releases): https://nuxt.com/blog
- Rendering concepts: https://nuxt.com/docs/guide/concepts/rendering
- Server engine (Nitro): https://nuxt.com/docs/guide/concepts/server-engine
- Data fetching: https://nuxt.com/docs/getting-started/data-fetching
useState: https://nuxt.com/docs/api/composables/use-stateruntimeConfig: https://nuxt.com/docs/guide/going-further/runtime-config- Daniel Roe (Nuxt lead): https://roe.dev/
- Anthony Fu (Vite/Nuxt overlap): https://antfu.me/
- Sebastien Chopin (Nuxt creator): https://github.com/atinux
Version notes
Checked: 2026-09-26 against https://nuxt.com/blog, https://github.com/nuxt/nuxt/releases and https://nuxt.com/docs/4.x/api/nuxt-config#srcdir
- 4.5 (2026-07):
enabledoption onuseFetch/useAsyncData,useLayoutcomposable, stable error codes, named views by filename. No pattern here changed. - 4.4 (2026-03): custom
useFetch/useAsyncDatafactories (unverified on 2026-09-12; release notes not reachable). - Nuxt 3: end-of-life 2026-07-31, final release 3.21.x. Nuxt 2: end-of-life 2024-06-30.
Nitro and h3 version independently of Nuxt; verify version-sensitive claims against the current docs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

