pinia

pinia is a skill for Codex from JakubMikolajek/codex-skills-collection. It costs 65 tokens per session (790 once invoked), scanned A, original, MIT.

A set of patterns for managing shared application data in Pinia, the state-management library commonly used with Vue and Nuxt. It covers stores, derived values, actions, asynchronous work, persistence, and coordination with components.

In plain words
What is it for?
Use it when building, refactoring, debugging, or reviewing Pinia stores in Vue or Nuxt applications. It supports work on shared state, getters, actions, async flows, and persistence boundaries.
Why use it?
It helps decide which data belongs in shared state and which should stay local to a component. It also provides a checklist for keeping stores focused and predictable during UI updates.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it when building, refactoring, debugging, or reviewing Pinia stores in Vue or Nuxt applications. It supports work on shared state, getters, actions, async flows, and persistence boundaries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakubmikolajek/codex-skills-collection/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 JakubMikolajek/codex-skills-collection --skill pinia
Clone the repo
git clone --depth 1 https://github.com/JakubMikolajek/codex-skills-collection

Made for: 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/jakubmikolajek/codex-skills-collection/pinia/github.svg)](https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/pinia)
Your own site
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/pinia"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/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/jakubmikolajek/codex-skills-collection/pinia"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/pinia.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 790 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 original No closer match found 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.00065 $0.00790
Opus 5 $0.00032 $0.00395
Sonnet 5 $0.00013 $0.00158
Haiku 4.5 $0.00006 $0.00079

Measured 11d ago against content hash cf9067082934, 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 11d 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.

skills/pinia/SKILL.md · 84 lines

How it starts

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

Pinia Store Patterns

Use this skill when the task depends on shared state architecture in Vue or Nuxt. Keep stores explicit, cohesive, and easy to reason about under concurrent UI updates. Prefer composables for reusable local logic and Pinia only for state that truly deserves shared ownership.

Delivery Workflow

Use the checklist below and track progress:

Pinia progress:
- [ ] Step 1: Discover existing store boundaries and naming conventions
- [ ] Step 2: Define ownership of shared vs local state
- [ ] Step 3: Implement state, getters, and actions explicitly
- [ ] Step 4: Handle async flows, persistence, and invalidation safely
- [ ] Step 5: Verify store behavior and component integration

Store Design Rules

  • Create a store only when state genuinely needs shared ownership or cross-route lifetime.
  • Keep stores organized around a coherent business capability, not around random convenience helpers.
  • Keep local component state out of Pinia unless sharing it materially improves the design.
  • Prefer setup-style stores when that matches the repository's Composition API conventions.
  • Expose intention-revealing state, getters, and actions.
  • Avoid turning a store into a dumping ground for every side effect in a feature.

State, Getters, and Actions

  • Store source-of-truth state, not duplicated derivations.
  • Use getters for derived values that are meaningfully reused.
  • Keep actions focused on one business interaction or one tightly related mutation flow.
  • Make async actions explicit about loading, success, error, and invalidation behavior.
  • Prefer clear action names over generic verbs.

Async and Persistence Boundaries

  • Keep API calls and cache invalidation logic visible in the action that owns them.
  • Make hydration, persistence, and reset behavior explicit.
  • Avoid silent background mutations that make UI updates hard to reason about.
  • Prevent duplicate concurrent requests when the feature should behave idempotently.
  • Keep composables and stores in clear roles: composables for reusable feature logic, stores for shared long-lived state.

Read the full file on GitHub · 84 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 84 lines · 65 tokens per session scan A cf9067082934

Subscribe to this mod's changes

pinia is a skill published in the GitHub repository JakubMikolajek/codex-skills-collection (5 stars, last pushed 6d ago), licensed MIT. It adds 65 tokens to every session and 790 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

shadcn-svelte

Pre-built shadcn-svelte components for json-render Svelte apps. Use when working with @json-render/shadcn-svelte, adding standard UI components to a Svelte catalog, or building Svelte web UIs with shadcn-svelte + Tailwind CSS components.

vercel-labs/json-render · 63 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

v3-create-crud

A page generator for standard create, read, update, and delete screens, commonly called CRUD screens. It uses Element Plus, a Vue user-interface library, to build tables, searches, pagination, forms, and delete confirmations.

un-pany/v3-admin-vite · 108 tokens

v3-use-composables

Documentation for reusable Vue functions in a project, covering device detection, asynchronous dropdown data, loading screens, pagination, routing, themes, page titles, and watermarks.

un-pany/v3-admin-vite · 137 tokens

moai-domain-uiux

UI/UX design systems specialist covering accessibility, icons, theming, design tokens, and user experience patterns. Use when working on design systems, WCAG compliance, ARIA patterns, or dark mode theming.

modu-ai/moai-adk · 49 tokens

frontend-conventions

Frontend convention reference (SvelteKit / Svelte 5). Auto-injected into frontend-aware agents - not user-invocable.

fpindej/netrock · 27 tokens