OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add vinayakkulkarni/vue-nuxt-best-practices --skill vue-best-practices
Vue.js performance optimization guidelines for building fast, maintainable applications. This skill should be used when writing, reviewing, or refactoring Vue.js code to ensure optimal performance patterns. Triggers on tasks involving Vue components, reactivity, Composition API, state management, or performance improvements.
npx skills add vinayakkulkarni/vue-nuxt-best-practices --skill vue-best-practices
Comprehensive performance optimization guide for Vue.js applications (verified against the official Vue 3.5+ docs). Contains 18 rules across 5 categories, prioritized by impact to guide automated refactoring and code generation.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Reactivity Fundamentals | CRITICAL | reactivity- |
| 2 | Component Performance | CRITICAL | component- |
| 3 | Computed & Watchers | HIGH | computed- / watch- |
| 4 | Template Optimization | MEDIUM-HIGH | template- |
| 5 | Composition API Patterns | MEDIUM | composable- |
reactivity-ref-vs-reactive - Prefer ref() as the primary reactivity APIreactivity-avoid-destructure - Don't destructure reactive objectsreactivity-toRefs - Use toRefs()/getters when destructuring is neededreactivity-shallowRef - Use shallowRef() for large non-reactive datareactivity-raw-values - Treat toRaw() as a narrow escape hatchcomponent-async - Use defineAsyncComponent for heavy componentscomponent-keep-alive - Cache component state with KeepAlivecomponent-v-memo - v-memo micro-optimization for 1000+ item listscomponent-v-once - Use v-once for static contentcomponent-functional - Keep stateless components simplecomputed-cache - Use computed() for derived values, not methodscomputed-dependencies - Understand fine-grained per-property dependency trackingwatch-deep-avoid - Avoid deep watchers on large objectstemplate-v-show-vs-if - v-show for frequent toggles, v-if for raretemplate-key-attribute - Always use unique primitive keys in v-fortemplate-avoid-v-if-v-for - Never use v-if and v-for on same elementcomposable-single-responsibility - One concern per composablecomposable-return-refs - Return refs, not reactive objectsRead individual rule files for detailed explanations and code examples:
Each rule file contains:
For the complete guide with all rules expanded: AGENTS.md