agentskills.codes
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.zip

Installs 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

  1. Use setup-style defineStore (composition API) like existing stores.
  2. Export stores as useXStore with a clear, feature-based name.
  3. Keep state serializable and minimal.
  4. Use computed for derived values and functions for actions.
  5. 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.

Search skills

Search the agent skills registry