·vue-best-practices
</>

vue-best-practices

hyf0/vue-skills

適用於 TypeScript、vue-tsc 和 Volar 的 Vue 3 和 Vue.js 最佳實踐。在編寫、審查或重構 Vue 組件時應該使用此技能,以確保正確的打字模式。觸發涉及 Vue 組件、道具提取、包裝器組件、模板類型檢查或 Volar 配置的任務。

6.4K安裝·84熱度·@hyf0

安裝

$npx skills add https://github.com/hyf0/vue-skills --skill vue-best-practices

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