One-click install
npx skills add https://github.com/blesstosam/trpc-fastify-starter --skill vue-blesstosam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue
Source: https://github.com/blesstosam/trpc-fastify-starter/tree/main/.agents/skills/vue
Command: npx skills add https://github.com/blesstosam/trpc-fastify-starter --skill vue-blesstosam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vue 3 developers often struggle to adopt the Composition API, script setup macros, and built-in components in a cohesive, maintainable way. This guide provides a structured approach to mastering these concepts and applying them to real projects.

Core Features & Use Cases

  • Script Setup & Macros: defineProps, defineEmits, defineModel, defineExpose, and other Composition API patterns for clean SFCs.
  • Reactivity & Lifecycle: best practices for ref, reactive, computed, watch, and lifecycle hooks in Vue components.
  • Built-in Components & Directives: guidance on using Transition, Teleport, Suspense, KeepAlive, and custom directives within apps.

Quick Start

Create a minimal Vue 3 component that uses script setup syntax to render a counter and accepts a prop

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 Composition API with script setup in SFCs?

Vue 3 Composition API with script setup streamlines SFC development by using macros like defineProps and defineEmits for clean, maintainable component code without explicit imports.

What is the best way to manage reactivity in Vue 3 components?

Managing reactivity in Vue 3 components involves using ref and reactive for state, computed for derived values, and watch for side effects to ensure optimal lifecycle integration.

How do I create reusable Vue components with defineModel and defineExpose?

Creating reusable Vue components utilizes defineModel for two-way binding and defineExpose to explicitly share component methods, ensuring clean APIs for parent-child communication.

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

Vue built-in components like Teleport for DOM portaling, Suspense for async dependencies, and KeepAlive for component caching are used to handle advanced rendering and state preservation scenarios.

Does this Vue 3 guide cover custom directives and Transition components?

This Vue 3 guide covers custom directives and Transition components, providing structured guidance on integrating built-in components within applications for seamless UI animations and DOM manipulations.