What problem does it solve?
Vue.js projects often suffer from inconsistent patterns, scattered best practices, and maintenance gaps as teams scale. This Skill codifies a cohesive set of Vue 3 patterns and conventions to improve reliability, readability, and performance.
Core Features & Use Cases
- Composition API guidance: <script setup>, typed TS, and composables for modular logic.
- Reactivity and state management: best practices for ref vs reactive, computed, watchers, and readonly state.
- Component design patterns: proper emit naming, prop validation, provide/inject, and lifecycle usage; SSR-ready patterns; KeepAlive and dynamic components usage.
- Performance optimization: avoid mutating computed values, proper key usage, and compact composition code organization.
Quick Start
To align an existing Vue project with these guidelines:
- Audit all major Vue components for setup script usage and composition-based patterns.
- Refactor key components to use Composition API and composables where appropriate.
- Integrate reference docs into CI checks to enforce consistency.