From nuxt-knowledge-patch
Provides Nuxt 3.11+ knowledge patch covering routeRules appMiddleware, server/client-only pages, Nuxt 4 compatibility mode, and auto-registered layers for work on recent Nuxt versions.
npx claudepluginhub nevaberry/nevaberry-plugins --plugin nuxt-knowledge-patchThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Claude's baseline knowledge covers Nuxt 3 through 3.9. This skill provides features from 3.11 (March 2024) onwards through 3.12 (June 2024).
| Version | Date | Key Change |
|---|---|---|
| 3.11 | 2024-03-16 | Middleware via routeRules, server/client-only pages |
| 3.12 | 2024-06-10 | Nuxt 4 compatibility mode, auto-registered layers |
| Feature | Version | Detail |
|---|---|---|
appMiddleware in routeRules | 3.11 | Assign middleware to routes in config instead of page-level definePageMeta |
.server.vue / .client.vue pages | 3.11 | Server-only and client-only page rendering via file suffix |
future.compatibilityVersion: 4 | 3.12 | Opt into Nuxt 4 breaking changes incrementally while on v3 |
| Auto-registered layers | 3.12 | ~/layers/ auto-registered like ~/modules/, no config needed |
routeRules (3.11)Assign app-level middleware to page paths in config using appMiddleware:
// nuxt.config.ts
export default defineNuxtConfig({
routeRules: {
'/admin/**': {
appMiddleware: ['auth']
},
'/admin/login': {
appMiddleware: { auth: false } // disable for specific routes
},
},
})
See references/routing-and-pages.md for server/client-only pages.
Opt into Nuxt 4 breaking changes incrementally:
// nuxt.config.ts
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
})
Enables v4 behavior changes (e.g., shallow reactive asyncData payloads) while still on v3, allowing gradual migration.
See references/nuxt-4-migration.md for details.
| File | Contents |
|---|---|
routing-and-pages.md | routeRules middleware, server/client-only pages, auto-registered layers |
nuxt-4-migration.md | Nuxt 4 compatibility mode and migration strategy |