Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
onmax avatar

Nuxt

  • 7.3k installs
  • 696 repo stars
  • Updated July 27, 2026
  • onmax/nuxt-skills

nuxt is an agent skill for Nuxt 4.3+ development with on-demand references for server routes routing middleware composables components and configuration.

About

nuxt is an agent skill for Nuxt 4.3+ projects providing progressive guidance on server routes file-based routing middleware plugins composables components and configuration. Reference files load on demand covering server.md for API routes validation with Zod WebSocket and SSE, routing.md for pages layouts and typed router, middleware-plugins.md for route guards and app lifecycle, nuxt-composables.md for useFetch and useRequestURL, nuxt-components.md for NuxtLink NuxtImg NuxtTime, and nuxt-config.md for modules auto-imports and layers. Quick start shows defineEventHandler with getValidatedQuery Zod parsing on server/api routes. Nuxt 4 differences include NuxtPage instead of Nuxt, getRouterParam instead of context.params, and useRequestURL origin instead of window.origin. The skill emphasizes token efficiency by loading only task-relevant reference files rather than all docs at once and points to official Nuxt h3 and Nitro sources for advanced cases. Related skills include vue for composables nuxt-ui nuxthub nuxt-content and nuxt-modules for specialized work.

  • Nuxt 4.3+ guidance with progressive reference file loading by task.
  • server.md covers h3 v1 API routes Zod validation WebSocket and SSE.
  • Nuxt 4 migrations: NuxtPage getRouterParam useRequestURL typed router.
  • Quick start defineEventHandler with getValidatedQuery Zod defaults.
  • Related skills: vue nuxt-ui nuxthub nuxt-content nuxt-modules.

Nuxt by the numbers

  • 7,252 all-time installs (skills.sh)
  • +66 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #73 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

nuxt capabilities & compatibility

Capabilities
server api routes with h3 defineeventhandler and · file based routing pages layouts and typed route · route middleware and plugin lifecycle patterns · nuxt composables usefetch userequesturl navigati · nuxtlink nuxtimg nuxttime component guidance · nuxt.config modules auto imports and layers conf
Use cases
frontend · api development · devops
From the docs

What nuxt says it does

Use when working on Nuxt 4+ projects - provides server routes, file-based routing, middleware patterns, Nuxt-specific composables, and configuration with latest docs.
SKILL.md
`<Nuxt />` | `<NuxtPage />`
SKILL.md
npx skills add https://github.com/onmax/nuxt-skills --skill nuxt

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs7.3k
repo stars696
Security audit2 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryonmax/nuxt-skills

How do I implement Nuxt 4 server APIs file routing middleware and composables using current patterns instead of Nuxt 2 or 3 idioms?

Build Nuxt 4.3+ apps with server routes, file-based routing, middleware, composables, and progressive reference loading.

Who is it for?

Nuxt 4.3+ projects needing server routes typed routing middleware plugins or composable guidance without loading all docs.

Skip if: Nuxt 2 legacy patterns, non-Nuxt Vue SPA-only apps, or database setup without the nuxthub skill.

When should I use this skill?

User works on Nuxt 4 server routes pages middleware plugins composables or nuxt.config.ts modules.

What you get

Task-appropriate Nuxt 4 code and patterns loaded from the relevant reference files with correct h3 and Nitro conventions.

  • Nuxt pages and layouts
  • Server route handlers
  • Middleware and plugin configs

By the numbers

  • Updated for Nuxt 4.3+
  • Covers h3 v1 and Nitropack v2 patterns

Files

SKILL.mdMarkdownGitHub ↗

Nuxt 4+ Development

Progressive guidance for Nuxt 4+ projects (v4.3+) with latest patterns and conventions.

When to Use

Working with:

  • Server routes (API endpoints, server middleware, server utils)
  • File-based routing (pages, layouts, route groups)
  • Nuxt middleware (route guards, navigation)
  • Nuxt plugins (app extensions)
  • Nuxt-specific features (auto-imports, layers, modules)

Available Guidance

Read specific files based on current work:

  • [references/server.md](references/server.md) - API routes, server middleware, validation (Zod), WebSocket, SSE
  • [references/routing.md](references/routing.md) - File-based routing, route groups, typed router, definePage
  • [references/middleware-plugins.md](references/middleware-plugins.md) - Route middleware, plugins, app lifecycle
  • [references/nuxt-composables.md](references/nuxt-composables.md) - Nuxt composables (useRequestURL, useFetch, navigation)
  • [references/nuxt-components.md](references/nuxt-components.md) - NuxtLink, NuxtImg, NuxtTime (prefer over HTML elements)
  • [references/nuxt-config.md](references/nuxt-config.md) - Configuration, modules, auto-imports, layers

For Vue composables: See vue skill composables.md (VueUse, Composition API patterns) For UI components: use nuxt-ui skill For database/storage: use nuxthub skill For content-driven sites: use nuxt-content skill For creating modules: use nuxt-modules skill For project scaffolding/CI: use ts-library skill

Loading Files

Consider loading these reference files based on your task:

  • [ ] references/server.md - if creating API endpoints or server middleware
  • [ ] references/routing.md - if setting up pages, layouts, or route groups
  • [ ] references/nuxt-composables.md - if using Nuxt composables (useFetch, useRequestURL, etc.)
  • [ ] references/middleware-plugins.md - if working with middleware or plugins
  • [ ] references/nuxt-components.md - if using Nuxt components (NuxtLink, NuxtImg, etc.)
  • [ ] references/nuxt-config.md - if editing nuxt.config.ts
  • [ ] references/project-setup.md - if setting up CI/ESLint/build tools

DO NOT load all files at once. Load only what's relevant to your current task.

Quick Start

// server/api/hello.get.ts
import { z } from 'zod'

export default defineEventHandler(async (event) => {
  const { name } = await getValidatedQuery(event, z.object({
    name: z.string().default('world'),
  }).parse)
  return { message: `Hello ${name}` }
})

Nuxt 4 vs Older Versions

You are working with Nuxt 4+. Key differences:

Old (Nuxt 2/3)New (Nuxt 4)
<Nuxt /><NuxtPage />
context.paramsgetRouterParam(event, 'name')
window.originuseRequestURL().origin
String routesTyped router with route names
Separate layouts/Parent routes with <slot>

If you're unsure about Nuxt 4 patterns, read the relevant guidance file first.

Latest Documentation

When to fetch latest docs:

  • New Nuxt 4 features not covered here
  • Module-specific configuration
  • Breaking changes or deprecations
  • Advanced use cases

Official sources:

  • Nuxt: https://nuxt.com/docs
  • h3 (server engine): https://v1.h3.dev/
  • Nitro: https://nitro.build/

Token Efficiency

Main skill: ~300 tokens. Each sub-file: ~800-1500 tokens. Only load files relevant to current task.

Related skills

How it compares

Pick the nuxt skill over generic Vue guidance when agents must emit Nitro server routes, Nuxt middleware, and 4.x composable imports correctly.

FAQ

What changed from Nuxt 3 to Nuxt 4?

Use NuxtPage instead of Nuxt, getRouterParam on the server instead of context.params, and useRequestURL for origin instead of window.origin.

Should I load all reference files?

No, load only files relevant to the current task such as server.md for API endpoints or routing.md for pages.

How are server routes validated?

Use defineEventHandler with getValidatedQuery or similar h3 helpers and Zod schemas as shown in the quick start hello.get.ts example.

Is Nuxt safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Frontend Developmentfrontendbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.