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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vue best practices help teams build maintainable Vue 3 codebases by addressing reactivity pitfalls, composition API patterns, component design, and performance considerations. It provides structured guidance to reduce common errors and deliver scalable, predictable Vue applications.

Core Features & Use Cases

  • Provides guidelines on Composition API usage, reactivity pitfalls, component design, and performance optimizations.
  • Includes practical references for computed properties, watchers, transitions, KeepAlive, SSR, and tooling.
  • Helps teams migrate from Options API and align across projects for consistency.

Quick Start

Apply the Vue best-practices guidance to your app to improve maintainability and 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 Vue 3 Composition API usage and reactivity?

Vue 3 best practices for the Composition API involve applying structured patterns to avoid common reactivity pitfalls. Using computed properties and watchers correctly ensures predictable state management and maintainable component design.

How do I migrate a Vue project from Options API to Composition API?

Migrating from Options API to Composition API requires applying structured component design patterns to refactor logic into reusable functions. This transition aligns codebases across teams for consistency and improves overall code maintainability.

What is the best way to optimize Vue performance with KeepAlive and SSR?

Optimizing Vue performance with KeepAlive and SSR involves applying specific caching strategies and server-side rendering patterns. These Vue best practices reduce unnecessary component re-renders and improve load times in performance-critical codepaths.

Can I use these Vue best practices for large-scale team applications?

Yes, these Vue best practices scale from small components to full applications. They provide guardrails for reactivity and lifecycle management, helping teams align across projects and ensure maintainable, performant Vue 3 codebases.

Why does my Vue watcher or computed property cause performance issues?

Vue watchers and computed properties cause performance issues when reactivity guardrails are ignored, leading to unnecessary recalculations. Applying Vue best practices for caching and lifecycle management resolves these bottlenecks in performance-critical codepaths.

When should I avoid certain reactivity patterns in Vue 3?

You should avoid certain Vue 3 reactivity patterns when they introduce unpredictable state mutations or bypass caching guardrails. Applying established Vue best practices helps identify these limitations and directs you toward safer component design alternatives.