skills/pinia/SKILL.md
Pinia official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.
npx skillsauth add sonvee/ai-skills piniaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
| Topic | Description | Reference | | ------ | -------------------------------------------------------------------- | ---------------------------------------- | | Stores | Defining stores, state, getters, actions, storeToRefs, subscriptions | core-stores |
| Topic | Description | Reference | | ------- | ---------------------------------------------------------------------- | -------------------------------------------------- | | Plugins | Extend stores with custom properties, state, behavior, and persistence | features-plugins |
| 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 |
| 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 |
| 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 |
storeToRefs() when destructuring state/getters to preserve reactivity@pinia/testing for component tests with mocked storesdevelopment
NestJS best practices and architecture patterns for building production-ready applications. This skill should be used when writing, reviewing, or refactoring NestJS code to ensure proper patterns for modules, dependency injection, security, and performance.
tools
编码时必须严格遵循我的编码风格,在进行 vue项目/nestjs项目/uniapp项目/js/ts 时应优先使用该技能,在写文档或其他编程语言时不使用该技能
development
用于初始化“全新的”前后端分离全栈项目脚手架与基础配置,默认目录结构为同仓库下的 `frontend/` + `backend/`。当用户表达要新建项目、初始化项目、搭建前后端分离仓库、创建 monorepo 全栈模板,或已经进入 `superteam` 模式并要求按 `fullstack-init + superteam` 流程启动一个新项目时,应优先使用本 skill。它适用于从零创建项目结构、根目录共享文件、前后端初始化流程与基础环境配置约定;不适用于现有项目中的功能开发、Bug 修复、单独初始化前端或后端、只调整 README / `.gitignore` / `.env.*`、或仅讨论技术方案而尚未真正开始初始化项目的场景。
development
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.