vue-nuxt
Skill0 starsChanged 5 months agoMITView on GitHub
Use for Vue + Nuxt apps — Nuxt 3/Vue 3 Composition API, rendering modes, auto-imports, server routes, Nitro, Pinia, deployment. Triggers — Nuxt config, Vue components, SSR/SSG decisions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- martinholovsky/claude-skills-generatortheir own version, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- martinholovsky/claude-skills-generator★ 48same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository74 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wiki/Agents.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/000-claude-os.mdcCursor rule
- .cursor/rules/desktop.mdcCursor rule
- .cursor/rules/mobile.mdcCursor rule
- .cursor/rules/skills-index.mdcCursor rule
- .cursor/rules/web.mdcCursor rule
- ai-mlSkill
- analyticsSkill
- api-designSkill
- architectureSkill
- awsSkill
- azureSkill
- backendSkill
- blockchainSkill
- browser-extensionSkill
- clickhouseSkill
- cliSkill
- cloudflareSkill
- data-modelingSkill
- data-platformSkill
- desktopSkill
- devopsSkill
- discoverySkill
- docker-kubernetesSkill
- documentationSkill
- dotnetSkill
- firebaseSkill
- flutterSkill
- gameSkill
- gcpSkill
- go-backendSkill
- godotSkill
- headless-automationSkill
- iot-embeddedSkill
- java-springSkill
- mcp-integrationSkill
- memory-managementSkill
- messaging-queuesSkill
- mobileSkill
- mongodbSkill
- mysqlSkill
- native-androidSkill
- native-iosSkill
- node-backendSkill
- observabilitySkill
- paymentsSkill
- performanceSkill
- php-laravelSkill
- postgresSkill
- production-readinessSkill
- project-classificationSkill
- python-backendSkill
- react-nativeSkill
- react-nextSkill
- realtimeSkill
- redisSkill
- requirements-engineeringSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 42
Bundle audit: run nuxi analyze before merging.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Vue + Nuxt Skill
When to use
- Creating or modifying Nuxt pages, layouts, components, or server routes
- Choosing between SSR, SSG, ISR (SWR in Nuxt), or SPA mode per route
- Setting up data fetching with
useFetch,useAsyncData, or$fetch - Configuring
nuxt.config.ts, Nitro presets, modules, or middleware - Integrating Pinia stores, i18n (
@nuxtjs/i18n), or auth (nuxt-auth-utils) - Resolving hydration mismatches, FOUC, or build-time type errors
Workflow
- Confirm Nuxt version — Nuxt 3 (Vue 3, Composition API) is the baseline. Do not mix Options API pages with Composition API composables without explicit justification.
- Classify rendering per route using
routeRulesinnuxt.config.ts:- Static content →
{ prerender: true } - Dynamic, revalidated on a schedule →
{ swr: 3600 }(stale-while-revalidate seconds) - Always-fresh server-rendered →
{ ssr: true } - Client-only (auth-gated dashboards) →
{ ssr: false }or wrap with<ClientOnly>
- Static content →
- Scaffold the feature:
- Page:
pages/<segment>.vue(auto-registered via file-system routing) - Layout:
layouts/<name>.vue, applied withdefinePageMeta({ layout: '<name>' }) - Components:
components/(auto-imported, no explicitimportneeded) - Composables:
composables/use<Name>.ts(auto-imported) - Server routes:
server/api/<endpoint>.tsusingdefineEventHandler
- Page:
- Data fetching:
- Inside
<script setup>on a page:const { data, error } = await useFetch('/api/endpoint', { key: 'unique-key' }) - For complex transforms:
useAsyncData('key', () => $fetch('/api/endpoint')) - Client-only after mount:
onMounted+$fetchor a reactivewatch - Server routes:
$fetchwithindefineEventHandler; usereadBody,getQuery,getCookiefromh3
- Inside
- State management:
- Local reactive state:
ref/reactive/computedin<script setup> - Shared cross-component state: Pinia store in
stores/<name>.ts; usestoreToRefsto destructure without losing reactivity - Server-to-client state:
useState('key', () => defaultValue)for SSR-safe shared state
- Local reactive state:
- Styling: Scoped
<style scoped>per component, or Tailwind CSS. Use@nuxtjs/color-modefor dark mode; avoid directdocumentaccess in SSR context. - Auto-import awareness: components, composables, and utils in their conventional folders are auto-imported. Do not re-import them manually — it creates duplicate module instances.
- Bundle audit: run
nuxi analyzebefore merging; watch for unintended client-bundle growth from server-only modules. - Deployment: set the correct Nitro preset (
vercel,netlify,node-server,static) innuxt.config.ts. Thestaticpreset disables server routes entirely.
Standards
| Area | Do | Do not |
| Reactivity | Use ref/computed for primitives, reactive for objects; unwrap with .value consistently | Mix Options API data() with Composition API setup() in the same component |
| Fetching | Pass a unique key to every useFetch / useAsyncData call | Omit key — it causes duplicate requests and cache collisions |
| Server routes | Keep business logic in server/services/; handler files only parse input and call services | Put DB queries directly inside defineEventHandler |
| Secrets | Access useRuntimeConfig().mySecret only in server context | Expose secrets in runtimeConfig.public |
| Pinia stores | Define with defineStore using the Setup Store syntax; export typed refs | Use the Options Store syntax when the team has agreed on Setup syntax |
| Plugins | Register one concern per plugin file in plugins/; use provide / inject for DI | Do DOM manipulation in plugins without import.meta.client guard |
| Types | Run nuxi typecheck; all composable return types should be explicit | Rely solely on Nuxt's auto-generated .nuxt/types without checking |
Common mistakes to avoid
- Accessing
windowordocumentat module top-level — Nuxt SSR runs on Node.js; guard withimport.meta.clientoronMounted. - Missing
keyonuseFetch— Nuxt deduplicates fetches by key; omitting it or reusing a key across unrelated calls serves stale data to the wrong component. - Mutating Pinia state outside an action — breaks Vue DevTools tracking and can cause SSR state leakage between requests (each SSR request must have its own store instance via
defineStore+ Pinia's auto-injection). - Using
<ClientOnly>as a hydration escape hatch — it hides SSR/CSR mismatches instead of fixing them. Fix the root cause (usually aDate.now()orMath.random()call differing between server and client). - Importing a heavy library into a composable used on every page — use dynamic
import()inside the function body, or move it to a Nitro server route. routeRulesset to{ prerender: true }on a route with user-specific content — prerenders one user's data for all users.- Forgetting
server: falseon Nitro plugins that use Node-only APIs — causes build failures on edge runtimes.
Output format
Typical deliverables for a Nuxt feature:
pages/
<feature>/
index.vue # Page component with definePageMeta + useFetch
[id].vue # Dynamic segment
components/
<Feature>/
Card.vue # Auto-imported, scoped styles
composables/
use<Feature>.ts # Reusable data + logic
stores/
<feature>.ts # Pinia store (Setup Store syntax)
server/
api/
<feature>/
index.get.ts # GET handler
index.post.ts # POST handler
services/
<feature>.ts # Business logic, DB callsEach Vue SFC includes <script setup lang="ts"> with explicit prop types via defineProps<{...}>() and emits via defineEmits<{...}>().
Related checklists
.claude/checklists/security.md.claude/checklists/performance.md.claude/checklists/accessibility.md.claude/checklists/production.md
Related agents
.claude/agents/stack/web/vue-nuxt-engineer.md.claude/agents/engineering/frontend-engineer.md.claude/agents/engineering/fullstack-engineer.md.claude/agents/quality/performance-engineer.md.claude/agents/quality/security-auditor.md
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
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.

