1---2name: vue-best-practices3description: Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.4license: MIT5---67<!-- AUTO-GENERATED-RESOURCE-MAP:START -->89### Resource Map1011> 基准路径: `.claude/skills/frontend-specialist/references/domains/frameworks/vue-best-practices/`1213```14vue-best-practices/15├── rules/16│ ├── codeactions-save-performance.md17│ ├── data-attributes-config.md18│ ├── deep-watch-numeric.md19│ ├── define-model-update-event.md20│ ├── duplicate-plugin-detection.md21│ ├── extract-component-props.md22│ ├── fallthrough-attributes.md23│ ├── hmr-vue-ssr.md24│ ├── module-resolution-bundler.md25│ ├── pinia-store-mocking.md26│ ├── script-setup-jsdoc.md27│ ├── strict-css-modules.md28│ ├── volar-3-breaking-changes.md29│ ├── vue-directive-comments.md30│ ├── vue-router-typed-params.md31│ ├── vue-tsc-strict-templates.md32│ └── with-defaults-union-types.md33└── SKILL.md34```3536<!-- AUTO-GENERATED-RESOURCE-MAP:END -->3738## Capability Rules3940| Rule | Keywords | Description |41|------|----------|-------------|42| [extract-component-props](rules/extract-component-props.md) | get props type, wrapper component, extend props, inherit props, ComponentProps | Extract types from .vue components |43| [vue-tsc-strict-templates](rules/vue-tsc-strict-templates.md) | undefined component, template error, strictTemplates | Catch undefined components in templates |44| [fallthrough-attributes](rules/fallthrough-attributes.md) | fallthrough, $attrs, wrapper component | Type-check fallthrough attributes |45| [strict-css-modules](rules/strict-css-modules.md) | css modules, $style, typo | Catch CSS module class typos |46| [data-attributes-config](rules/data-attributes-config.md) | data-*, strictTemplates, attribute | Allow data-* attributes |47| [volar-3-breaking-changes](rules/volar-3-breaking-changes.md) | volar, vue-language-server, editor | Fix Volar 3.0 upgrade issues |48| [module-resolution-bundler](rules/module-resolution-bundler.md) | cannot find module, @vue/tsconfig, moduleResolution | Fix module resolution errors |49| [define-model-update-event](rules/define-model-update-event.md) | defineModel, update event, undefined | Fix model update errors |50| [with-defaults-union-types](rules/with-defaults-union-types.md) | withDefaults, union type, default | Fix union type defaults |51| [deep-watch-numeric](rules/deep-watch-numeric.md) | watch, deep, array, Vue 3.5 | Efficient array watching |52| [vue-directive-comments](rules/vue-directive-comments.md) | @vue-ignore, @vue-skip, template | Control template type checking |53| [vue-router-typed-params](rules/vue-router-typed-params.md) | route params, typed router, unplugin | Fix route params typing |5455## Efficiency Rules5657| Rule | Keywords | Description |58|------|----------|-------------|59| [hmr-vue-ssr](rules/hmr-vue-ssr.md) | hmr, ssr, hot reload | Fix HMR in SSR apps |60| [pinia-store-mocking](rules/pinia-store-mocking.md) | pinia, mock, vitest, store | Mock Pinia stores |6162## Reference6364- [Vue Language Tools](https://github.com/vuejs/language-tools)65- [vue-component-type-helpers](https://github.com/vuejs/language-tools/tree/master/packages/component-type-helpers)66- [Vue 3 Documentation](https://vuejs.org/)