Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Vue Pro Patterns: Vue 3, Pinia, Nuxt & Vitest

    3

    Vue Pro Patterns makes your agent write the code a senior Vue developer would.

    Free

    10 uses5.0 (1 review)
    Vue Pro Patterns: Vue 3, Pinia, Nuxt & Vitest

    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)

    SeverityFile:lineIssueFix
    criticalOrdersTable.vue:212Search requests race; slower old response overwrites newerAbortController + cleanup in composable
    majorOrdersTable.vue:88watch copies filters into filtered (double render)computed
    majorOrdersTable.vue:401Renders 3,000 <tr>v-virtual-scroll (Vuetify)
    majorstore/orders.jsVuex module mixes UI flags with server dataPinia store + composable
    minorOrdersTable.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 + actions
    • composables/useOrderSearch.ts - debounced (VueUse refDebounced), 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 --noEmit clean
    • 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/markRaw for 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/useAsyncData vs $fetch, SSR-safe state, no browser APIs on the server.
    • Performance & a11y: lazy routes, async components, virtual lists, v-memo, focus management, no unsafe v-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.

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    This skill has been used 10 times.

    Trust & safety

    Security scan

    Security scan passed 10 days ago

    • Free with an Agensi account

    Permissions

    Network Access
    Read Files
    Write Files
    Listed10 days ago
    Updated5 days ago

    What's inside

    Frequently Asked Questions

    This skill is optimized for Vue 3.4+ and Nuxt 3/4 environments. It strictly follows modern standards like `<script setup>`, `defineModel`, and Pinia, ensuring your code remains future-proof and free from legacy Options API patterns.

    The skill performs a 'Context Analysis' by reading your configuration files to detect your specific versions, UI kits (like PrimeVue or Vuetify), and folder structures. It then adapts its code generation to match your project's existing naming conventions and architectural style.

    Yes, it is specifically designed to convert legacy Options API components and Vuex stores into modern Composition API and Pinia setup stores. It handles the logic extraction into composables while ensuring existing functionality remains intact.

    Unlike generic AI, this skill enforces strict TypeScript best practices and prevents common reactivity pitfalls, such as lost destructuring or incorrect watcher cleanup. It leverages the latest Vue 3 features like `useTemplateRef` that generic models often overlook.

    The skill includes a 'Validation' step where it runs `vue-tsc` and linting checks on the output. This ensures that the components and composables it provides are type-safe and ready to be integrated into your build pipeline without immediate errors.

    The skill is compatible with major AI agents that support code-ready interactions and file-system context. It is delivered as a specialized configuration that can be instantly activated within your preferred developer-focused AI environment.

    New in Frontend & Web Apps