vue-best-practices

Guide Vue 3 projects in Composition API, SFC structure, and reactivity patterns.

Updated Jul 12, 2025
One-click install
npx skills add https://github.com/contatomaycon/underchat --skill vue-best-practices-contatomaycon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-best-practices
Source: https://github.com/contatomaycon/underchat/tree/main/.agents/skills/vue-best-practices
Command: npx skills add https://github.com/contatomaycon/underchat --skill vue-best-practices-contatomaycon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured workflow of Vue.js best practices to ensure scalable, maintainable, and high-quality Vue applications.

Core Features & Use Cases

  • Enforces Composition API with <script setup> and TypeScript by default, guiding architecture for Vue 3 projects.
  • Promotes clear component boundaries, explicit data flow (props down, events up), and efficient reactivity management.
  • Offers guidelines for SFC structure, references usage, and performance-oriented patterns across common Vue features (router, Pinia, utilities).

Quick Start

Apply the Vue best practices workflow to any Vue 3 project to structure components, enforce reactivity, and optimize performance.

Frequently Asked Questions about vue-best-practices

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

FAQPage Schema
What are the best practices for structuring Vue 3 components with the Composition API?

Vue 3 best practices enforce using the Composition API with `<script setup>` and TypeScript. This structure promotes clear component boundaries, explicit data flow, and efficient reactivity management for scalable applications.

How do I define explicit props and emits in a Vue 3 Single File Component?

To define explicit props and emits in a Vue 3 SFC, use the Composition API with `<script setup>`. This enforces strict data flow principles of props down and events up, ensuring components remain maintainable.

What is the best way to use v-model and references in Vue 3?

The best way to use v-model and references in Vue 3 is through disciplined application of Composition API patterns. Proper usage of references ensures efficient reactivity management and optimized component performance.

Does this Vue best practices workflow support state management with Pinia?

Yes, this Vue best practices workflow offers performance-oriented patterns across common Vue features including Pinia. It guides architecture for scalable state management alongside router configurations and utility functions.

Why should I use TypeScript with Vue 3 script setup instead of the Options API?

TypeScript with Vue 3 `<script setup>` enforces explicit data flow and clear component boundaries by default. This disciplined approach ensures scalable, maintainable applications compared to the Options API.

How do I optimize Vue 3 reactivity patterns for large scale applications?

Optimize Vue 3 reactivity by following structured best practices for component architecture, explicit props and emits, and disciplined use of optional Vue features. This ensures high performance across scalable projects.