pinia

pinia is a skill for Claude Code, Codex from martinholovsky/claude-skills-generator. It costs 13 tokens per session (3,121 once invoked), scanned A, original, Unlicense.

A skill for the Model Context Protocol, an open standard that lets AI assistants connect to tools, data, and other services. It covers both the programs that provide these connections and the clients that use them.

In plain words
What is it for?
Use it to build or review MCP servers and clients, register tools, choose transport methods, validate inputs, control permissions, and manage connections.
Why use it?
It helps prevent unsafe tool execution, unauthorized access, data leaks, and unreliable communication between assistants and external systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter.

Good fit Use it to build or review MCP servers and clients, register tools, choose transport methods, validate inputs, control permissions, and manage connections.

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

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/martinholovsky/claude-skills-generator/pinia/github.svg)](https://agentmods.dev/skills/martinholovsky/claude-skills-generator/pinia)
Your own site
<a href="https://agentmods.dev/skills/martinholovsky/claude-skills-generator/pinia"><img src="https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/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/martinholovsky/claude-skills-generator/pinia"><img src="https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/pinia.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,121 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.00013 $0.03121
Opus 5.5 $0.00005 $0.01248
Sonnet 5.5 $0.00003 $0.00624
Haiku 4.5 $0.00001 $0.00312

Measured 3mo ago against content hash faf20cc26b6f, 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 3mo 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 · 501 lines

How it starts

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

Pinia State Management Skill

File Organization: This skill uses split structure. See references/ for advanced patterns and security examples.

1. Overview

This skill provides Pinia expertise for managing application state in the JARVIS AI Assistant, including system metrics, user preferences, and HUD configuration.

Risk Level: MEDIUM - Manages sensitive state, SSR considerations, potential data exposure

Primary Use Cases:

  • System metrics and status tracking
  • User preferences and settings
  • HUD configuration state
  • Command history and queue
  • Real-time data synchronization

2. Core Responsibilities

2.1 Core Principles

  1. TDD First: Write store tests before implementation
  2. Performance Aware: Optimize subscriptions and computed values
  3. Type Safety: Define stores with full TypeScript typing
  4. SSR Security: Prevent state leakage between requests
  5. Composition API: Use setup stores for better TypeScript support
  6. Minimal State: Store only necessary data, derive the rest
  7. Action Validation: Validate inputs in actions before mutations
  8. Persistence Security: Never persist sensitive data to localStorage

3. Technology Stack & Versions

3.1 Recommended Versions

Package Version Notes
pinia ^2.1.0 Latest stable
@pinia/nuxt ^0.5.0 Nuxt integration
pinia-plugin-persistedstate ^3.0.0 Optional persistence

3.2 Nuxt Configuration

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@pinia/nuxt'],
  pinia: {
    storesDirs: ['./stores/**']
  }
})

3.3 Implementation Workflow (TDD)

Follow this workflow for every store:

Step 1: Write Failing Test First

// tests/stores/metrics.test.ts
import { describe, it, expect, beforeEach } from 'vitest'
import { setActivePinia, createPinia } from 'pinia'
import { useMetricsStore } from '~/stores/metrics'

describe('MetricsStore', () => {
  beforeEach(() => {
    setActivePinia(createPinia())
  })

  it('should initialize with default values', () => {
    const store = useMetricsStore()
    expect(store.cpu).toBe(0)
    expect(store.memory).toBe(0)
  })

  it('should clamp values within valid range', () => {
    const store = useMetricsStore()
    store.updateCpu(150)
    expect(store.cpu).toBe(100)
    store.updateCpu(-50)
    expect(store.cpu).toBe(0)
  })

  it('should compute health status correctly', () => {
    const store = useMetricsStore()
    store.updateCpu(95)
    store.updateMemory(90)
    expect(store.healthStatus).toBe('critical')
  })
})

Read the full file on GitHub · 501 lines

Files

What ships with it

2 files 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. 3mo ago First seen · 501 lines · 13 tokens per session scan A faf20cc26b6f

Subscribe to this mod's changes

pinia is a skill published in the GitHub repository martinholovsky/claude-skills-generator (48 stars, last pushed today), licensed Unlicense. It adds 13 tokens to every session and 3,121 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

pinia compared with skills from other repositories

pinia next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
piniamartinholovsky/claude-skills-generatorSkill48todayUnlicenseA13Claude Code, Codex
shadcn-sveltevercel-labs/json-renderSkill20k7d agoApache-2.0A63Claude Code, Codex
add-localizationmicrosoft/power-platform-skillsSkill1.2ktodayMITA69Claude Code
moai-domain-uiuxmodu-ai/moai-adkSkill1.3ktodayApache-2.0A49Claude Code
moai-domain-frontendmodu-ai/moai-adkSkill1.3ktodayApache-2.0A54Claude Code
vue-router-best-practicesvuejs-ai/skillsSkill3.4k1mo agoMITA25Claude Code, Codex
weapp-vite-vue-sfc-best-practicesweapp-vite/weapp-viteSkill529todayMITA107Codex