Pinia v3 State Management equips Claude with deep technical expertise for building, debugging, and migrating store architectures in Vue 3 and Nuxt applications. The skill covers both Option Stores and Setup Stores, correct usage of storeToRefs to preserve reactivity, composable integrations with VueUse, and error-free server-side rendering (SSR) state hydration. It proactively prevents common pitfalls such as lost reactivity from direct destructuring, out-of-order store initialization, circular dependencies, and SSR cross-request state pollution, while offering streamlined patterns for testing with @pinia/testing and migrating legacy Vuex stores.
主な機能
01Full support for Option and Setup store syntaxes with automatic VueUse composable integration
02239 GitHub stars
03Safe SSR hydration strategies and Nuxt 3/4 module configurations that eliminate cross-request state leakage
04Complete unit and component testing blueprints using @pinia/testing and setActivePinia
05Reactivity preservation patterns using storeToRefs and proper action/getter typing
06Step-by-step Vuex migration pathways with direct mutation and namespacing conversion
ユースケース
01Troubleshooting SSR hydration mismatches, reactivity loss on store destructuring, and test isolation issues
02Building scalable, type-safe global stores for modern Vue 3 or Nuxt single-page and SSR applications
03Migrating legacy Vuex 3/4 codebases to modern Pinia stores without breaking existing component logic