secondsky/claude-skills/nuxt-core
- community
Checking that the SKILL.md file is still in the repository.
Nuxt 5 core framework with project setup, routing, SEO, error handling, and Vite 8/Nitro v3 configuration. Use when creating Nuxt 5 apps, setting up routing, or migrating config.
Install
npx vskill@latest install secondsky/claude-skills/nuxt-coreSKILL.md
Nuxt 5 Core Fundamentals
Project setup, configuration, routing, SEO, and error handling for Nuxt 5 applications.
Note: As of 2026-08-03, Nuxt 5 is not yet stable (current stable line is Nuxt 4.x; see thenuxt-v4plugin). This skill documents the upcoming Nuxt 5 APIs (Nitro v3, h3 v2, Vite 8/Rolldown). Treat version numbers below as targets, not pinned production releases.
Quick Reference
Version Requirements
| Package | Minimum | Recommended | |
|---|---|---|---|
| nuxt | 5.0.0 | 5.x | |
| vue | 3.5.0 | 3.5.x | |
| nitro | 3.0.0 | 3.x | |
| vite | 8.0.0 | 8.x | |
| typescript | 5.0.0 | 5.x |
Key Commands
Secure Installation
Scaffolding tools like bunx nuxi init download and execute remote code. Before running, follow supply chain security best practices:
- Block post-install scripts —
npm config set ignore-scripts true(or Bun: disabled by default) - Cooldown period — Wait 7 days for new package versions to be vetted by the community
- Audit before installing — Run
socket package score npm <pkg>or usesocket npm install <pkg>to check packages
Load the dependency-upgrade skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement.
Directory Structure (Nuxt v5)
What's New in Nuxt 5
| Area | Nuxt 4 | Nuxt 5 | |
|---|---|---|---|
| Bundler | Vite 6 (esbuild + Rollup) | Vite 8 (Rolldown) | |
| Server engine | Nitro v2 (h3 v1) | Nitro v3 (h3 v2, Web Standard APIs) | |
| Vite config | Separate client/server configs | Vite Environment API | |
| JS runtime | JSX plugin included by default | JSX plugin optional (on-demand) | |
| Client-only placeholder | Empty <div> | HTML comment node | |
| callHook | Always returns Promise | May return void (sync when possible) | |
| clearNuxtState | Sets to undefined | Resets to initial default value | |
| Page component names | Auto-generated | Normalized to match route names | |
experimental.externalVue | Available | Removed (always mocked) |
Configuration
Basic nuxt.config.ts
Vite 8 / Rolldown Configuration
Nuxt 5 uses Vite 8 with Rolldown as the bundler. Use rolldownOptions instead of rollupOptions:
Vite Environment API
Nuxt 5 uses the Vite Environment API for environment-specific config. Use configEnvironment and applyToEnvironment instead of separate client/server configs:
Optional JSX Support
@vitejs/plugin-vue-jsx is no longer installed by default. Install it only if needed:
Nuxt will auto-detect .jsx/.tsx files and prompt installation.
Runtime Config Usage
In server routes (v5 change): useRuntimeConfig() no longer accepts event:
App Config vs Runtime Config
| Feature | App Config | Runtime Config | |
|---|---|---|---|
| Location | app.config.ts | nuxt.config.ts | |
| Hot reload | Yes | No | |
| Secrets | No | Yes (server-only) | |
| Use case | UI settings, themes | API keys, URLs |
Routing
File-Based Routing
v5 Change: Page component names are now normalized to match their route names. This ensures consistent <KeepAlive> behavior.
Dynamic Routes
Navigation
Route Middleware
Global Middleware
SEO & Meta Tags
useSeoMeta (Recommended)
Dynamic Meta Tags
Error Handling
Error Page
Throwing Errors (App-side)
In the Vue part of your app (the app/ directory), createError continues to work:
Error Boundaries (Component-Level)
clearNuxtState Resets to Defaults (v5 Change)
Common Anti-Patterns
Using process.env Instead of Runtime Config
Missing Middleware Return
Non-Reactive Route Params
Troubleshooting
Build Errors / Type Errors:
Route Not Found:
- Check file is in
app/pages/ - Verify file extension is
.vue - Check for typos in dynamic params
[id].vue
Vite Plugin Warnings:
- Use
configEnvironment+applyToEnvironmentinstead ofserver/clientoptions - Deprecated
extendViteConfig({ server })will show warnings
JSX Not Working:
- Install
@vitejs/plugin-vue-jsxif using.jsx/.tsxfiles
Related Skills
- nuxt-data: Composables, data fetching, state management
- nuxt-server: Server routes, API patterns (Nitro v3)
- nuxt-production: Performance, testing, deployment, migration
Templates Available
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/nuxt-v5/skills/nuxt-core/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 31
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 3 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/secondsky/claude-skills/nuxt-core)