SKILL.md
Vue
The skill is based on Vue 3.5+, generated at 2026-01-28.
Vue is a progressive JavaScript framework for building user interfaces. It builds on standard HTML, CSS, and JavaScript with intuitive API and world-class documentation. The Composition API with <script setup> and TypeScript is the recommended approach for building Vue applications.
Core References
Topic
Description
Reference
Reactivity System
ref, reactive, computed, watch, and watchEffect
Components
Topic
Description
Reference
Props
Declare and validate component props with TypeScript
Events (Emits)
Emit custom events from components
Slots
Pass template content to child components
v-model
Two-way binding on custom components
Lifecycle Hooks
Run code at specific component lifecycle stages
Features
Script Setup & TypeScript
Topic
Description
Reference
Script Setup
Composition API syntactic sugar for SFCs
TypeScript
Type-safe Vue components with Composition API
Reusability
Topic
Description
Reference
Composables
Encapsulate and reuse stateful logic
Custom Directives
Low-level DOM manipulation directives
Template Refs
Direct DOM and component instance access
Advanced
Topic
Description
Reference
Provide/Inject
Dependency injection across component tree
Async & Suspense
Top-level await pitfalls, async components, Suspense
Key Recommendations
- **Use
<script setup lang="ts">** for all components
- **Prefer
ref()overreactive()** for declaring state
- Use type-based prop declarations with interfaces
- **Use
defineModel()** for v-model (3.4+)
- Destructure props reactively (3.5+) for cleaner code
- Extract composables for reusable stateful logic