pinia
Skill628 starsChanged 34 days 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.
20 other projects use a version of this, 9 of them edited.
Adopted by
Most recently taken up by
- ragna-ai/ragna-studioedited, first seen Nov 16, 2026
- oberemokis/skillstheir own version, first seen Nov 15, 2026
- antfu/skillsedited, first seen Nov 10, 2026
- Contentrain/studioword for word, first seen Nov 8, 2026
- onmax/nuxt-skillsedited, first seen Nov 1, 2026
- kirklin/skillsedited, first seen Oct 13, 2026
Used with
Projects with it also use nitro, receiving-code-review and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillnitro
Build and deploy universal JavaScript servers with Nitro v3. Use when working with nitro.config.ts, defineNitroConfig, defineHandler, defineConfig, server.ts entry, filesystem routing, route rules, useStorage, defineCachedHandler, useDatabase, definePlugin, runtime hooks, Vercel/Cloudflare deployment, or migrating from Nitro v2/nitropack.
Also in 5 projects that use this
CloudflareSkillreceiving-code-review
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
Also in 4 projects that use this
OpenAISkillexecuting-plans
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Also in 4 projects that use this
OpenAISkillrequesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Also in 4 projects that use this
- +8 more from openai
Other versions20 projects use a version of this.
Word for word · 8
- moeru-ai/airi★ 51k100% same
- uni-helper/skills★ 107100% same
- Contentrain/studio★ 4100% same
- huangzida/skills★ 2100% same
- ElyzeSolutions/skills★ 1100% same
- hangineer/Hannah-Claude-Code-Toolkit★ 1100% same
- heamlk/Python-Skill★ 1100% same
- wltn7810-dotcom/claude-skill★ 0100% same
Edited · 9
- antfu/skills★ 6.1k94% same
- onmax/nuxt-skills★ 72494% same
- JetBrains/skills★ 38693% same
- konnga/skill-buddy★ 13299% same
- kirklin/skills★ 196% same
- liangmiQwQ/skills★ 194% same
- LiuRoi/skills★ 199% same
- lntvow/skills★ 113% same
- ragna-ai/ragna-studio★ 194% same
Wrote their own version · 3
- belos-street/skill-kit★ 8same name
- oberemokis/skills★ 2same 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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- antfuSkill
- pnpmSkill
- unocssSkill
- uview-plusSkill
- viteSkill
- vue-best-practicesSkill
- vueSkill
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 10 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 55
Use
storeToRefs(): when destructuring state/getters to preserve reactivity - Common: line 57
Call stores inside functions: not at module scope, especially for SSR
“Common” is measured: kept by at least 6 in 10 of the 10 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.

