Agent skill · software engineering · secondsky

pinia-v3

Pinia v3 Vue state management with defineStore, getters, actions. Use for Vue 3 stores, Nuxt SSR, Vuex migration, or encountering store composition, hydration, testing errors.

Why this skill is useful

Provides specific patterns and commands for managing state in Vue 3 applications using Pinia, which the AI wouldn't reliably generate on its own.

What it needs

Requires bun installed locally. About 9k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.

What this skill does

Pinia v3 - Vue State Management Status: Production Ready ✅ Last Updated: 2025-11-11 Dependencies: Vue 3 (or Vue 2.7 with @vue/composition-api) Latest Versions: pinia@^3.0.4, @pinia/nuxt@^0.11.2, @pinia/testing@^1.0.2 --- Quick Start (5 Minutes) 1. Install Pinia For Vue <2.7 users: Also install @vue/composition-api with bun add @vue/composition-api Why this matters: Pinia is the official Vue state management library Provides better TypeScript support than Vuex Eliminates mutations and namespacing complexity Full DevTools support with time-travel debugging 2. Create and Register Pinia Instance CRITICAL: Install Pinia BEFORE using any store Call app.use(pinia) before mounting the app Only one Pinia instance per application (unless SSR) 3. Define Your First Store 4. Use Store in Components --- The Two Store Syntaxes Load references/store-syntax-guide.md for complete comparison of Option vs Setup stores. Quick Overview Pinia supports two store definition syntaxes: Option Stores: Similar to Vue Options API Built-in $reset() method Best for: Simpler use cases, teams familiar with Vuex Setup Stores: Uses Composition API pattern Full composables integration Best for: Advanced patterns, need watchers/VueUse integration → Load references/store-syntax-guide.md for: Complete syntax comparison, examples, choosing criteria --- State, Getters, and Actions Load references/state-getters-actions.md for complete API reference. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills secondsky/pinia-v3

View the source on GitHub

Browse the @skills marketplace