vue

Provide Vue 3 Composition API patterns and script setup macros for building SFCs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vue 3 development can be complex when adopting the Composition API, script setup macros, and multiple built-in components; this skill provides structured guidance to streamline building scalable Vue SFCs.

Core Features & Use Cases

  • Script Setup & Macros: defineProps, defineEmits, defineModel, defineExpose, defineSlots, and generics.
  • Reactivity & Lifecycle: ref, reactive, computed, watch, watchEffect, lifecycle hooks, and common composables patterns.
  • Built-in Components & Directives: Transition, Teleport, Suspense, KeepAlive, v-memo, and custom directives.
  • Use Scenarios: building Vue SFCs with props, events, and reactive state; composing components with advanced patterns like defineExpose and top-level await in script setup.

Quick Start

Follow the steps to create a Vue 3 SFC using script setup and defineProps/defineEmits, then render a simple reactive component.

Frequently Asked Questions about vue

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

FAQPage Schema
How do I use defineModel and script setup macros in Vue 3?

Vue 3 script setup macros like defineModel, defineProps, and defineEmits streamline SFC development by providing compile-time syntactic sugar for component communication. This skill offers structured patterns to implement these macros effectively in scalable Vue 3 applications.

What is the best way to structure Vue 3 composition API reactivity and watchers?

Vue 3 composition API reactivity uses ref, reactive, and computed properties to manage state, while watch and watchEffect handle side effects. This skill provides practical guidance on applying these reactivity concepts and composable patterns in real-world scenarios.

Does this Vue 3 skill cover built-in components like Transition, Teleport, and Suspense?

Yes, this skill covers Vue 3 built-in components including Transition, Teleport, Suspense, and KeepAlive. It provides practical guidance for applying these components alongside custom directives and v-memo in real-world SFC scenarios.

Can I use top-level await and defineExpose in Vue 3 script setup?

Top-level await and defineExpose are advanced script setup features in Vue 3 for composing components. This skill applies guidance to these advanced patterns, ensuring compatibility with Vue 3.5+ and alignment with official APIs.

When should I use Vue 3 script setup over the standard composition API?

Vue 3 script setup is the recommended syntax for building SFCs, reducing boilerplate compared to standard composition API. This skill helps streamline your development by providing structured patterns for props, emits, and reactive state management.

Why are my Vue 3 defineProps and defineEmits not working in script setup?

Vue 3 defineProps and defineEmits are compiler macros that must be used correctly within script setup. This skill ensures compatibility with Vue 3.5+ and provides practical guidance aligned with official APIs to resolve common SFC component design issues.