What problem does it solve?
This Skill solves common pain points when working with Vue 3 and TypeScript, including undefined component errors in templates, incorrect prop typing, Volar configuration issues, and inefficient array watching that lead to runtime errors and poor developer experience.
Core Features & Use Cases
- Type-Safe Component Development: Extract props, emits, and slots types from .vue components correctly, avoid common typing mistakes like using InstanceType for prop extraction.
- Compile-Time Error Prevention: Catch undefined components, invalid props, and CSS module class name typos at build time with strict template and CSS module checking.
- Tooling & Workflow Fixes: Resolve Volar 3 upgrade issues, Vite SSR HMR problems, Pinia store mocking errors, Vue Router typed params narrowing issues, and slow VSCode save times in large Vue projects.
- Use Case: Use this Skill when building a Vue 3 enterprise admin system like forge-admin to ensure all components follow type-safe best practices, avoid build and runtime errors, and maintain consistent code quality across the team.
Quick Start
Use the vue-best-practices skill to review your Vue 3 component's prop types and enable strict template checking in your tsconfig to catch undefined component errors before runtime.