agentleFS
ku5icku5ic/claude-kit/skills/nuxt-patterns/SKILL.md

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.

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
  1. Distinctive:

    Default assumption: Nuxt 4 (current stable, latest 4.5.x) with Universal Rendering (SSR).

    line 8
  2. Very specific:

    Verify the installed version via nuxt --version or package.json.

    line 11

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 --version or package.json; minor-version deltas may affect module resolution and Nitro config.

Reference files

FileCovers
reference/anti-patterns.mdSeverity-labeled anti-patterns: SSR state leakage, fetch dedup, runtimeConfig
reference/rendering.mdSSR, SPA, SSG, hybrid via routeRules, edge rendering
reference/data-fetching.mduseFetch, useAsyncData, $fetch, dedup, lazy fetching
reference/state.mduseState SSR-safety, module-level leakage, Pinia, composables
reference/routing.mdFile-based routes, layouts, route middleware vs server middleware, definePageMeta
reference/server.mdNitro, server routes, validation, runtimeConfig and env-var conventions

References

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): enabled option on useFetch/useAsyncData, useLayout composable, stable error codes, named views by filename. No pattern here changed.
  • 4.4 (2026-03): custom useFetch/useAsyncData factories (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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.