Communityコーディング&開発github.com

lobehub/zustand

LobeHub Zustandストアの規則。src/store、ストアスライス、公開/内部アクション、ディスパッチアクション、flattenActions、楽観的更新、セレクター、マップ、クラスアクションの移行を編集する際に使用します。

zustand とは?

このスキルは、LobeHubプロジェクトにおけるZustandストアの設計規則とベストプラクティスを提供します。特に、src/store ディレクトリ内のストアスライス、公開アクションと内部アクションの分離、ディスパッチアクション、flattenActions によるアクションのフラット化、楽観的更新の実装、セレクターやマップの定義、そしてクラスベースのアクションからの移行方法をカバーしています。主にAIエージェント(Claude Code、Cursor、Codexなど)で使用され、コードベースの一貫性を維持し、保守性を高めるために役立ちます。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

zustand は何をしますか?

LobeHub Zustandストアの規則。src/store、ストアスライス、公開/内部アクション、ディスパッチアクション、flattenActions、楽観的更新、セレクター、マップ、またはクラスアクションの移行を編集する際に使用します。

Individual skills in this repo

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

関連スキル