Skip to content
Back to skills

Vue Best Practices

ASecurity

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.

  • 509 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added September 3, 2026
ai-agentstypescriptvuerefactoringgitdocumentation

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add aiskillstore/marketplace --skill vue-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vue Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vue Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-vue-best-practices-marketplace/badge)](https://www.skillsdirectory.com/skills/aiskillstore-vue-best-practices-marketplace)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vue-best-practices
description: 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.
license: MIT
metadata:
  author: hyf0
  version: "8.0.0"
---

## Capability Rules

| Rule | Keywords | Description |
|------|----------|-------------|
| [extract-component-props](rules/extract-component-props.md) | get props type, wrapper component, extend props, inherit props, ComponentProps | Extract types from .vue components |
| [vue-tsc-strict-templates](rules/vue-tsc-strict-templates.md) | undefined component, template error, strictTemplates | Catch undefined components in templates |
| [fallthrough-attributes](rules/fallthrough-attributes.md) | fallthrough, $attrs, wrapper component | Type-check fallthrough attributes |
| [strict-css-modules](rules/strict-css-modules.md) | css modules, $style, typo | Catch CSS module class typos |
| [data-attributes-config](rules/data-attributes-config.md) | data-*, strictTemplates, attribute | Allow data-* attributes |
| [volar-3-breaking-changes](rules/volar-3-breaking-changes.md) | volar, vue-language-server, editor | Fix Volar 3.0 upgrade issues |
| [module-resolution-bundler](rules/module-resolution-bundler.md) | cannot find module, @vue/tsconfig, moduleResolution | Fix module resolution errors |
| [define-model-update-event](rules/define-model-update-event.md) | defineModel, update event, undefined | Fix model update errors |
| [with-defaults-union-types](rules/with-defaults-union-types.md) | withDefaults, union type, default | Fix union type defaults |
| [deep-watch-numeric](rules/deep-watch-numeric.md) | watch, deep, array, Vue 3.5 | Efficient array watching |
| [vue-directive-comments](rules/vue-directive-comments.md) | @vue-ignore, @vue-skip, template | Control template type checking |
| [vue-router-typed-params](rules/vue-router-typed-params.md) | route params, typed router, unplugin | Fix route params typing |

## Efficiency Rules

| Rule | Keywords | Description |
|------|----------|-------------|
| [hmr-vue-ssr](rules/hmr-vue-ssr.md) | hmr, ssr, hot reload | Fix HMR in SSR apps |
| [pinia-store-mocking](rules/pinia-store-mocking.md) | pinia, mock, vitest, store | Mock Pinia stores |

## Reference

- [Vue Language Tools](https://github.com/vuejs/language-tools)
- [vue-component-type-helpers](https://github.com/vuejs/language-tools/tree/master/packages/component-type-helpers)
- [Vue 3 Documentation](https://vuejs.org/)

Files in this skill

  • SKILL.md2.6 KB
  • rules/codeactions-save-performance.md1.8 KB
  • rules/data-attributes-config.md1.8 KB
  • rules/deep-watch-numeric.md2.6 KB
  • rules/define-model-update-event.md2.4 KB
  • rules/duplicate-plugin-detection.md2.7 KB
  • rules/extract-component-props.md1.5 KB
  • rules/fallthrough-attributes.md1.7 KB
  • rules/hmr-vue-ssr.md2.9 KB
  • rules/module-resolution-bundler.md2.1 KB
  • rules/pinia-store-mocking.md3.7 KB
  • rules/script-setup-jsdoc.md1.9 KB
  • rules/strict-css-modules.md1.6 KB
  • rules/volar-3-breaking-changes.md1.8 KB
  • rules/vue-directive-comments.md1.6 KB
  • rules/vue-router-typed-params.md2.5 KB
  • rules/vue-tsc-strict-templates.md2 KB
  • rules/with-defaults-union-types.md2.5 KB
  • skill-report.json21.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.