pinia
Skill114 starsChanged 4 months agoMITView on GitHub
Pinia official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.
12 other projects use a version of this, 9 of them edited.
Adopted by
Most recently taken up by
- antfu/skillsedited, first seen Sep 30, 2026
- onmax/nuxt-skillsedited, first seen Sep 18, 2026
- ElyzeSolutions/skillsedited, first seen Aug 6, 2026
- hangineer/Hannah-Claude-Code-Toolkitedited, first seen Jun 25, 2026
- lntvow/skillstheir own version, first seen Jun 4, 2026
- zhengyuzi/skillsedited, first seen May 17, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 9
- antfu/skills★ 5.9k87% same
- onmax/nuxt-skills★ 71791% same
- JetBrains/skills★ 36091% same
- uni-helper/skills★ 10791% same
- huangzida/skills★ 291% same
- ElyzeSolutions/skills★ 191% same
- hangineer/Hannah-Claude-Code-Toolkit★ 191% same
- LiuRoi/skills★ 1100% same
- zhengyuzi/skills★ 191% same
Wrote their own version · 3
- martinholovsky/claude-skills-generator★ 47same name
- lntvow/skills★ 1same name
- vuluu2k/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- nuxtSkill
- vitepressSkill
- vue-best-practicesSkill
- vue-router-best-practicesSkill
- vueSkill
- vue-testing-best-practicesSkill
- vueuse-functionsSkill
- nuxtSkill
- piniaSkill
- vitepressSkill
- vue-best-practicesSkill
- vue-router-best-practicesSkill
- vueSkill
- vue-testing-best-practicesSkill
- vueuse-functionsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 1 is common, 0 are distinctive, and 1 is very specific to this project.
1
Common
Most of the 11 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Use
storeToRefs(): when destructuring state/getters to preserve reactivity - Common: line 56
Call stores inside functions: not at module scope, especially for SSR
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pinia
Pinia is the official state management library for Vue, designed to be intuitive and type-safe. It supports both Options API and Composition API styles, with first-class TypeScript support and devtools integration.
The skill is based on Pinia v3.0.4, generated at 2026-01-28.
Core References
| Topic | Description | Reference |
| Stores | Defining stores, state, getters, actions, storeToRefs, subscriptions | core-stores |
Features
Extensibility
| Topic | Description | Reference |
| Plugins | Extend stores with custom properties, state, and behavior | features-plugins |
Composability
| Topic | Description | Reference |
| Composables | Using Vue composables within stores (VueUse, etc.) | features-composables |
| Composing Stores | Store-to-store communication, avoiding circular dependencies | features-composing-stores |
Best Practices
| Topic | Description | Reference |
| Testing | Unit testing with @pinia/testing, mocking, stubbing | best-practices-testing |
| Outside Components | Using stores in navigation guards, plugins, middlewares | best-practices-outside-component |
Advanced
| Topic | Description | Reference |
| SSR | Server-side rendering, state hydration | advanced-ssr |
| Nuxt | Nuxt integration, auto-imports, SSR best practices | advanced-nuxt |
| HMR | Hot module replacement for development | advanced-hmr |
Key Recommendations
- Prefer Setup Stores for complex logic, composables, and watchers
- Use
storeToRefs()when destructuring state/getters to preserve reactivity - Actions can be destructured directly - they're bound to the store
- Call stores inside functions not at module scope, especially for SSR
- Add HMR support to each store for better development experience
- Use
@pinia/testingfor component tests with mocked stores
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

