vue

Author Vue 3 TypeScript single-file components with Composition API and script setup.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides clear, opinionated guidance for authoring Vue 3 single-file components (SFCs) and composables using the Composition API and script setup with TypeScript, reducing errors from misuse of reactivity, lifecycle hooks, and compiler macros.

Core Features & Use Cases

  • Opinionated best practices for <script setup lang="ts">, typed props/emits/models, and component options to improve maintainability.
  • Guidance on reactivity and performance trade-offs (ref vs shallowRef, computed, watch, effectScope) and lifecycle management for reliable components.
  • Examples and patterns for built-in features like Transition, Teleport, Suspense, KeepAlive, v-memo, and custom directives; use when scaffolding components, converting Options API code, or optimizing render performance.

Quick Start

Use the vue skill to scaffold a TypeScript-based Composition API single-file component with typed props, emits, and a composable for fetching data.

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 with the Composition API and TypeScript?

To build Vue 3 components, use `<script setup lang="ts">` for authoring single-file components. This approach manages typed defineProps, defineEmits, and defineModel macros alongside reactivity choices like ref and computed to ensure maintainability.

When should I use shallowRef instead of ref for Vue reactivity?

Use shallowRef in Vue when managing large objects where deep reactivity tracking causes performance overhead. ShallowRef limits reactivity to the top-level reference, optimizing render performance compared to deep tracking with standard ref.

What is the best way to type defineProps and defineEmits in Vue single-file components?

The best way to type defineProps and defineEmits in Vue single-file components is by using TypeScript compiler macros within `<script setup>`. This provides clear, opinionated guidance for component options and improves overall maintainability.

How do I use built-in components like Teleport, Suspense, and KeepAlive in Vue 3?

Use built-in components like Teleport, Suspense, and KeepAlive in Vue 3 by integrating them within your single-file component templates. They manage dynamic rendering, asynchronous component loading, and component caching for optimized performance.

Does this Vue 3 skill provide guidance on effect scopes and lifecycle management?

Yes, this Vue 3 skill provides guidance on effect scopes and lifecycle management. It helps you apply reactivity choices, watch effects, and lifecycle hooks reliably when scaffolding components or converting Options API code.

How do I optimize render performance in Vue 3 using v-memo and custom directives?

Optimize render performance in Vue 3 by applying v-memo to skip re-renders of unchanged sub-trees and using custom directives for direct DOM manipulation. These patterns reduce unnecessary reactivity triggers during component updates.