This skill collects Pinia gotchas and state management patterns for Vue 3. Its SKILL.md has three groups, Store Setup, Reactivity and State Patterns, each linking to a short reference.
The entries cover the getActivePinia was called error at startup, setup stores that leave state out of DevTools or SSR, store destructuring that stops updating the UI, store methods that lose context in templates, filters that belong in the URL, and why larger apps should use Pinia.
What You Get
- A guide to the no active Pinia error at startup
- A rule to return all state from setup stores so DevTools and SSR see it
- Guides on destructuring stores and calling store methods from templates
- Two state pattern notes: URL state for ephemeral filters and Pinia for large apps
Common Use Cases
- Fixing a Pinia error that appears when the app starts
- Restoring reactivity after destructuring a store
- Deciding whether a filter belongs in a store or in the URL
What Makes It Unique
It is limited to Pinia and its few most common mistakes. It sits beside the main Vue skill and the testing skill, which has its own note on Pinia setup in tests.
Under The Hood
The agent loads a short Markdown index and reads the reference that matches the issue. There are no scripts. The skill does not tell the agent to fetch web pages, call APIs or run commands; the agent edits your store and component files when you ask for a fix.