pinia

pinia is a skill for Claude Code from YuDefine/nuxt-supabase-starter. It costs 37 tokens per session (623 once invoked), scanned A, a copy of pinia, MIT.

Guidance for Pinia, the official state-management library for Vue applications, covering stores, shared state, getters, actions, plugins, and testing.

In plain words
What is it for?
Use it when defining Pinia stores, connecting stores, using them outside components, extending them with plugins, or testing them.
Why use it?
It gives developers a consistent way to keep data shared between Vue components and to test that data logic.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when defining Pinia stores, connecting stores, using them outside components, extending them with plugins, or testing them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yudefine/nuxt-supabase-starter/pinia
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add YuDefine/nuxt-supabase-starter --skill pinia
Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pinia

README.md
[![agentmods](https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/pinia/github.svg)](https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/pinia)
Your own site
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/pinia"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/pinia/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pinia

Your own site · 80×15
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/pinia"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/pinia.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 623 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00623
Opus 5.5 $0.00015 $0.00249
Sonnet 5.5 $0.00007 $0.00125
Haiku 4.5 $0.00004 $0.00062

Measured 15d ago against content hash 4efb2e7d1771, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pinia scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to pinia — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

template/.claude/skills/pinia/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 v4.0.3, generated at 2026-09-25.

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/testing for component tests with mocked stores

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed 4efb2e7d1771
  2. 3mo ago First seen · 60 lines · 37 tokens per session scan A fba52570068a

Subscribe to this mod's changes

pinia is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 623 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to pinia, differing in 4 lines, and is treated as a copy.

Related

pinia compared with skills from other repositories

pinia next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
piniaYuDefine/nuxt-supabase-starterSkill452d agoMITA37Claude Code
software-test-creationstencila/stencilaSkill916todayApache-2.0A82Claude Code
fuzzing-patternsccashwell/evm-cortexSkill1311mo agoMITA50Claude Code, Codex
finish-itkyh/vibedgamesSkill62todayMITA29Claude Code
prd-v07-implementation-loopmattgierhart/PRD-driven-context-engineeringSkill1793mo agoMITA113Claude Code
prd-v07-test-planningmattgierhart/PRD-driven-context-engineeringSkill1793mo agoMITA125Claude Code
design-reviewerHarshvardhan86/claude-wave-pluginSkill141mo agoMITA46Claude Code