mcpField
S
store-best-practice

store-best-practice

github.com/forge-townDevelopment739 installsUpdated 8w ago
Repository

About store-best-practice

Must be followed when creating or refactoring a state management Store with Zustand, ensuring adherence to the slice pattern, Provider setup, and type-safety conventions.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/forge-town/skills --skill store-best-practice

After installing, type/store-best-practicein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

best-practice-examples/zustand-store/
appLayoutSlice.ts
appLayoutStore.ts
index.ts
provider.tsx
topBarSlice.ts
references/
checklist.md
store-best-practice-guide.md

Details

From the project README

Store 最佳实践

使用说明

  1. 阅读 Store 最佳实践指南 了解设计规则
  2. 严格参照 best-practice-examples/ 中的代码结构生成代码
  3. 完成后使用 检查清单 逐项验证

重要: 实现时必须严格遵循 best-practice-examples 中的结构;Store 只负责跨组件共享状态,组件私有状态用 useState

Comments

Markdown supported