Vue best practices
Skill aiskillstore/marketplace/skills/hyf0/vue-best-practices
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.From its SKILL.md
npx -y skills add aiskillstore/marketplace --skill vue-best-practicesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.6 KB, 554 tokens by cl100k_base, as published. Nobody here has run it
Capability Rules
| Rule | Keywords | Description |
|---|---|---|
| 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 |
| with-defaults-union-types | withDefaults, union type, default | Fix union type defaults |
| deep-watch-numeric | watch, deep, array, Vue 3.5 | Efficient array watching |
| vue-directive-comments | @vue-ignore, @vue-skip, template | Control template type checking |
| vue-router-typed-params | route params, typed router, unplugin | Fix route params typing |
Efficiency Rules
| Rule | Keywords | Description |
|---|---|---|
| hmr-vue-ssr | hmr, ssr, hot reload | Fix HMR in SSR apps |
| pinia-store-mocking | pinia, mock, vitest, store | Mock Pinia stores |
Reference
What ships with it: 18 files
58.4 KB alongside SKILL.md
rules/
- codeactions-save-performance.md1.8 KB
- data-attributes-config.md1.8 KB
- deep-watch-numeric.md2.6 KB
- define-model-update-event.md2.4 KB
- duplicate-plugin-detection.md2.7 KB
- extract-component-props.md1.5 KB
- fallthrough-attributes.md1.7 KB
- hmr-vue-ssr.md2.9 KB
- module-resolution-bundler.md2.1 KB
- pinia-store-mocking.md3.7 KB
- script-setup-jsdoc.md1.9 KB
- strict-css-modules.md1.6 KB
- volar-3-breaking-changes.md1.8 KB
- vue-directive-comments.md1.6 KB
- vue-router-typed-params.md2.5 KB
- vue-tsc-strict-templates.md2.0 KB
- with-defaults-union-types.md2.5 KB
- skill-report.json21.3 KB