From hyf0-vue-skills-1
Guides Vue 3 development enforcing Composition API with <script setup>, TypeScript, reactivity, SFC structure, and component planning workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hyf0-vue-skills-1:vue-best-practicesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill as an instruction set. Follow the workflow in order unless the user explicitly asks for a different order.
references/animation-class-based-technique.mdreferences/animation-state-driven-technique.mdreferences/component-async.mdreferences/component-data-flow.mdreferences/component-fallthrough-attrs.mdreferences/component-keep-alive.mdreferences/component-slots.mdreferences/component-suspense.mdreferences/component-teleport.mdreferences/component-transition-group.mdreferences/component-transition.mdreferences/composables.mdreferences/directives.mdreferences/perf-avoid-component-abstraction-in-lists.mdreferences/perf-v-once-v-memo-directives.mdreferences/perf-virtualize-large-lists.mdreferences/plugins.mdreferences/reactivity.mdreferences/render-functions.mdreferences/sfc.mdUse this skill as an instruction set. Follow the workflow in order unless the user explicitly asks for a different order.
<script setup lang="ts">.vue-options-api-best-practices skill if available.vue-jsx-best-practices skill if available.references/reactivity.mdreferences/sfc.mdreferences/component-data-flow.mdreferences/composables.mdCreate a brief component map before implementation for any non-trivial feature.
components/<feature>/..., composables/use<Feature>.ts) when adding more than one component.These are essential, must-know foundations. Apply all of them in every Vue task using the core references already loaded in section 1.1.
1.1: reactivityref/reactive), derive everything possible with computed.1.1: sfc<script> → <template> → <style>.v-html, list rendering, conditional rendering choices).Split a component when it has more than one clear responsibility (e.g. data orchestration + UI, or multiple independent UI sections).
useXxx()).Apply objective split triggers. Split the component if any condition is true:
Entry/root and route view rule:
1.1: component-data-flowv-model only for true two-way component contracts.defineProps, defineEmits, and InjectionKey as needed.1.1: composablesDo not add these by default. Load the matching reference only when the requirement exists.
<KeepAlive> for stateful view caching -> component-keep-alive<Teleport> for overlays/portals -> component-teleport<Suspense> for async subtree fallback boundaries -> component-suspense<Transition> for enter/leave effects -> transition<TransitionGroup> for animated list mutations -> transition-groupUse these only when there is explicit product or technical need.
Performance work is a post-functionality pass. Do not optimize before core behavior is implemented and verified.
npx claudepluginhub vuejs-ai/skills3plugins reuse this skill
First indexed Jun 27, 2026
Guides Vue 3 development enforcing Composition API with <script setup>, TypeScript, reactivity, SFC structure, and component planning workflows.
Deep Vue 3 best-practices review and ordered authoring workflow covering built-in components, animations, slots, directives, render functions, plugins, and performance.
Delivers Vue 3 best practices for Composition API script setup, composables, ref/reactive patterns, Pinia state management, and Nuxt apps. Activates on .vue files and Vue triggers.