What problem does it solve?
Provide a consistent, opinionated set of rules and playbooks to refactor, review, and author Vue 3 Single-File Components so they are type-safe, reactive-correct, and architected for maintainability and performance.
Core Features & Use Cases
- Enforces Composition API SFCs with <script setup lang="ts">, typed props/emits/models, and predictable composable extraction.
- Captures reactivity best practices: use ref/shallowRef/reactive appropriately, avoid destructuring reactive objects, prefer computed for derived values, and explain .value vs template unwrapping.
- Guides SFC structure, template safety (v-html sanitization), stable v-for keys, v-if/v-else usage, component splitting for CRUD features, and performance-first recommendations (when to virtualize, memoize, or keep things simple).
- Use cases: refactoring Options API components to Composition API, running automated code-review style checks, designing feature folders and composables, and producing production-ready SFC patterns for teams.
Quick Start
Ask the assistant to refactor a Vue SFC to use <script setup lang="ts">, computed properties, typed props/emits, and extract state into composables.