What problem does it solve?
This Skill collects Vue 3 best practices, common gotchas, and performance patterns so teams can avoid reactive bugs, inconsistent APIs, and costly regressions while standardizing on Composition API, script setup, and TypeScript.
Core Features & Use Cases
- Reactivity & Composables: Guidance on refs vs reactive, watch vs watchEffect, computed usage, and composable design patterns to avoid hidden side effects.
- Components & Architecture: Best practices for component naming, props/emits conventions, render/slot patterns, and migrating from Options API to Composition API.
- Performance, SSR & Caching: Recommendations for KeepAlive caching, hydration strategies, async components, transition and animation pitfalls, and bundle-size considerations.
- Directives, Lifecycle & Types: Rules for custom directives, lifecycle hook registration, v-model/defineModel behaviors, and TypeScript typing patterns.
- Use Cases: Ideal for code reviews, onboarding, migration planning, debugging subtle reactivity bugs, and hardening route/keep-alive behavior.
Quick Start
Ask the vue-best-practices skill to review a Vue 3 component or directory and list detected best-practice violations with concrete fixes for Composition API, reactivity, and TypeScript issues.