vue-patternslisted
Install: claude install-skill ku5ic/dotfiles
# Vue patterns
Default assumption: Vue 3 with the Composition API and `<script setup>` syntax.
- Current stable is Vue 3.5; deltas in 3.5+ (Reactive Props Destructure, `onWatcherCleanup`, `defineModel`) are called out where they matter.
- Options API is acceptable for legacy code; flag as legacy when reviewed.
- Adapt advice to the version in the project's `package.json` or lockfile.
## Severity rubric
Severity rubric: matches `rules/markdown-report.md` (failure/warning/info).
## Reference files
| File | Covers |
| -------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [reference/reactivity.md](reference/reactivity.md) | `ref` vs `reactive`, `toRefs`, `shallowRef`, destructuring traps |
| [reference/components.md](reference/components.md) | `<script setup>`, `defineProps`/`Emits`/`Slots`/`Model`, defaults (3.5+ vs 3.4) |
| [reference/watchers.md](reference/watchers.md) | `watch` vs `watchEffect`, options, deep watchers, async cleanup |
| [reference/state.md](reference/state.md) | `provide`/`inject`, Pinia, composables |
| [reference/anti-patterns.md](reference/anti-patterns.md) | Nine review-time anti-patterns with severity calls