vue

Build Vue 3 single-file components using the Composition API with script setup.

1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/kirklin/skills --skill vue-kirklin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue
Source: https://github.com/kirklin/skills/tree/main/skills/vue
Command: npx skills add https://github.com/kirklin/skills --skill vue-kirklin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vue 3 development requires a solid grasp of the Composition API, script setup, and the built-in components to build scalable, maintainable UI.

Core Features & Use Cases

  • Provides a clear path for writing Vue SFCs with the Composition API, including defineProps, defineEmits, and defineModel.
  • Covers reactivity primitives (ref, reactive, computed) and lifecycle patterns for modern Vue apps.
  • Use cases include building interactive components, transitions, and advanced patterns with Teleport, Suspense, and KeepAlive.

Quick Start

Create a new Vue SFC using <script setup lang="ts"> with defineProps, defineEmits, and a basic template to validate composition API usage.

Frequently Asked Questions about vue

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Vue 3 components using the Composition API and script setup?

Build Vue 3 components by creating Single File Components with <script setup lang="ts">. Utilize reactivity primitives like ref, reactive, and computed to manage state and logic within your Vue 3 application.

What is the best way to define props and emits in a Vue 3 SFC?

The best way to define props and emits in a Vue 3 SFC is using the script setup macros defineProps and defineEmits. These compile-time macros provide type-safe component interfaces without runtime overhead.

How does defineModel work for two-way binding in Vue 3?

The defineModel macro simplifies two-way binding in Vue 3 SFCs by creating a ref that automatically syncs with the parent component. It eliminates the need for manual defineProps and defineEmits boilerplate for v-model integration.

Can I use Teleport, Suspense, and KeepAlive with Vue 3 composition API patterns?

Yes, you can use built-in components like Teleport, Suspense, and KeepAlive alongside Vue 3 composition API patterns. These components enable advanced UI patterns such as portal rendering, async component handling, and state caching.

Do I need TypeScript to use Vue 3 reactivity and script setup macros?

TypeScript is not strictly required but is highly preferred for Vue 3 development. Using TypeScript with script setup macros like defineProps and defineEmits provides enhanced type safety and better autocompletion for reactivity primitives.

When should I use computed properties versus ref and reactive in Vue 3?

Use ref and reactive to store reactive state in Vue 3, and use computed properties when you need to derive new state from those existing reactive primitives. Computed properties cache results and only re-evaluate when dependencies change.