Community编程与开发github.com

lobehub/zustand

LobeHub Zustand 存储约定。适用于编辑 src/store、store slices、内部/外部 actions、dispatch actions、flattenActions、乐观更新、selectors、maps 或类 action 迁移。

zustand 是什么?

该技能为 LobeHub 项目提供一套标准的 Zustand 存储约定,帮助开发者高效管理状态。它定义了在编辑 `src/store`、store slices、公共/内部 actions、dispatch actions、flattenActions、乐观更新、selectors、maps 以及类 action 迁移时的最佳实践。支持在 Claude Code、Cursor、Codex 等 AI 编码代理中使用,确保状态管理代码的一致性和可维护性。通过遵循这些约定,可以减少样板代码,提升团队协作效率。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lobehub/lobe-chat/tree/main/skills/zustand

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

zustand 是做什么的?

LobeHub Zustand 存储约定。适用于编辑 src/store、store slices、内部/外部 actions、dispatch actions、flattenActions、乐观更新、selectors、maps 或类 action 迁移。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

相关技能