vue

Guide Vue 3 SFC development with Composition API and script setup.

12|2|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/pleaseai/claude-code-plugins --skill vue-pleaseai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue
Source: https://github.com/pleaseai/claude-code-plugins/tree/main/plugins/vue/skills/vue
Command: npx skills add https://github.com/pleaseai/claude-code-plugins --skill vue-pleaseai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vue 3 component development often requires boilerplate for Composition API, script setup, and prop/event typing; this skill provides a structured guide to build maintainable Vue SFCs with defineProps/defineEmits/defineModel, watchers, and built-in components.

Core Features & Use Cases

  • Composition API-centric development with <script setup lang="ts"> guidance
  • Props, emits, and v-model wiring with defineProps/defineEmits/defineModel
  • Reactivity primitives, lifecycle hooks, and common components (Transition, Teleport, Suspense, KeepAlive)

Quick Start

Start a new Vue SFC using <script setup lang="ts">, declare props with defineProps, emit events with defineEmits, and render a simple reactive template.

Frequently Asked Questions about vue

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

FAQPage Schema
How do I use the Vue 3 Composition API with script setup in a single file component?

Vue 3 Composition API with script setup allows you to build single file components by declaring reactive state, props, and emits directly inside the <script setup> block. This guide provides structured best practices for wiring defineProps and defineEmits in TypeScript or JavaScript.

What is the best way to wire v-model and defineModel in Vue 3 SFCs?

The best way to wire v-model in Vue 3 SFCs is using the defineModel macro alongside defineProps and defineEmits. This skill guides you through connecting parent-child component data flow and event handling using these built-in compiler macros.

Can I use built-in components like Teleport, Suspense, and KeepAlive with Vue 3 reactivity APIs?

Yes, you can use built-in components like Teleport, Suspense, KeepAlive, and Transition alongside Vue 3 reactivity primitives. This guide covers integrating these components with lifecycle hooks and reactive state within your single file components.

How do I declare and type props and emits in Vue 3 when using TypeScript?

To declare and type props and emits in Vue 3 TypeScript components, use the defineProps and defineEmits macros inside your <script setup lang="ts"> block. This skill provides boilerplate guidance for maintaining type-safe component interfaces.

When should I use watchers in Vue 3 Composition API, and what are their limitations?

Watchers in the Vue 3 Composition API should be used to reactively observe and respond to state changes. While this guide covers common patterns for reactivity and lifecycle hooks, complex watcher dependencies may require careful memory management to avoid performance constraints.

Does this Vue 3 guide cover the Options API or focus strictly on Composition API patterns?

This guide focuses strictly on Vue 3 Composition API patterns, specifically targeting script setup, reactivity primitives, and built-in components. It does not cover the Options API, ensuring a best-practices approach for modern, maintainable single file component development.