vue-best-practices

Provide Vue 3 best practices for Composition API, TypeScript, and SSR.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/fefogarcia/approved-skills --skill vue-best-practices-fefogarcia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-best-practices
Source: https://github.com/fefogarcia/approved-skills/tree/main/skills/vue-best-practices
Command: npx skills add https://github.com/fefogarcia/approved-skills --skill vue-best-practices-fefogarcia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on Vue.js 3 best practices, helping developers write cleaner, more maintainable, and performant Vue applications. It addresses common pitfalls and offers solutions for reactivity, components, templates, and more.

Core Features & Use Cases

  • Vue 3 Best Practices: Covers Composition API, <script setup>, TypeScript integration, and modern Vue patterns.
  • Problem Solving: Addresses common gotchas in reactivity, watchers, props, slots, and more.
  • Use Case: A developer starting a new Vue 3 project can use this Skill to ensure they are following recommended patterns from the outset, avoiding common mistakes related to state management, component design, and performance optimization.

Quick Start

Load the vue-best-practices skill for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work.

Frequently Asked Questions about vue-best-practices

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

FAQPage Schema
How do I use the Vue 3 Composition API and script setup correctly?

Using the Vue 3 Composition API and <script setup> requires defining reactive state, computed properties, and watchers within single-file components to ensure cleaner, more maintainable code. This Skill provides comprehensive guidance on these modern Vue patterns.

What is the best way to integrate TypeScript with Vue 3 single-file components?

Integrating TypeScript with Vue 3 involves using Volar and vue-tsc to type-check props, emits, and component templates. This Skill offers best practices to avoid common type integration pitfalls and improve application performance.

How do I fix common reactivity and watcher issues in Vue 3?

Fixing Vue 3 reactivity and watcher issues requires correctly destructuring reactive objects and managing computed property dependencies. This Skill addresses these common gotchas to help you write performant Vue applications.

Can I use Vue 3 best practices for server-side rendering and async components?

Vue 3 best practices apply to server-side rendering (SSR), async components, and Suspense to optimize initial load performance. This Skill covers proper patterns for SSR, Teleport, KeepAlive, and lifecycle hooks.

Does this Vue 3 guidance cover advanced component patterns like provide/inject and slots?

Yes, this Vue 3 guidance covers advanced component patterns including provide/inject, slots, custom directives, and composables. It helps you structure components, manage forms, and configure your app effectively.

When should I use composables instead of mixins in Vue 3?

You should use composables instead of mixins in Vue 3 to encapsulate and reuse stateful logic without component merging conflicts. This Skill explains how to structure composables and apply them correctly in your templates.