- Home
- Skills
- Frontend & Web Apps
- Vue Pro Patterns: Vue 3, Pinia, Nuxt & Vitest
Works with the AI Agents you already use
Vue Pro Patterns: Vue 3, Pinia, Nuxt & Vitest
Vue Pro Patterns makes your agent write the code a senior Vue developer would.
Free
Vue Pro Patterns: Vue 3, Pinia, Nuxt & Vitest
Example session with this skill installed
Review and refactor src/components/OrdersTable.vue. It's 600 lines of Options API with Vuex, it's slow with 3,000 rows and the search sometimes shows stale results.
- Read your context and instructions
- Compiled the vue pro patterns
Summary
Detected Vue 3.5, Vite, Vuetify 3, Vuex 4 + Pinia already installed, Vitest. Migrated OrdersTable.vue to <script setup lang="ts">, moved orders state to Pinia, fixed the stale-search race condition and virtualized the table. Behaviour unchanged.
Review findings (before)
| Severity | File:line | Issue | Fix |
|---|---|---|---|
| critical | OrdersTable.vue:212 | Search requests race; slower old response overwrites newer | AbortController + cleanup in composable |
| major | OrdersTable.vue:88 | watch copies filters into filtered (double render) | computed |
| major | OrdersTable.vue:401 | Renders 3,000 <tr> | v-virtual-scroll (Vuetify) |
| major | store/orders.js | Vuex module mixes UI flags with server data | Pinia store + composable |
| minor | OrdersTable.vue:530 | :key="index" on editable rows | :key="order.id" |
Result
components/OrdersTable.vue- 140 lines, presentational, typed props,defineModel('selected')components/OrderRow.vue- row + actionscomposables/useOrderSearch.ts- debounced (VueUserefDebounced), abortable, returns{ data, loading, error }stores/orders.ts- Pinia setup store; old Vuex module removed after callers migrated
const { data: orders, loading } = useOrderSearch(() => filters.value)
const totals = computed(() => sumBy(orders.value, 'total'))
Checks
vue-tsc --noEmitclean- 11 Vitest tests passing (2 new: stale-search race, selection v-model)
- 3,000 rows: initial render 1.9 s -> 120 ms; scroll 60 fps
Next
The same race pattern exists in CustomersTable.vue:97 - want me to apply the composable there too?
Connects securely to your tools. The creator never sees your data.
About this skill
Idiomatic Vue 3, not React-flavoured guesswork
Agents often write Vue like it's 2019: Options API, Vuex, lost reactivity, watch to sync state, prop mutation, v-html everywhere. Vue Pro Patterns makes your agent write the code a senior Vue developer would.
What it does
- Detects your setup first: Vue version (3.4
defineModel, 3.5 props destructure,useTemplateRef,useId), Nuxt, Pinia, VueUse, UI library (Vuetify, PrimeVue, Quasar, Nuxt UI), TS and test runner. Follows your conventions. - Components:
<script setup lang="ts">, typed props/emits,defineModel, small focused components, stable keys, typed provide/inject. - Reactivity done right: computed over watch,
shallowRef/markRawfor big data,toRefs/storeToRefs, cleanup with abort controllers. - Composables:
MaybeRefOrGetter+toValue, return refs, dispose listeners, reuse VueUse. - Pinia setup stores and server-state vs client-state guidance.
- Nuxt:
useFetch/useAsyncDatavs$fetch, SSR-safe state, no browser APIs on the server. - Performance & a11y: lazy routes, async components, virtual lists,
v-memo, focus management, no unsafev-html. - Testing: Vitest + Vue Test Utils/Testing Library,
createTestingPinia,@nuxt/test-utils. - 3 modes: Build (code + tests +
vue-tsc), Review (severity-ranked findings with file:line and fix), Migrate (Options to Composition, Vuex to Pinia, Vue 2 to 3, Nuxt 2 to 3/4).
Includes
- SKILL.md workflow
- references/patterns.md - typed component, composable, Pinia, provide/inject, Nuxt examples + anti-pattern table
- references/review-checklist.md
- references/migration.md - step-by-step playbooks
Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI and any SKILL.md-compatible agent.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
No support for Class-style components. Optimized for Vue 3.4+; some features like defineModel will not work on older 3.x versions. Requires TypeScript for full pattern enforcement.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
This skill has been used 10 times.
Trust & safety
Security scan
Security scan passed 10 days ago
- Free with an Agensi account