build-vue3-composition-api-apps
Build Vue 3 applications with Composition API, proper reactivity patterns, and production-ready components.
от rondoflow★ 37 звёзд на GitHub
Установить build-vue3-composition-api-apps в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
When to Use
User needs Vue expertise — from Composition API patterns to production optimization. Agent handles reactivity, component design, state management, and performance.
Quick Reference
| Topic | File |
|---|---|
| Reactivity patterns | reactivity.md |
| Component patterns | components.md |
| Composables design | composables.md |
| Performance optimization | performance.md |
Composition API Philosophy
- Composition API is not about replacing Options API—it's about better code organization
- Group code by feature, not by option type—related logic stays together
- Extract reusable logic into composables—the main win of Composition API
<script setup>is the recommended syntax—cleaner and better performance
Reactivity Traps
reffor primitives—access with.valuein script, auto-unwrapped in templatereactivecan't reassign whole object—state = {...}breaks reactivity- Destructuring
reactiveloses reactivity—usetoRefs(state)to preserve - Array index assignment reactive in Vue 3—
arr[0] = xworks, unlike Vue 2 - Nested refs unwrap inside reactive—
reactive({count: ref(0)}).countis number, not ref
Watch vs Computed
computedfor derived state—cached, recalculates only when dependencies changewatchfor side effects—when you need to DO something in response to changescomputedshould be pure—no side effects, no asyncwatchEffectfor immediate reaction with auto-tracked dependencies
Watch Traps
- Watching reactive object needs
deep: true—or watch a getter function watchis lazy by default—useimmediate: truefor initial run- Watch callback receives old/new—
watch(source, (newVal, oldVal) => {}) watchEffectcan't access old value—usewatchif you need old/new comparison- Stop watchers with returned function—
const stop = watch(...); stop()
Props and Emits Traps
definePropsfor type-safe props—defineProps<{ msg: string }>()- Props are readonly—don't mutate, emit event to parent
defineEmitsfor type-safe events—defineEmits<{ (e: 'update', val: string): void }>()v-modelis:modelValue+@update:modelValue—custom v-model withdefineModel()- Default value for objects must be factory function—
default: () => ({})
Template Ref Traps
ref="name"+const name = ref(null)—names must match exactly- Template refs available after mount—access in
onMounted, not during setup refon component gives component instance—refon element gives DOM element- Template ref with
v-forbecomes array of refs
Lifecycle Traps
onMountedfor DOM access—component mounted to DOMonUnmountedfor cleanup—subscriptions, timers, event listenersonBeforeMountruns before DOM insert—rarely needed but exists- Hooks must be called synchronously in setup—not inside callbacks or conditionals
- Async setup needs
<Suspense>wrapper
Provide/Inject Traps
provide('key', value)in parent—inject('key')in any descendant- Reactive if value is ref/reactive—otherwise static snapshot
- Default value:
inject('key', defaultVal)—third param for factory function - Symbol keys for type safety—avoid string key collisions
Vue Router Traps
useRoutefor current route—reactive, use in setupuseRouterfor navigation—router.push('/path')- Navigation guards:
beforeEach,beforeResolve,afterEach—returnfalseto cancel <RouterView>with named views—multiple views per route
Common Mistakes
v-ifvsv-show—v-if removes from DOM, v-show toggles display- Key on
v-forrequired—v-for="item in items" :key="item.id" - Event modifiers order matters—
.prevent.stopvs.stop.prevent - Teleport for modals—
<Teleport to="body">renders outside component tree
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл build-vue3-composition-api-apps?
Build Vue 3 applications with Composition API, proper reactivity patterns, and production-ready components.
Как установить скилл build-vue3-composition-api-apps?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл build-vue3-composition-api-apps запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…