← 返回 Skills 市场
422
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install zustand-patterns
功能描述
Zustand 状态管理实战模式。涵盖 Store 设计规范、Slice 工厂复用、persist 持久化、可恢复任务持久化、Electron IPC 联动、Store 测试和常见陷阱。适用于 React + Zustand 项目。
安全使用建议
This skill is a set of coding patterns and appears coherent with its stated purpose. Before adopting the code in your app: (1) review and implement Electron main-process IPC handlers securely — IPC channels can expose stored data to the main process; (2) avoid persisting secrets or sensitive credentials (use partialize or encryption if needed); (3) review onRehydrate/recovery logic so it does not automatically perform network actions or re-submit tasks without user consent; (4) add unit/integration tests for rehydration and migration paths. Because the skill is instruction-only, installing it does not add binaries, but copying the provided code into your project is where you should do a security review.
功能分析
Type: OpenClaw Skill
Name: zustand-patterns
Version: 1.0.0
The skill bundle provides documentation and code examples for Zustand state management patterns in React and Electron applications. The `SKILL.md` file contains purely instructional content and TypeScript code snippets demonstrating best practices, including Electron IPC integration. There is no evidence of prompt injection attempts against the AI agent, data exfiltration, malicious execution, persistence mechanisms, or obfuscation. The content is aligned with its stated educational purpose.
能力评估
Purpose & Capability
The name/description (Zustand patterns for React + Electron) matches the SKILL.md content. There are no unexpected env vars, binaries, or install steps requested — everything in the instructions is about store design, slices, persist, recovery, Electron IPC, and testing.
Instruction Scope
The SKILL.md stays on-topic and provides code examples for persist, recoverable tasks, and Electron IPC storage adapters. One area to pay attention to: the examples use ipcRenderer.invoke('store:get'|'store:set'|'store:remove') (i.e., IPC channels). That assumes corresponding main-process handlers exist and are implemented securely; storing or restoring task state on rehydrate may trigger application behavior (like resuming polling) and thus should be reviewed before use. The instructions do not ask to read arbitrary host files or exfiltrate secrets.
Install Mechanism
Instruction-only skill with no install spec and no code files — nothing is downloaded or written to disk by the skill package itself.
Credentials
No environment variables, credentials, or config paths are requested. The examples mention storing preferences but explicitly advise not to persist runtime-only state.
Persistence & Privilege
The skill does not request persistent/autonomous privileges (always:false) and does not modify other skills or system-wide settings; it only offers coding guidance for application-level persistence patterns.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install zustand-patterns - 安装完成后,直接呼叫该 Skill 的名称或使用
/zustand-patterns触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Zustand 状态管理实战模式。Store 设计规范、Slice 工厂复用、persist 持久化、可恢复任务、Electron IPC 联动、测试。
元数据
常见问题
Zustand Patterns 是什么?
Zustand 状态管理实战模式。涵盖 Store 设计规范、Slice 工厂复用、persist 持久化、可恢复任务持久化、Electron IPC 联动、Store 测试和常见陷阱。适用于 React + Zustand 项目。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 422 次。
如何安装 Zustand Patterns?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install zustand-patterns」即可一键安装,无需额外配置。
Zustand Patterns 是免费的吗?
是的,Zustand Patterns 完全免费(开源免费),可自由下载、安装和使用。
Zustand Patterns 支持哪些平台?
Zustand Patterns 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Zustand Patterns?
由 BingFoon(@bingfoon)开发并维护,当前版本 v1.0.0。
推荐 Skills