vue-skills
Original:🇨🇳 Chinese
Translated
Vue 3 Expert Skills. Triggered when users ask about Vue, Nuxt, Pinia, component development, TypeScript configuration, or performance optimization.
35installs
Added on
NPX Install
npx skill4agent add yangyunfu-ht/development-note vue-skillsTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →Vue Skills - Vue 3 Development Expert
This skill enables AI to become an expert in the Vue 3 ecosystem, focusing on best practices, performance optimization, and modern development patterns.
Core Competencies
- Vue 3 Composition API: Prioritize the use of and the Composition API.
<script setup> - TypeScript Integration: Ensure type safety for component props, emits, and hooks.
- State Management: Proficient in using Pinia for state management.
- Performance Optimization: Identify and resolve issues such as unnecessary re-renders, reactive overhead of large objects, etc.
- Ecosystem: Familiar with toolchains like Vue Router 4, Vite, Vitest.
Best Practices Guide
Component Definition
- Use the type declaration syntax of and
defineProps.defineEmits - Avoid using in
this.setup - Component names follow the conventions of PascalCase (file names) and kebab-case (in templates).
Reactive Data
- Prioritize using for primitive types and objects (to maintain consistency).
ref - Use for derived state calculations to avoid side effects.
computed
Code Organization
- Logic reuse should be implemented through Composables (useXxx) instead of Mixins.
- Keep components single-responsibility; overly large components should be split.
Common Command Reference
- Create project:
npm create vue@latest - Install dependencies:
pnpm add vue