Command Palette

Search for a command to run...

Назад к скиллам
скилл № 72223

Vue

Builds, debugs, and reviews Vue 3 apps: reactivity, components, composables, Pinia state, Vue Router, forms, and performance. Use when the UI does not update…

БесплатноБез исполняемых скриптов
clawicот clawic★ 23 звезды на GitHub

Установить Vue в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

User preferences and memory live in ~/Clawic/data/vue/ (see setup.md on first use, memory-template.md for the file format). If you have data at an old location (~/vue/ or ~/clawic/vue/), move it to ~/Clawic/data/vue/, and say in one line that you moved it and from where.

When To Use

  • Writing or reviewing Vue 3 components, composables, stores, and router configuration
  • Debugging: state changes that never reach the DOM, watchers that loop or never fire, null template refs, hydration mismatches, memory leaks, a page that goes blank after an uncaught error
  • Choosing between ref and reactive, computed and watch, props and provide/inject, Pinia and a plain composable
  • Performance work: slow lists, laggy typing, oversized bundles, components that re-render on every keystroke
  • Migrating Vue 2 / Options API code to Composition API and <script setup>
  • Not for Nuxt's own layer (auto-imports, useFetch, server routes, <ClientOnly>) → nuxt; Vite plugin and build config → vite

Quick Reference

Situation Play
State changes, DOM does not Reactivity was lost or never established — walk the Reactivity Loss table below
Forgot .value and got a Ref object in a log .value in script, auto-unwrapped in template — but NOT inside arrays or Map/Set (arr[0].value)
state = {...} stopped working reactive cannot be reassigned; use ref and set .value, or Object.assign(state, next)
Destructuring killed reactivity toRefs(state), storeToRefs(store), or pass () => state.x — props destructure is safe only on vue >=3.5
"Maximum recursive updates exceeded" A watcher or computed mutates its own dependency → debug.md Infinite Loops
Watcher reads stale DOM Default flush: 'pre' runs before render; use flush: 'post' or await nextTick() (rule 4)
Template ref is null Refs bind at mount — read in onMounted, not in setup body (components.md)
Child does not receive updates through v-model :modelValue + @update:modelValue, or defineModel() on vue >=3.4 (forms.md)
Route param changes, component does not reload Vue Router reuses the instance — watch(() => route.params.id) (routing.md)
Chart / map / editor library misbehaves in a ref Deep proxy broke instance identity — markRaw() or shallowRef() (rule 6)
Typing lags, list of thousands re-renders shallowRef + v-memo + virtualize above virtualize_threshold (performance.md)
Hydration mismatch after SSR Non-deterministic render or invalid HTML nesting → ssr.md
Scoped style does not reach child markup :deep() selector; >>> and ::v-deep are the deprecated spellings (sfc.md)
vue-tsc errors that tsc never showed .vue files only type-check through vue-tsc (typescript.md)
Test asserts before the DOM updates await nextTick() / await flushPromises(); trigger() returns a promise (testing.md)
Vue 2 code, $on / filters / .sync gone All removed in Vue 3 → migration.md
Page goes blank after a throw, one console error Nothing catches errors by default — a setup-phase throw unmounts the subtree (errors.md)
Async component stuck on its loader, or Failed to fetch dynamically imported module timeout + errorComponent + onError retry; a post-deploy chunk miss needs a guarded reload (errors.md)
Installing something app-wide: helper, component, directive, config A plugin's install(app); prefer app.provide over globalProperties (plugins.md)
Screen reader announces nothing after a route change Focus stayed on the old page — move it to the new view's heading (routing.md)
Anything else Reproduce in an isolated SFC with no props and no store, then add one input at a time until it breaks

Depth on demand: debug.md symptom→cause chains · reactivity.md refs, watchers, effect scopes · components.md props, emits, slots, built-in components · composables.md reusable logic · templates.md directives and rendering · sfc.md script setup macros and scoped CSS · state.md Pinia, Vuex 4, provide/inject · routing.md Vue Router · forms.md inputs and validation · errors.md boundaries, the app error handler, failure states · plugins.md app.use, global config, registration · performance.md render and bundle cost · ssr.md hydration · typescript.md typing components · testing.md Test Utils, Vitest, Jest · migration.md Vue 2 to Vue 3 · security.md XSS and template injection.

Core Rules

  1. Pass the source, not the value. A watcher, computed, or composable receives a ref or a getter (() => props.id) — never the already-read value, which is a dead snapshot. Test: if deleting the arrow function still compiles, the reactivity is already gone. This single mistake explains most "my watcher never fires".
  2. ref by default; reactive only for a bounded object you never reassign. reactive fails four ways — reassignm
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • _meta.json
  • components.md
  • composables.md
  • debug.md
  • errors.md
  • forms.md
  • memory-template.md
  • migration.md
  • performance.md
  • plugins.md
  • reactivity.md
  • routing.md
  • security.md
  • setup.md
  • sfc.md
  • ssr.md
  • state.md
  • templates.md
  • testing.md
  • typescript.md

FAQ

Что делает скилл Vue?

Builds, debugs, and reviews Vue 3 apps: reactivity, components, composables, Pinia state, Vue Router, forms, and performance. Use when the UI does not update after a state change, a reactive object loses reactivity on destructure or reassignment, .value is forgotten, a watcher never fires or loops ("Maximum recursive updates exceeded"), props or v-model stop syncing, a template ref is null, SSR reports a hydration mismatch, a route param change does not reload the component, Pinia warns "getActivePinia() was called but there was no active Pinia", the console shows "Failed to resolve component" or "Extraneous non-props attributes", a thrown error blanks the page, a long list or large object makes typing lag, a chart or map library breaks after being put in ref(), scoped styles do not reach a child, or when migrating Vue 2 Options API to Composition API and script setup. Not for Nuxt-specific SSR, routing, and data fetching (nuxt), Vite build configuration (vite), or React and Svelte (react, svelte).

Как установить скилл Vue?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Vue запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Vue с