EV

everhaven-state-pinia

Standard guide for building and organizing Pinia stores.

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
Beginner

Key capabilities

  • Define Pinia stores using setup-style defineStore
  • Export stores with clear, feature-based names
  • Keep state serializable and minimal
  • Use computed properties for derived values
  • Use functions for actions within stores
  • Separate state, getters, and actions clearly

How it works

The skill guides the creation and updating of Pinia stores by enforcing rules for structure, naming, state serializability, and the separation of state, getters, and actions.

Inputs & outputs

You give it
Request to create or update a Pinia store
You get back
A standardized Pinia store file

When to use everhaven-state-pinia

  • Creating a new state management store
  • Refactoring Pinia stores for consistency
  • Adding getters to a store

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.

When not to use it

  • When not using Pinia for state management
  • When side effects are desired at the top-level of store files
  • When a defineStore name is not stable or unique

Limitations

  • Side effects are not allowed at the top-level of store files
  • defineStore name must be stable and unique
  • Store files must be placed under src/stores

How it compares

This skill standardizes Pinia store definitions using setup-style composition API, ensuring consistency and best practices across the project, unlike ad-hoc store implementations.

Compared to similar skills

everhaven-state-pinia side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
everhaven-state-pinia (this skill)0No flagsBeginner
webf-quickstart17moReviewBeginner
raw-app02moReviewBeginner
new-composable01moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry