vue

Write Vue 3 single-file components using Composition API and script setup macros.

1|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/molaei2000/triplem.dev --skill vue-molaei2000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue
Source: https://github.com/molaei2000/triplem.dev/tree/main/.agents/skills/vue
Command: npx skills add https://github.com/molaei2000/triplem.dev --skill vue-molaei2000

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vue 3 development with Composition API and script setup can be verbose and error-prone; this skill helps codify best practices and patterns.

Core Features & Use Cases

  • Script Setup & Macros: concise props/emit definitions and IDE typing for Vue SFCs.
  • Reactivity & Lifecycle: ref, reactive, computed, watch, and lifecycle hooks in a clean API.
  • Built-in Components & Directives: transitions, teleport, suspense, keep-alive, and typical directives usage for real-world apps.
  • Use case: Building a reusable input form component with strong type support and minimal boilerplate.

Quick Start

Create a Vue 3 component using <script setup> with defineProps and defineEmits to build a reusable input form.

Frequently Asked Questions about vue

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

FAQPage Schema
How do I build type-safe Vue 3 components using script setup?

Build type-safe Vue 3 components by using script setup macros like defineProps and defineEmits for concise definitions and strong IDE typing. This approach minimizes boilerplate while ensuring strict TypeScript support across single-file components.

What is the best way to manage reactivity and lifecycle hooks in Vue 3?

Manage Vue 3 reactivity using ref, reactive, and computed properties alongside lifecycle hooks. The Composition API provides a clean method to handle state changes and side effects, replacing the scattered logic of the Options API for scalable applications.

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

Use Vue 3 built-in components like Teleport for DOM rendering outside component trees, Suspense for async operations, and KeepAlive for caching component state. They solve complex real-world UI requirements for transitions and deferred rendering.

Does Vue 3 script setup work well for small to medium projects?

Vue 3 script setup works effectively for small to medium projects by reducing verbosity and error-prone patterns. It codifies best practices for component design, making single-file components scalable and maintainable across varying project sizes.

How do I define two-way binding in Vue 3 without boilerplate?

Define two-way binding in Vue 3 using the defineModel macro within script setup. This reduces boilerplate by automatically handling model updates and props, creating clean and reusable input form components with minimal code.