Vue 3 patterns for the Composition API, reactivity, and single-file components. Load before any edit to a .vue file or composable, however small, and for Vue questions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Vue Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ku5ic-vue-patterns)
---
name: vue-patterns
description: Vue 3 patterns for the Composition API, reactivity, and single-file components. Load before any edit to a .vue file or composable, however small, and for Vue questions.
---
# Vue patterns
Default assumption: Vue 3.5 with the Composition API and `<script setup>`, per the Vue core releases. 3.6 is in release candidates.
A row applies when the `vue` version in the project's `package.json` and lockfile is at least its version. A Vue 2 project is out of scope, so flag its major and stop.
## Reference files
Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.
| Before | Read |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Vue code, or raising the Vue version | [reference/upgrades.md](reference/upgrades.md) |
| Writing, changing, or reviewing Vue code | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing reactive state, props, emits, slots, `defineModel`, `defineExpose`, a watcher, a template ref, provide or inject, a composable, a store, `KeepAlive`, `Suspense`, or `Teleport` | [reference/practices.md](reference/practices.md) |
| Configuring or running eslint-plugin-vue or vue-tsc | [reference/tooling.md](reference/tooling.md) |