aceternity-ui
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI…
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.
$ npx -y skills add secondsky/claude-skills --skill pinia-v3 --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pinia-v3Context preview
The summary Claude sees to decide when to auto-load this skill.
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.
name: pinia-v3
description: "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."
metadata:
keywords:
- pinia
- vue state management
- pinia stores
- defineStore
- vue 3 state
- state management
- getters
- actions
- pinia plugins
- pinia ssr
- nuxt pinia
- vuex migration
- store composition
- pinia testing
- setup stores
- option stores
- storeToRefs
- mapState
- mapActions
- state hydration
- pinia nuxt module
- createPinia
- useStore
- pinia devtools
- pinia hmr
- hot module replacement
license: MIT**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
---
bun add pinia # or bun add pinia # or bun add pinia
**For Vue <2.7 users**: Also install `@vue/composition-api` with `bun add @vue/composition-api`
**Why this matters:**
// 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')**CRITICAL:**
// stores/counter.ts
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', {
state: () => ({
count: 0,
name: 'Eduardo'
}),
getters: {
doubleCount: (state) => state.count * 2
},
actions: {
increment() {
this.count++
}
}
})<script setup>
import { useCounterStore } from '@/stores/counter'
const counter = useCounterStore()
</script>
<template>
<div>
<p>Count: {{ counter.count }}</p>
<p>Double: {{ counter.doubleCount }}</p>
<button @click="counter.increment">Increment</button>
</div>
</template>---
**Load `references/store-syntax-guide.md` for complete comparison of Option vs Setup stores.**
Pinia supports two store definition syntaxes:
**Option Stores:**
**Setup Stores:**
**→ Load `references/store-syntax-guide.md` for:** Complete syntax comparison, examples, choosing criteria
---
**Load `references/state-getters-actions.md` for complete API reference.**
**State:**
**Getters:**
**Actions:**
**Store Destructuring:**
import { storeToRefs } from 'pinia'
// ✅ For reactivity
const { name, count } = storeToRefs(store)
// ✅ Actions can destructure directly
const { increment } = store**→ Load `references/state-getters-actions.md` for:** Complete API, subscriptions, store composition patterns, Options API usage
---
**Load `references/plugins-composables.md` for complete plugin and composables guide.**
pinia.use(({ store, options }) => {
// Add properties to every store
return { customProperty: 'value' }
})**Option Stores:** Limited to `useLocalStorage` style in `state()` **Setup Stores:** Full VueUse/composables support
**→ Load `references/plugins-composables.md` for:** Complete plugin patterns, VueUse integration, TypeScript typing, common patterns (persistence, router, logger)
---
Stores need the Pinia instance, which is auto-injected in components but not available in module scope.
// router.ts
import { useUserStore } from '@/stores/user'
// ❌ Fails: Pinia not installed yet
const userStore = useUserStore()
router.beforeEach((to) => {
if (userStore.isLoggedIn) { /* ... */ }
})// router.ts
import { useUserStore } from '@/stores/user'
router.beforeEach((to) => {
// ✅ Works: Called after Pinia is installed
const userStore = useUserStore()
if (userStore.isLoggedIn) { /* ... */ }
})**Why it works**: Router guards execute AFTER `app.use(pinia)` completes.
// server-side
export function setupRouter(pinia) {
router.beforeEach((to) => {
const userStore = useUserStore(pinia) // Pass explicitly
})
}---
**Load `references/ssr-and-nuxt.md` for complete SSR and Nuxt integration guide.**
**State Hydration:**
`
145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
Repo: secondsky/claude-skills
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI…
Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations, service-to-service communication, or…
Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use when managing API versions,…
Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing microservices communication,…
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs,…
Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building production APIs, implementing…