hyf0 avatar

Vue Pinia Best Practices

Covers the stuff that trips up most Vue developers when they first adopt Pinia, like destructuring breaking reactivity and the dreaded "getActivePinia was called" error. Each pattern links to a specific gotcha with the fix, from setup store DevTools visibility to why your store methods need parentheses in templates. The URL state guidance is solid if you're dealing with filters that should survive page refreshes. This is less about teaching Pinia from scratch and more about skipping the Stack Overflow detours when you hit the common pain points.

skills.sh installs
2.8K
GitHub stars
2.7K
last updated
Jul 14, 2026

Install

$ npx -y skills add hyf0/vue-skills --skill vue-pinia-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Pinia best practices, common gotchas, and state management patterns.

Store Setup

Reactivity

State Patterns

Sponsors

Details

Repository
github.com/hyf0/vue-skills
Category
Frontend Development
First seen
May 16, 2026

More from hyf0/vue-skills

All 11
1owl-listener avatarresponsive-designowl-listener/designer-skillsDesign adaptive layouts and interactions that work across all screen sizes and input methods.2.5Kskills.sh installs
2chrisbanes avatarcompose-ui-testing-patternschrisbanes/skillsUse when writing or reviewing Jetpack Compose UI tests, screenshot tests, previews, semantics assertions, fake image loading, keyboard input, focus assertions, 2.5Kskills.sh installs
3alinaqi avatarpwa-developmentalinaqi/claude-bootstrappwa development2.4Kskills.sh installs
4vercel-labs avatarreact-three-fibervercel-labs/json-renderReact Three Fiber 3D renderer for json-render. Use when working with @json-render/react-three-fiber, building 3D scenes from JSON specs, rendering meshes/lights2.4Kskills.sh installs
5owl-listener avatarcomponent-specowl-listener/designer-skillsWrite a detailed component specification including props, states, variants, accessibility requirements, and usage guidelines.2.4Kskills.sh installs
6mindrally avatarexpo-react-native-typescriptmindrally/skillsExpert in Expo React Native TypeScript mobile development with best practices2.3Kskills.sh installs