/vue:vuefrom vue
Builds and debugs Vue 3 components with the Composition API, Pinia stores and Nuxt 4 data fetching: props, emits, defineModel, composables, reactivity, watchers, SSR safety and tests. Use when adding, changing or debugging .vue files, Pinia stores or a Nuxt app, such as lost reactivity, stale state, hydration mismatches or duplicate fetches.
Ships in vue. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill owns Vue component structure and local state, Pinia stores, and Nuxt page data and hydration. It does not own React (react), bundler configuration (vite), visual direction (web-design, if installed), language-level concerns (typescript), or TanStack Query, Router, and Form, including their Vue adapters.
package.json, the lockfile, and vite.config.* or nuxt.config.*. Note the installed Vue, Nuxt, and Pinia versions.useTemplateRef, onWatcherCleanup, useId, and lazy hydration. Nuxt 4 changed the default srcDir to app/ and the data-fetching defaults. Pinia 4 is ESM-only and needs Vue 3.5.11 or later. Do not assume an API exists in the installed version.<script setup lang="ts"> unless the code uses the Options API). Don't convert existing components as a side effect.Classify each value, then place it:
computed. Don't copy a prop or store into a second ref and sync it with a watcher. A computed value has no side effects and never mutates its inputs.provide/inject for a stable cross-tree concern such as a theme or config. Use Pinia for state shared across distant parts of the app, not for state that belongs to one component or one form.useFetch or useAsyncData in Nuxt), a query library the repo already uses, or an explicit composable. Do not copy fetched data into a store without a reason.ref by default. It can be replaced wholesale. Use reactive only for an object that you never reassign or destructure, because both break reactivity.shallowRef for a large structure that is replaced rather than mutated (a parsed document, a big list from an API)..value in script and automatic unwrapping in templates (top-level refs only).ref. For a transformed value, use computed.defineProps<{ label: string }>() with withDefaults for defaults, and defineEmits<{ select: [id: string] }>().props.x. Pass them to watch or a composable through a getter (watch(() => count, …), useThing(() => count)), because the bare value is a plain snapshot. Before 3.5, read props.x or use toRefs.defineModel() (Vue 3.4 and later) for v-model. A default on the model with no value from the parent desynchronizes the two sides.defineStore('cart', () => { … })) when the project uses them. Return every state property, because Pinia cannot track private state, and private state breaks SSR and devtools.storeToRefs(store). Actions can be destructured directly.@pinia/nuxt. Do not create a store at module scope outside setup, because the server shares modules between requests.computed for derived values and event handlers for work caused by a user action. Use watch to synchronize with something outside Vue (a request, a storage write, a widget).watch(() => props.id, …)). Avoid deep: true on large objects.onWatcherCleanup() (Vue 3.5, synchronously inside the callback) or use the onCleanup argument to abort a request when the source changes. Stop a watcher created asynchronously yourself, because only synchronously created ones stop on unmount.flush: 'post' when the callback reads the updated DOM.useTemplateRef('name') (3.5) for template refs. The value is null until the component mounts, and refs in v-for do not follow source order. Expose methods to a parent with defineExpose.useX. Accept MaybeRef inputs through toValue(), return refs, and remove listeners and timers in onUnmounted. Avoid module-level state in composables, because on the server it leaks across requests. Use useState in Nuxt.v-for a stable domain key, never the index when items can reorder or hold state.v-if and v-for on one element. Filter in a computed or wrap with <template v-for>.v-html only after sanitizing it. Prefer text interpolation.useId() (3.5) for ids that must match between server and client.Read references/nuxt.md when the project uses Nuxt, or the code runs on the server. It covers useFetch and useAsyncData keys and defaults, hydration safety, useState, runtime config, route rules, and lazy hydration.
Reproduce a symptom and measure it first, with Vue devtools, the browser Performance panel, or the build report. Then fix the cause: misplaced state, an over-broad watcher, or a large reactive structure. shallowRef, v-memo, <KeepAlive>, and async components are tools for a measured problem. v-once and v-memo add invalidation risk when used by default. In an SSR app, defineAsyncComponent with a hydrate strategy (hydrateOnVisible, hydrateOnIdle) can defer below-the-fold interactivity.
Read references/vue-component-testing.md when writing or revising a Vue, Pinia, or Nuxt test. It uses full mounts by default.
Cover the changed components, where each piece of state lives, any watcher and what it synchronizes, accessibility states checked, and before-and-after numbers when performance was the request. Stop when the requested behavior has direct evidence.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin vue