vue-idioms
Vue Idioms and Patterns
Core Philosophy
Vue 3 Composition API is the default for all new code. <script setup> is the canonical syntax. Think in terms of reactive data flows, not component lifecycle hooks. Composables (use* functions) are the primary unit of logic reuse.
Scope: This file covers Vue 3 coding idioms for components, stores, and composables. For TypeScript type system patterns, see
@.agents/skills/typescript-idioms/SKILL.md. For file and folder layout, seereferences/project-structure.md(and the shared@.agents/skills/frontend-design/references/frontend-layout.md). For test naming, see@.agents/rules/testing-strategy.md. For logging, see@.agents/skills/logging-implementation/SKILL.md.Loading guard: Do NOT load this skill for non-Vue projects. React →
react-idioms; Angular →angular-idioms; Next.js →nextjs-idioms. This skill co-loads withtypescript-idioms(required for any Vue work).
When to Load References
Always load
typescript-idiomsfirst — it is required alongside this skill for any Vue work. Load these before writing code in the matching context — not after.