From uni-helper-skills
Guides Pinia state management in Vue apps: defining stores, state/getters/actions, plugins, composables, testing, SSR, Nuxt, HMR.
How this skill is triggered — by the user, by Claude, or both
Slash command
/uni-helper-skills:piniaThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Pinia is the official state management library for Vue, designed to be intuitive and type-safe. It supports both Options API and Composition API styles, with first-class TypeScript support and devtools integration.
GENERATION.mdLICENSE.mdSYNC.mdreferences/advanced-hmr.mdreferences/advanced-nuxt.mdreferences/advanced-ssr.mdreferences/best-practices-outside-component.mdreferences/best-practices-testing.mdreferences/core-stores.mdreferences/features-composables.mdreferences/features-composing-stores.mdreferences/features-plugins.mdPinia is the official state management library for Vue, designed to be intuitive and type-safe. It supports both Options API and Composition API styles, with first-class TypeScript support and devtools integration.
The skill is based on Pinia v3.0.4, generated at 2026-01-28.
| Topic | Description | Reference |
|---|---|---|
| Stores | Defining stores, state, getters, actions, storeToRefs, subscriptions | core-stores |
| Topic | Description | Reference |
|---|---|---|
| Plugins | Extend stores with custom properties, state, and behavior | features-plugins |
| Topic | Description | Reference |
|---|---|---|
| Composables | Using Vue composables within stores (VueUse, etc.) | features-composables |
| Composing Stores | Store-to-store communication, avoiding circular dependencies | features-composing-stores |
| Topic | Description | Reference |
|---|---|---|
| Testing | Unit testing with @pinia/testing, mocking, stubbing | best-practices-testing |
| Outside Components | Using stores in navigation guards, plugins, middlewares | best-practices-outside-component |
| Topic | Description | Reference |
|---|---|---|
| SSR | Server-side rendering, state hydration | advanced-ssr |
| Nuxt | Nuxt integration, auto-imports, SSR best practices | advanced-nuxt |
| HMR | Hot module replacement for development | advanced-hmr |
storeToRefs() when destructuring state/getters to preserve reactivity@pinia/testing for component tests with mocked storesnpx claudepluginhub uni-helper/skillsGuides using Pinia for Vue state management: defining stores, state/getters/actions, plugins, SSR, Nuxt integration, and testing with @pinia/testing.
Configures Pinia store setup with step-by-step guidance and best practices for Vue state management.
Guides Pinia store setup, reactivity patterns, and state management in Vue apps. Covers common errors like 'getActivePinia was called' and destructuring issues.