vue

Guide Vue 3 component development with Composition API and script setup.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/martylouis/agents --skill vue-martylouis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue
Source: https://github.com/martylouis/agents/tree/main/.agents/skills/vue
Command: npx skills add https://github.com/martylouis/agents --skill vue-martylouis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers efficiently build modern Vue.js applications by leveraging the Composition API, script setup, and advanced features for better performance and maintainability.

Core Features & Use Cases

  • Composition API & Script Setup: Write cleaner, more organized Vue components using <script setup lang="ts">.
  • Reactivity System: Understand and utilize ref, shallowRef, computed, and watchers for dynamic UIs.
  • Built-in Components: Implement animations with Transition, manage DOM portals with Teleport, handle async operations with Suspense, and cache components with KeepAlive.
  • Use Case: When building a complex form with multiple interdependent fields and dynamic validation, use this Skill to structure the logic cleanly with Composition API and defineModel for two-way binding.

Quick Start

Use the vue skill to create a new Vue 3 component using <script setup lang="ts"> that defines props for a title and an optional count, and emits an update event.

Frequently Asked Questions about vue

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

FAQPage Schema
How do I structure a Vue 3 component using script setup and TypeScript?

Use the `<script setup lang="ts">` syntax in your Single File Component to define props and emits directly. This Vue 3 Composition API approach compiles into efficient render functions, providing cleaner component organization.

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

The best way to manage Vue 3 reactivity is using `ref`, `shallowRef`, and `computed` properties within the Composition API to track reactive state and compute derived values for dynamic user interfaces.

How do I handle two-way binding on a form in Vue 3?

Handle two-way binding in Vue 3 by using the `defineModel` macro within `<script setup>`, which simplifies binding interdependent form fields and emitting update events for dynamic validation.

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

Use Vue built-in components like Teleport for managing DOM portals, Suspense for handling async operations, Transition for animations, and KeepAlive for caching component state to enhance application architecture.

Does Vue 3 Composition API work with complex interdependent form validation?

Yes, the Vue 3 Composition API works effectively for complex forms by allowing you to structure interdependent fields and dynamic validation logic cleanly using reactive variables and watchers.