vue-best-practices
✓适用于 TypeScript、vue-tsc 和 Volar 的 Vue 3 和 Vue.js 最佳实践。在编写、审查或重构 Vue 组件时应该使用此技能,以确保正确的打字模式。触发涉及 Vue 组件、道具提取、包装器组件、模板类型检查或 Volar 配置的任务。
SKILL.md
| extract-component-props | get props type, wrapper component, extend props, inherit props, ComponentProps | Extract types from .vue components | | vue-tsc-strict-templates | undefined component, template error, strictTemplates | Catch undefined components in templates |
| fallthrough-attributes | fallthrough, $attrs, wrapper component | Type-check fallthrough attributes | | strict-css-modules | css modules, $style, typo | Catch CSS module class typos | | data-attributes-config | data-, strictTemplates, attribute | Allow data- attributes |
| volar-3-breaking-changes | volar, vue-language-server, editor | Fix Volar 3.0 upgrade issues | | module-resolution-bundler | cannot find module, @vue/tsconfig, moduleResolution | Fix module resolution errors | | define-model-update-event | defineModel, update event, undefined | Fix model update errors |
适用于 TypeScript、vue-tsc 和 Volar 的 Vue 3 和 Vue.js 最佳实践。在编写、审查或重构 Vue 组件时应该使用此技能,以确保正确的打字模式。触发涉及 Vue 组件、道具提取、包装器组件、模板类型检查或 Volar 配置的任务。 来源:hyf0/vue-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/hyf0/vue-skills --skill vue-best-practices- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 vue-best-practices?
适用于 TypeScript、vue-tsc 和 Volar 的 Vue 3 和 Vue.js 最佳实践。在编写、审查或重构 Vue 组件时应该使用此技能,以确保正确的打字模式。触发涉及 Vue 组件、道具提取、包装器组件、模板类型检查或 Volar 配置的任务。 来源:hyf0/vue-skills。
如何安装 vue-best-practices?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/hyf0/vue-skills --skill vue-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/hyf0/vue-skills