Skip to content

Pinia 4.x reference for writing, debugging, and migrating Vue 3 stores with version-correct API usage.

CCM score
54 of 100
skills.sh installs
358
GitHub stars
187
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers option and setup stores, state, getters, actions, subscriptions, plugins, SSR hydration, testing, and Options API map helpers
  • Includes reference files for the API surface, stores, subscriptions, plugins, SSR, testing, Options API, and the PINIA_R1001 to PINIA_R1007 diagnostics
  • Notes v4 breaks: ESM-only distribution, a required @vue/devtools-api v8 install, and removal of CJS resolution
  • Designed for Vue 3.5+ projects that need store code matched to v4, or a migration path from v2 and v3

Install

$ npx -y skills add skilld-dev/vue-ecosystem-skills --skill pinia-skilld -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

pinia@4.0.3

Source citations use package-relative paths from the prepared pinia 4.0.3 source: package.json, README.md, dist/pinia.js (runtime), dist/pinia.d.ts (types). Other citations are official documentation URLs.

Requirements

  • Vue ^3.5.11 peer [package.json:62]. Vue 2 is unsupported since v3.
  • @vue/devtools-api ^8.1.5 is a required, non-optional peer [package.json:60-68]. Install it alongside pinia: npm install pinia @vue/devtools-api [README.md:108-111], v4.0.0 release notes.
  • TypeScript >=5.6.0 optional peer [package.json:69-71].
  • ESM-only package: "type": "module", single export . to dist/pinia.js [package.json:42,47-50]. v4 removed CJS resolution; a require() fallback breaks.
  • @pinia/nuxt 1.x and @pinia/testing 2.x are the companion versions for pinia 4 (https://github.com/vuejs/pinia/releases).

Install and setup

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'

const pinia = createPinia()
const app = createApp(App)
app.use(pinia)
app.mount('#app')

Details

Repository
github.com/skilld-dev/vue-ecosystem-skills
Categories
Frontend & UI Code, Technical Documentation
First seen
Jun 3, 2026

Questions

What is pinia-skilld?

pinia-skilld is an agent skill listed on Claude Marketplaces in the Frontend & UI Code category. Its page on Claude Marketplaces links to the pinia-skilld source on GitHub.

How do I install pinia-skilld?

Run npx -y skills add skilld-dev/vue-ecosystem-skills --skill pinia-skilld -y in a project to install pinia-skilld. After that, the agent can use pinia-skilld in that project.

Which category is pinia-skilld in?

pinia-skilld is in the Frontend & UI Code category on Claude Marketplaces. Other listings in that category next to pinia-skilld include vercel-react-best-practices, web-design-guidelines and design-taste-frontend.

Where is the source code of pinia-skilld?

The source code of pinia-skilld is on GitHub at https://github.com/skilld-dev/vue-ecosystem-skills. The skilld-dev account on GitHub publishes pinia-skilld.

More from skilld-dev/vue-ecosystem-skills

All 10

Similar to Pinia Skilld

More Frontend & UI Code