Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

pinia-documentation-lookuppinia 文档查找

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

222

周安装

9

GitHub Stars

公开资料未说明

下载量

70
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pinia-documentation-lookup(pinia 文档查找)
来源仓库:https://github.com/zatkniz/sporty-group
仓库路径:skills/pinia-documentation-lookup
安装命令:
npx skills add zatkniz/sporty-group --skill "pinia-documentation-lookup"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add zatkniz/sporty-group --skill "pinia-documentation-lookup"

简介

pinia-documentation-lookup 辅助整理 Markdown、README 及技术文档结构。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中统一术语与章节逻辑。
  • 通过 npx 命令从 zatkniz/sporty-group 仓库添加技能。
  • 保留原有事实与命令,不擅自改写确定信息。
  • 对外发布文案需控制语气,避免夸大功能描述。

SKILL.md

name
pinia-documentation-lookup
description
Look up Pinia documentation for store patterns, API reference, and advanced features. Use when users need specific Pinia implementation details or state management patterns.

Pinia Documentation Lookup

Access official Pinia documentation for state management patterns, API references, and advanced features.

When to Use

DO USE when:

  • Questions about specific Pinia APIs (defineStore, storeToRefs, $patch, etc.)
  • State persistence strategies
  • SSR/Nuxt-specific Pinia usage
  • Advanced features (plugins, subscriptions, hot module replacement)
  • Testing Pinia stores
  • Store composition patterns
  • Migration from Vuex to Pinia
  • Composition API setup store patterns

DO NOT USE when:

  • Basic store creation covered in project instructions
  • Simple state management questions
  • General Nuxt questions (use nuxt-documentation-lookup instead)
  • Questions about Option Stores (project uses Composition API only)

Process

  1. Search Pinia Docs: Use mcp_nuxt_search_nuxt_docs with query

- Searches official Pinia documentation - Returns relevant sections with content

  1. Specific Topics:

- Core Concepts: "defineStore", "state", "getters", "actions" - Setup Stores: "composition API", "setup stores", "ref", "computed" - Advanced: "plugins", "subscriptions", "$patch", "hot reload" - SSR: "server side rendering", "nuxt", "hydration" - TypeScript: "typing stores", "type inference", "TypeScript" - Testing: "testing stores", "unit tests", "mocking"

  1. Provide Context: Include relevant examples from project instructions

Common Queries

Composition API Patterns

Query: "pinia composition api setup stores"
→ Get Composition API store patterns

API Reference

Query: "storeToRefs pinia destructuring"
→ Learn how to properly destructure store properties

SSR & Nuxt

Query: "pinia nuxt server side rendering"
→ Understand SSR considerations with Pinia

Advanced Features

Query: "pinia plugins custom"
→ Learn about creating custom Pinia plugins

State Persistence

Query: "pinia persist state localStorage"
→ Find persistence strategies and plugins

Testing

Query: "testing pinia stores unit tests"
→ Get testing strategies and examples

Store Composition

Query: "pinia composing stores"
→ Learn how to use multiple stores together

Example Workflow

User: "How do I persist Pinia store to localStorage?"

  1. Search: "pinia persist state localStorage"
  2. Find documentation on persistence plugins
  3. Recommend @pinia-plugin-persistedstate/nuxt
  4. Provide installation and code example adapted to project structure

User: "What's the difference between setup stores and option stores?"

  1. Inform: This project uses Composition API (setup stores) ONLY
  2. Reference project instructions
  3. Show setup store example from project conventions
  4. Explain why: consistency with Vue 3 Composition API

User: "How to use stores in server-side code?"

  1. Search: "pinia nuxt server composables"
  2. Get SSR-specific documentation
  3. Explain server context considerations
  4. Provide Nuxt-specific example

User: "How do I test Pinia stores?"

  1. Search: "pinia testing unit tests"
  2. Get testing documentation
  3. Provide vitest/jest setup example
  4. Show test examples from project instructions

Integration with Project

PROJECT STANDARD: This project uses EXCLUSIVELY Composition API (setup stores).

Always reference project conventions from stores.instructions.md:

  • Use setup stores ONLY (Composition API style with arrow function)
  • Never use option stores (object with state/getters/actions)
  • Use auto-imports (no explicit imports needed)
  • Return readonly() for state properties
  • Follow naming convention: use[Domain]Store
  • Use storeToRefs() for destructuring reactive properties
  • Use ref() for state, computed() for getters

Tools Available

Search Nuxt Docs (includes Pinia)

mcp_nuxt_search_nuxt_docs
- query: Search term for Pinia documentation

For Module Info

mcp_nuxt_get-module
- slug: "@pinia/nuxt" for module details

Response Format

  1. Direct answer from documentation
  2. Code example adapted to project structure
  3. Reference project instructions if applicable
  4. Additional context for Nuxt 4 compatibility

Common Topics & Keywords

Basic Concepts

  • "defineStore" - Creating stores
  • "state" - Reactive state
  • "getters" - Computed properties
  • "actions" - Methods that can be async

Advanced Features

  • "storeToRefs" - Destructuring stores
  • "$patch" - Batch state updates
  • "$reset" - Reset store to initial state
  • "$subscribe" - Watch for state changes
  • "plugins" - Extend Pinia functionality

Composition API

  • "setup stores" - Composition API style stores
  • "ref" - Reactive state in setup stores
  • "computed" - Getters in setup stores
  • "watch" - Watching store changes

SSR & Nuxt

  • "nuxt" - Nuxt-specific usage
  • "server side rendering" - SSR considerations
  • "hydration" - Client-side state hydration
  • "useState" - Nuxt composable for SSR state

TypeScript

  • "TypeScript" - Type definitions
  • "typing stores" - Store type inference
  • "typed actions" - Action type safety

Testing

  • "testing" - Testing strategies
  • "unit tests" - Unit testing stores
  • "mocking" - Mocking dependencies
  • "setActivePinia" - Testing setup

Important Notes

  • Pinia is Vue's official state management solution (replaces Vuex)
  • Setup stores align with Vue 3 Composition API
  • Auto-imports via @pinia/nuxt module
  • SSR-compatible by default in Nuxt
  • Lighter and more intuitive than Vuex
  • Full TypeScript support with type inference
  • No mutations - actions can be synchronous or asynchronous
  • DevTools support for debugging

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

weavefox

67.56%
按下载量换算47

Claude Code

31.21%
按下载量换算22

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills