vue

Create Vue 3 single-file components using script setup and TypeScript.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/bingeli1379/eli-claude-marketplace --skill vue-bingeli1379
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue
Source: https://github.com/bingeli1379/eli-claude-marketplace/tree/main/plugins/eureka-sdd/skills/vue
Command: npx skills add https://github.com/bingeli1379/eli-claude-marketplace --skill vue-bingeli1379

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vue 3 development can be verbose when wiring up the Composition API, script setup, and common patterns like props, emits, and lifecycle. This skill provides structured guidance, examples, and references to accelerate building robust Vue components.

Core Features & Use Cases

  • Script Setup & Macros: Use <script setup> and macros to simplify props, emits, and component typing.
  • Reactivity & Lifecycle: Master refs, reactive objects, computed, watch, and lifecycle hooks in Vue 3.
  • Built-in Components & Directives: Leverage Transition, Teleport, Suspense, KeepAlive, and custom directives for practical UIs.
  • Tradeoffs & Best Practices: Prefer TypeScript with Composition API for type safety and maintainable code.

Quick Start

Create a Vue 3 component using <script setup lang="ts">, defineProps and defineEmits, and a small reactive state example to demonstrate typical usage.

Frequently Asked Questions about vue

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

FAQPage Schema
How do I use Vue 3 script setup with defineProps and defineEmits in TypeScript?

Vue 3 script setup with defineProps and defineEmits simplifies component typing and wiring in TypeScript. You use these compiler macros directly in the <script setup lang="ts"> block to define reactive props and custom events without manual exports.

What is the difference between ref and reactive in Vue 3 Composition API?

In the Vue 3 Composition API, ref provides reactive access to primitive values, while reactive wraps objects to track deep property mutations. Both establish reactivity, but refs require .value access in script setup, whereas reactive objects are mutated directly.

How do I use defineModel for two-way binding in Vue 3 components?

Vue 3 defineModel creates a reactive双向 binding variable inside script setup, automatically wiring up props and emits for v-model integration. This eliminates the need to manually define a modelValue prop and an update:modelValue event.

When should I use Vue 3 built-in components like Teleport, Suspense, and KeepAlive?

Use Vue 3 built-in components like Teleport for rendering DOM outside the component tree, Suspense for handling async component loading states, and KeepAlive for caching component instances to preserve state across dynamic toggles.

Can I use Vue 3 Composition API lifecycle hooks inside script setup?

Yes, Vue 3 Composition API lifecycle hooks like onMounted and onUnmounted can be directly called inside the script setup block. They execute synchronously during component initialization to register reactive side effects and cleanup logic.

What are the limitations of using Vue 3 script setup for scalable component design?

Vue 3 script setup lacks direct support for inheritance and custom render functions without separate standard script blocks. Complex shared logic requires extraction into composables, as all declared top-level bindings are automatically exposed to the template.