vue-best-practices

Guide Vue 3 projects through Composition API and SFC best practices.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/NgDuyKhanhs/open-mmo --skill vue-best-practices-ngduykhanhs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-best-practices
Source: https://github.com/NgDuyKhanhs/open-mmo/tree/main/frontend/.agents/skills/vue-best-practices
Command: npx skills add https://github.com/NgDuyKhanhs/open-mmo --skill vue-best-practices-ngduykhanhs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vue teams often struggle to apply consistent architectural and performance best practices across large codebases. This Skill provides a repeatable workflow and curated references to standardize Vue 3 development.

Core Features & Use Cases

  • Verify architecture before coding with a Vue 3 Composition API-first approach and TS support.
  • Enforce essential Vue foundations: reactivity, SFC structure, and explicit data flow.
  • Use optional features (slots, suspense, keep-alive, teleport) selectively to balance UX and performance.
  • Perform a final self-check to ensure core references were reviewed and tasks completed.

Quick Start

Load the core references and follow the prescribed workflow to begin applying Vue best practices in your task.

Frequently Asked Questions about vue-best-practices

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

FAQPage Schema
How do I enforce Vue 3 best practices consistently across a large codebase?

To enforce Vue 3 best practices, use a Composition API-first approach with TypeScript support, maintain SFC discipline, and perform a final self-check against curated references to verify reactivity and data flow.

What is the best way to structure Vue 3 Single File Components for robust applications?

The best way to structure Vue 3 SFCs is by following explicit data flow rules, enforcing essential Vue foundations like reactivity, and including required metadata frontmatter such as name and description.

How do I balance UX and performance when using Vue 3 features like suspense and keep-alive?

To balance UX and performance in Vue 3, selectively apply optional features like slots, suspense, keep-alive, and teleport only when they directly support performance-conscious patterns and architectural requirements.

Does this Vue 3 workflow require TypeScript for Composition API architecture verification?

Yes, verifying architecture before coding with a Vue 3 Composition API-first approach includes TypeScript support to ensure robust applications and maintain consistent standards across the project.

When should I not use optional Vue 3 features like teleport and suspense in my frontend architecture?

You should not use optional Vue 3 features like teleport and suspense if they compromise performance-conscious patterns or disrupt the explicit data flow within your single file components.

Can I use this Vue best practices workflow to check for toxic content and safety in SFCs?

Yes, the Vue 3 best practices workflow includes safety checks for toxic content and specifies optional resources like scripts and assets to ensure secure frontend architecture during development.