Vue Component Architecture Review
When To Use
- The main decision is about Vue component organization, Composition API design, state management (Pinia/Vuex), reactivity performance, or component boundaries.
- Reviewing composable design, watcher usage, or store organization.
Workflow
- Identify component roles — page, feature, shared, and base components.
- Review Composition API usage — are composables extracting reusable logic or creating hidden state?
- Map state ownership — local component state, Pinia/Vuex stores, and server state.
- Check watcher and computed usage — are watchers hiding business workflows?
- Review store organization — are stores scoped by domain or becoming dumping grounds?
- Check component boundaries — do components own too much API or domain logic?
- Recommend the smallest change that clarifies component or state ownership.
Output Format
Vue architecture review:
- Component roles:
- Composition API usage:
- State ownership:
- Watchers & computed:
- Store organization:
- Component boundaries:
- Recommended change:
- Verification:
Source: WangYao-GoGoGo/architecture-agent-skills — distributed by TomeVault.