What problem does it solve?
This Skill helps developers efficiently write Vue 3 Single File Components (SFCs) using the Composition API, leveraging modern features like <script setup> and compiler macros for cleaner, more performant code.
Core Features & Use Cases
- Composition API: Utilize
ref, computed, watch, and lifecycle hooks for organized stateful logic.
<script setup>: Write SFCs with less boilerplate and better type inference.
- Macros: Effortlessly define props (
defineProps), emits (defineEmits), and models (defineModel).
- Built-in Components: Leverage
Transition, Teleport, Suspense, and KeepAlive for advanced UI patterns.
- Use Case: When building a complex form in Vue, use this Skill to define props for form fields, emit validation status, and manage component state using
ref and computed within <script setup>.
Quick Start
Use the vue skill to define a component with a title prop and a count ref, then render a button that increments the count.