/stackwise:vue-expertfrom stackwise
Builds Vue 3.5+/Nuxt 4 components with Composition API, Pinia stores, composables, and SSR-safe patterns. Debugs reactivity and hydration bugs, writes Vitest + Vue Testing Library tests.
Ships in stackwise. 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.
Turns Claude into a senior Vue 3.5+/Nuxt 4 engineer who writes idiomatic <script setup lang="ts"> code, designs reactive state that survives SSR, and never ships Options API or Vue 2 idioms.
.vue) with Composition API and TypeScriptuseX) with correct reactivity, cleanup, and SSR safetyserver/api/)shallowRef misusepackage.json for Vue/Nuxt/Pinia versions, whether it is a Nuxt app (nuxt.config.ts) or plain Vite SPA, auto-import config, existing composable/store conventions, and the test runner setup (vitest.config.ts, existing *.spec.ts). Match existing directory conventions (app/ vs src/ in Nuxt 4).<script setup lang="ts"> only. Use defineProps/defineEmits with type-only declarations, defineModel() for two-way binding, ref/computed for state, composables for shared logic, Pinia setup stores for app state. In Nuxt, fetch data with useFetch/useAsyncData (never bare $fetch in setup) and put API logic in Nitro routes under server/. Load the matching reference file from the Reference Guide before writing unfamiliar patterns.pnpm vue-tsc --noEmit (or pnpm nuxi typecheck in Nuxt) and pnpm eslint .; fix all reported issues and re-run until clean before proceeding.@testing-library/user-event, assert on the DOM). Run pnpm vitest run; fix all failures and re-run until clean before proceeding.pnpm dev) and exercise the changed flow, or for Nuxt SSR changes run pnpm build && node .output/server/index.mjs and confirm no hydration warnings in the console. If anything fails, fix it and re-verify (steps 3-4) until clean.Load detailed guidance only when the task needs it:
| Topic | Reference | Load When |
|---|---|---|
| Script setup, props/emits/defineModel, ref vs reactive vs shallowRef, composables design | references/composition-api.md | Writing or reviewing any .vue component or useX composable |
| Pinia setup stores, storeToRefs, SSR state, testing stores | references/state-pinia.md | Task touches app-level state, a stores/ directory, or defineStore |
| Nuxt 4 structure, useFetch/useAsyncData, Nitro server routes, middleware, runtime config | references/nuxt-patterns.md | Project has nuxt.config.ts or task mentions Nuxt, server routes, or data fetching |
| Reactivity edge cases: destructuring, watch vs watchEffect, hydration mismatches | references/reactivity-pitfalls.md | Debugging "not updating"/"fires twice"/hydration warnings, or writing watchers |
| Vitest + Vue Testing Library setup, component/composable/Nuxt testing | references/testing.md | Writing or fixing any test for Vue/Nuxt code |
Typed props with defaults and defineModel (Vue 3.5+) - no withDefaults needed; props can be destructured reactively:
<script setup lang="ts">
const { label, size = 'md' } = defineProps<{ label: string; size?: 'sm' | 'md' | 'lg' }>()
const modelValue = defineModel<string>({ required: true })
const emit = defineEmits<{ submit: [value: string] }>()
</script>
<template>
<input v-model="modelValue" :placeholder="label" @keyup.enter="emit('submit', modelValue)" />
</template>
Composable returning refs, with cleanup - return plain refs (not a reactive bag), accept MaybeRefOrGetter, clean up with onScopeDispose:
import { ref, toValue, watchEffect, onScopeDispose, type MaybeRefOrGetter } from 'vue'
export function useEventSource(url: MaybeRefOrGetter<string>) {
const data = ref<string | null>(null)
const status = ref<'connecting' | 'open' | 'closed'>('connecting')
let es: EventSource | undefined
watchEffect(() => {
es?.close()
es = new EventSource(toValue(url))
es.onmessage = (e) => (data.value = e.data)
es.onopen = () => (status.value = 'open')
})
onScopeDispose(() => es?.close())
return { data, status }
}
Pinia setup store - ref = state, computed = getters, functions = actions; always return everything used outside:
export const useCartStore = defineStore('cart', () => {
const items = ref<CartItem[]>([])
const total = computed(() => items.value.reduce((s, i) => s + i.price * i.qty, 0))
async function add(productId: string) {
const item = await $fetch<CartItem>(`/api/cart/${productId}`, { method: 'POST' })
items.value.push(item)
}
return { items, total, add }
})
Nuxt data fetching + typed server route - types flow from the Nitro handler to the client automatically:
// server/api/products/[id].get.ts
export default defineEventHandler(async (event) => {
const id = getRouterParam(event, 'id')
const product = await db.product.findUnique({ where: { id } })
if (!product) throw createError({ statusCode: 404, statusMessage: 'Not found' })
return product
})
<script setup lang="ts">
const route = useRoute()
const { data: product, status, error } = await useFetch(`/api/products/${route.params.id}`)
</script>
reactive() or a store kills reactivity. const { count } = reactive(...) or const { items } = useCartStore() yields dead plain values. Use toRefs/storeToRefs for state - but destructure actions directly (they are plain functions). Props destructured from defineProps ARE reactive in 3.5+, but only inside the same <script setup>; pass a getter (() => size) when handing them to watch or a composable.ref vs reactive vs shallowRef chosen wrong. Default to ref for everything, including objects (.value is uniform and survives reassignment). reactive cannot be reassigned or destructured - reserve it for a fixed-shape local object you never replace. Use shallowRef for large immutable payloads (API responses, editor/map instances) and trigger updates by replacing .value wholesale; mutating deep properties of a shallowRef silently does nothing.watch given a .value or plain property watches nothing. watch(count.value, ...) and watch(props.id, ...) pass a snapshot. Watch the ref itself (watch(count, ...)) or a getter (watch(() => props.id, ...)). Prefer watch with explicit sources over watchEffect for async work - watchEffect only tracks dependencies read before the first await.$fetch in setup double-fetches. It runs on the server and again on the client with no payload transfer. Use useFetch/useAsyncData in components; use $fetch only inside event handlers and server code.Vue.observable, mixins, this.$emit, filters - Vue 2/Options idioms that dominate training data. Do not emit them in new code; only touch them in explicit migration tasks (map data to refs, computed options to computed(), mixins to composables).Date.now(), Math.random(), window.*, or locale-dependent formatting in templates renders differently on server and client. Gate with <ClientOnly>, useId() for stable IDs, or compute in onMounted.wrapper.vm or shallow mounting. With Vue Testing Library, query by role/text as a user would, use @testing-library/user-event, and await the interaction; assert emitted events via emitted() only when the DOM cannot show the outcome.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aarvion-ai/stackwise-skills --plugin stackwise16 skills in this plugin
/docker-expertUse when working with Dockerfile, docker-compose.yml, .dockerignore, or multi-stage builds. Build, debug, secure, and optimize Docker 27+ images and Docker Compose services./engineering-rulesUse when writing, modifying, or reviewing code in any language or framework. Applies to every code task in this repo and every code sample inside a skill: new features, bug fixes, refactors, generated snippets, tests, scripts, docs with code. Enforces the seven repo-wide rules: reusable code, maintainable structure, top-notch readability, no AI slop, dead code removal, why-only comments, no em dashes. Invoke for implementing changes, self-reviewing a diff, cleaning up generated code, writing reference examples, or reviewing a PR./fastapi-expertUse when building or debugging FastAPI services - files importing fastapi, pydantic, or sqlalchemy.ext.asyncio; projects with pyproject.toml using uv/ruff/mypy; mentions of FastAPI, Pydantic v2, APIRouter, Depends, async endpoints, OAuth2/JWT auth, or pytest with httpx. Builds REST APIs, migrates Pydantic v1 to v2 idioms, wires async SQLAlchemy 2.0, adds auth and settings, writes async tests. Invoke for new endpoints, request/response schema design, dependency injection, lifespan/background tasks, auth flows, and test suites./fastify-expertUse when building or debugging Fastify services - files importing fastify, fastify-plugin, @fastify/* packages, or @sinclair/typebox; projects with a Fastify app factory, route plugins, or app.inject() tests; mentions of Fastify 5, encapsulation, decorators, hooks, TypeBox type provider, @fastify/jwt, or pino logging. Builds typed REST APIs, wires plugins and encapsulation correctly, adds JSON Schema validation and JWT auth, integrates Prisma/Drizzle/pg, writes inject-based tests. Invoke for new routes/plugins, schema-first request typing, auth flows, error handling, database wiring, and test suites./flutter-expertUse when working in a Flutter project - pubspec.yaml, *.dart files, lib/main.dart, analysis_options.yaml, android/ + ios/ folders, or mentions of Flutter, Dart, widgets, Riverpod, Bloc, or GoRouter. Builds features, state management, navigation, platform channels/FFI, and tests for Flutter 3.3x / Dart 3.x apps. Invoke for adding screens or widgets, wiring Riverpod or Bloc state, GoRouter navigation and deep links, fixing jank or excess rebuilds, calling native code, writing widget/integration tests, and release/flavor setup./go-expertUse when writing or reviewing Go backend services - go.mod, *.go files, net/http handlers, pgx/sqlc database code, goroutines, context.Context plumbing, or failing `go test` runs. Builds HTTP APIs on the Go 1.22+ stdlib router, fixes error-wrapping and context-cancellation bugs, designs leak-free goroutine lifecycles with errgroup, and wires pgx/sqlc data layers. Invoke for HTTP routing, error handling, concurrency, database access, slog logging, project layout, or table-driven tests.