nuxt-best-practices
Skill by vinayakkulkarni
Guides AI assistants to write, review, and refactor Nuxt 4 code with performance and architecture best practices, current through Nuxt 4.5. It is aimed at developers building full-stack Nuxt applications.
Install nuxt-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vinayakkulkarni/nxui /tmp/nxui && mkdir -p ~/.claude/skills && cp -r /tmp/nxui/.agents/skills/nuxt-best-practices ~/.claude/skills/nuxt-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vinayakkulkarni/nxui /tmp/nxui && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/nxui/.agents/skills/nuxt-best-practices ~/.gemini/antigravity-cli/skills/nuxt-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install nuxt-best-practices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
nuxt-best-practices is an agent skill that gives an AI assistant Nuxt 4 performance and architecture guidelines, current through Nuxt 4.5. It contains 23 rules across 9 categories, covering data fetching, auto-imports, server routes, rendering modes, state management, pages and layouts, type safety, modules and plugins, and performance. Each category has a priority and impact level, so the guidance can steer automated refactoring and code generation.
The skill is meant to be used when writing, reviewing, or refactoring Nuxt code. It triggers on tasks involving data fetching, server routes, auto-imports, rendering modes, layouts, named views, or Nuxt-specific features. Each rule file includes an explanation, an incorrect and a correct code example, and Nuxt-specific notes. It is aimed at developers who want optimal Nuxt patterns. The project is MIT licensed and published as version 1.0.0.
Written from the project's SKILL.md and checked against it.
What it can do
- Data fetching rulesCovers useFetch, useAsyncData, unique keys, lazy loading, error handling, and the enabled option.
- Auto-imports and organizationSets guidance on barrel exports, component naming, type locations, and direct composable imports.
- Server and API routesCovers validated input with Zod, defineRouteMeta, runtime config, createError, and middleware order.
- Rendering modesExplains routeRules, hybrid rendering, prerendering, ClientOnly, and experimental SSR streaming.
- State managementCovers useState, Pinia setup, hydration mismatches, and preferring computed over watch.
- Pages, layouts and navigationCovers useLayout, the name@view.vue convention for named views, and NuxtLink prefetching.
- Type safetyCovers inline types, import paths, avoiding any, Zod schemas, and typed emits.
- Modules and pluginsCovers module order, runtime versus build-time modules, and client and server plugin suffixes.
- Performance and deploymentCovers bundle analysis, nuxt/image, font loading strategy, and cache headers.
Try asking
- Review this Nuxt page and fix the data fetching to follow best practices.
- Refactor my Nuxt server route to validate input with Zod and use createError.
- Set up named views and layouts in this Nuxt 4.5 app following the conventions.
Good to know
- SSR streaming is described as experimental in Nuxt 4.5.
- The enabled option and several layout and prefetch rules apply to Nuxt 4.5 and later.
- Notes cover 3.x apps only as they approach end of life.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/nuxt-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
AGENTS.md85 KB -
SKILL.md6 KB -
package.json462 B -
rules/_sections.md2 KB -
rules/_template.md606 B
Show all 30 files
-
rules/data-conditional-enabled.md4 KB -
rules/data-error-handling.md3 KB -
rules/data-key-unique.md4 KB -
rules/data-transform.md3 KB -
rules/data-use-fetch.md3 KB -
rules/imports-component-naming.md3 KB -
rules/imports-composable-exports.md3 KB -
rules/imports-direct-composable-imports.md4 KB -
rules/imports-no-barrel-autoimport.md4 KB -
rules/imports-type-locations.md3 KB -
rules/pages-named-views.md2 KB -
rules/pages-nuxtlink-custom-prefetch.md2 KB -
rules/pages-use-layout.md2 KB -
rules/rendering-client-only.md4 KB -
rules/rendering-ssr-streaming.md4 KB -
rules/server-error-handling.md4 KB -
rules/server-route-meta.md5 KB -
rules/server-runtime-config.md4 KB -
rules/server-validated-input.md4 KB -
rules/state-use-state.md4 KB -
rules/types-import-paths.md3 KB -
rules/types-no-any.md3 KB -
rules/types-strict-emits.md5 KB -
scripts/build.ts3 KB -
scripts/validate.ts4 KB
Alternatives to nuxt-best-practices
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
nuxt-best-practices: common questions
What Nuxt version does this skill target?
The skill targets Nuxt 4, and its guidance is stated as current through Nuxt 4.5. It also includes notes for 3.x apps approaching end of life.
How many rules does it include?
The source says it contains 23 rules across 9 categories. Each category has a priority level based on impact.
When does the assistant use this skill?
It is meant for writing, reviewing, or refactoring Nuxt code. It triggers on tasks involving data fetching, server routes, auto-imports, rendering modes, layouts, named views, or Nuxt-specific features.
How do I install nuxt-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is nuxt-best-practices free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is nuxt-best-practices safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to nuxt-best-practices?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
