uniapp-vue3-template: Skill for Claude Code

.agents/skills/pinia/SKILL.md

pinia is a skill for Claude Code, Codex from oyjt/uniapp-vue3-template. It costs 37 tokens per session (623 once invoked), scanned A, a copy of pinia, MIT.

Pinia is the official state-management library for Vue, used to store and update shared application data.

In plain words
What is it for?
Defining Pinia stores, composing stores, using them outside components, extending them with plugins, and testing them.
Why use it?
It provides a consistent place for Vue components to share state, derived values, and actions instead of passing data through many components.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is oyjt/uniapp-vue3-template's own configuration. It tells Claude Code and Codex how to work on uniapp-vue3-template itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything uniapp-vue3-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to oyjt/uniapp-vue3-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/oyjt/uniapp-vue3-template/main/.agents/skills/pinia/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/oyjt/uniapp-vue3-template

Made for: Claude Code, Codex.

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/oyjt/uniapp-vue3-template/pinia/github.svg)](https://agentmods.dev/skills/oyjt/uniapp-vue3-template/pinia)
Your own site
<a href="https://agentmods.dev/skills/oyjt/uniapp-vue3-template/pinia"><img src="https://agentmods.dev/badge/skills/oyjt/uniapp-vue3-template/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/oyjt/uniapp-vue3-template/pinia"><img src="https://agentmods.dev/badge/skills/oyjt/uniapp-vue3-template/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 $0.00018 $0.00311
Sonnet 5 $0.00007 $0.00125
Haiku 4.5 $0.00004 $0.00062

Measured 7d ago against content hash fba52570068a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 7d 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 — 0 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.

.agents/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 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/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. 7d 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 oyjt/uniapp-vue3-template (626 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 623 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to pinia, differing in 0 lines, and is treated as a copy.