EV
everhaven-state-pinia
Use when creating or updating Pinia stores. Covers store structure, naming, and state rules. Trigger keywords: Pinia, store, 状态管理, defineStore.
Install
mkdir -p .claude/skills/everhaven-state-pinia && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15183" && unzip -o skill.zip -d .claude/skills/everhaven-state-pinia && rm skill.zipInstalls to .claude/skills/everhaven-state-pinia
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when creating or updating Pinia stores. Covers store structure, naming, and state rules. Trigger keywords: Pinia, store, 状态管理, defineStore.143 chars✓ has a “when” trigger
About this skill
Everhaven State (Pinia) Skill
Purpose
This skill standardizes how Pinia stores are defined and used in this project.
Where Things Live
- Stores: src/stores/**
Store Rules
- Use setup-style defineStore (composition API) like existing stores.
- Export stores as useXStore with a clear, feature-based name.
- Keep state serializable and minimal.
- Use computed for derived values and functions for actions.
- Avoid side effects at the top-level of store files; keep them inside actions.
Checklist
- Store file placed under src/stores.
- defineStore name is stable and unique.
- State, getters (computed), and actions are clearly separated.