vue-best-practices

Standardizes Vue 3 component typing with Volar and ts-2c for cross-project consistency.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/hoangminh46/mine-vibe --skill vue-best-practices-hoangminh46
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-best-practices
Source: https://github.com/hoangminh46/mine-vibe/tree/main/skills/vue-best-practices
Command: npx skills add https://github.com/hoangminh46/mine-vibe --skill vue-best-practices-hoangminh46

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vue 3 projects often suffer from inconsistent typing and unclear template typings. This skill provides best practices for TypeScript integration, vue-tsc, and Volar to ensure consistent, correct typing across components.

Core Features & Use Cases

  • Enforces typed props, emits, and slots in Vue components using Vue 3, TypeScript, and Volar.
  • Guides on wrapper components, template type checking, and Volar configuration to improve editor accuracy and safety.
  • Use cases include writing, reviewing, or refactoring components to prevent runtime type errors and improve DX.

Quick Start

Analyze a Vue component for typing best practices and propose concrete fixes.

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 consistent TypeScript typing for Vue 3 component props and emits?

Consistent Vue 3 component typing is enforced by standardizing typed props, emits, and slots extraction using TypeScript and Volar. This prevents inconsistent component typings and improves editor feedback during component writing, reviewing, or refactoring.

Why does Volar show type errors in my Vue 3 templates?

Volar template type errors occur when Vue components lack proper TypeScript integration. Configuring Volar with vue-tsc enables template type checking, ensuring correct typing for props, emits, and slots to resolve these errors and improve runtime safety.

What's the best way to type wrapper components in Vue 3?

The best way to type Vue 3 wrapper components is applying best practices for props extraction and slot typing. This ensures correct typing via vue-tsc and Volar integration, improving editor accuracy and preventing runtime type errors.

Can I use vue-tsc to check template types in my Vue 3 project?

Yes, vue-tsc is used to perform template type checking in Vue 3 projects. Combined with Volar configuration, it enforces correct typing for props, emits, and slots, delivering accurate editor feedback and runtime safety.

When do I need to refactor Vue components for typing best practices?

Refactoring Vue components for typing best practices is needed when a project suffers from unclear template typings or inconsistent TypeScript usage. Applying Volar configuration and vue-tsc standardizes typing and prevents runtime type errors.