Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By secondskyv3.12.0MITIn 1 marketplace
Builds Vue 3 stores with Pinia v3, covering defineStore, getters, actions, Nuxt SSR hydration, Vuex migration and store testing. Claims to fix common errors like lost reactivity from destructuring.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
vue-state-management, pinia, vuex-migration, nuxt-ssr, vue-store, state-hydration, vue-testing, pinia-v3 ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Status: Production Ready ✅ Last Updated: 2025-11-11 Production Tested: Official Vue state management library, used in production Vue 3 applications worldwide
Claude Code automatically discovers this skill when you mention:
This skill provides comprehensive knowledge for building Vue 3 applications with Pinia, the official state management library. It covers store creation, state management patterns, SSR hydration, testing strategies, Nuxt integration, and migration from Vuex.
✅ Store Creation: Option stores and setup stores with complete TypeScript support ✅ State Management: Defining, accessing, mutating, and subscribing to state changes ✅ Getters & Actions: Computed properties and async business logic patterns ✅ Store Composition: Safe patterns for sharing state between stores ✅ Plugins: Extending stores with custom functionality (persistence, debouncing, etc.) ✅ SSR Support: State hydration for server-side rendering with Nuxt ✅ Testing: Unit and component testing with @pinia/testing ✅ Options API: Full support for Vue Options API with mappers ✅ Hot Module Replacement: Live editing stores without page reload ✅ Vuex Migration: Complete migration guide from Vuex to Pinia ✅ DevTools Integration: Time-travel debugging and state inspection ✅ TypeScript: Full type inference and type safety
| Issue | Why It Happens | How Skill Fixes It |
|---|---|---|
| Lost reactivity from destructuring | JavaScript destructuring breaks Vue reactivity | Always use storeToRefs() for state/getters |
| Dynamic state properties not reactive | Pinia needs upfront property declaration | Declare all properties in state() initially |
| "getActivePinia() was called with no active Pinia" | Calling useStore() before app.use(pinia) | Call app.use(pinia) before mounting |
| Setup store private state breaks SSR | Non-returned properties aren't tracked | Return ALL state from setup stores |
TypeScript errors with getter this | Known TS limitation with type inference | Explicitly type return values |
| $reset() not available in setup stores | Setup stores don't have built-in reset | Implement custom $reset() function |
Actions after await break SSR | Wrong Pinia instance used post-await | Call all useStore() before any await |
| Circular store dependencies crash | Both stores read each other's state | Use getters/actions for cross-store access |
| XSS vulnerability in SSR serialization | JSON.stringify() doesn't escape code | Use devalue library for serialization |
| HMR not working in development | Vite/webpack HMR not configured | Add acceptHMRUpdate() block |
| Composables break option stores | state() can only return writable refs | Use setup stores for complex composables |
| Tests fail intermittently | Shared Pinia instance across tests | Create fresh Pinia in beforeEach() |
# 1. Install Pinia
bun add pinia
# 2. Create and register Pinia
# main.ts
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
const pinia = createPinia()
const app = createApp(App)
app.use(pinia)
app.mount('#app')
// 3. Define a store
// stores/counter.ts
import { defineStore } from 'pinia'
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub secondsky/claude-skills --plugin pinia-v3Plugins from other owners that cover similar ground