What problem does it solve? Managing shared state across Vue components becomes error-prone with ad-hoc solutions, leading to lost reactivity, SSR hydration bugs, and untestable code. This Skill provides authoritative guidance on Pinia, the official Vue state management library, covering store definition, testing, SSR, and plugin extension. ## Core Features & Use Cases - Store Definition Patterns: Define Option Stores and Setup Stores with state, getters, and actions, including TypeScript typing and storeToRefs for safe destructuring. - Testing Support: Unit test stores with setActivePinia and test components using @pinia/testing with stubbed actions, initial state, and mocked getters. - SSR & Nuxt Integration: Handle server-side rendering, state hydration with devalue, and Nuxt auto-imports without cross-request state pollution. - Use Case: When building a Vue 3 app with an authentication flow, use this Skill to create a user store with async login actions, persist state via a plugin, and write component tests with mocked store actions. ## Quick Start Ask the AI to create a Pinia setup store for shopping cart state with actions to add items and persist the cart to localStorage.