About vue-pinia-best-practices
A reference skill for developers working with Pinia, covering common setup errors, reactivity pitfalls, and state management patterns.
Key features
- 01Pinia initialization troubleshooting
- 02Setup store state visibility
- 03Reactivity-safe store access
- 04State patterns for filters and large apps
Use cases
- 01Diagnosing getActivePinia startup errors
- 02Keeping destructured store values reactive
- 03Choosing state handling for URL filters
- 04Preparing production Pinia conventions
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ midudev/ autoskills --skill vue-pinia-best-practicesAfter installing, type/vue-pinia-best-practicesin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
reference/pinia-no-active-pinia-error.mdpinia-setup-store-return-all-state.mdpinia-store-destructuring-breaks-reactivity.mdstate-url-for-ephemeral-filters.mdstate-use-pinia-for-large-apps.mdstore-method-binding-parentheses.mdDetails
From the project READMEPinia best practices, common gotchas, and state management patterns.
Store Setup
- Getting "getActivePinia was called" error at startup → See pinia-no-active-pinia-error
- Setup stores missing state in DevTools or SSR → See pinia-setup-store-return-all-state
Reactivity
- Store destructuring stops updating UI reactively → See pinia-store-destructuring-breaks-reactivity
- Store methods lose context in template calls → See store-method-binding-parentheses
State Patterns
- Filters reset on refresh or can't be shared → See state-url-for-ephemeral-filters
- Building production app without DevTools or conventions → See state-use-pinia-for-large-apps
Comments
Markdown supported