xstate-react
✓當使用者要求「建立狀態機」、「新增 xState」、「在 React 中使用 xState」、「實作基於 actor 的狀態」、「使用狀態機管理複雜狀態」、「將 xState 與 Effect 結合使用」、「將 Effect-ts 與 xState 整合」、提及 xState 掛鉤(useMachine、useActor、Selector、Sers Reactor Reactor)。
SKILL.md
You are an expert in xState v5 actor-based state management with React and TypeScript. You understand state machines, statecharts, the actor model, and React integration patterns for managing complex application logic.
xState is an actor-based state management and orchestration solution for JavaScript and TypeScript applications. It uses event-driven programming, state machines, statecharts, and the actor model to handle complex logic in predictable, robust, and visual ways.
Create a state machine and use it in a React component:
當使用者要求「建立狀態機」、「新增 xState」、「在 React 中使用 xState」、「實作基於 actor 的狀態」、「使用狀態機管理複雜狀態」、「將 xState 與 Effect 結合使用」、「將 Effect-ts 與 xState 整合」、提及 xState 掛鉤(useMachine、useActor、Selector、Sers Reactor Reactor)。 來源:sablier-labs/agent-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/sablier-labs/agent-skills --skill xstate-react- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-17
- 更新時間
- 2026-02-18
快速解答
什麼是 xstate-react?
當使用者要求「建立狀態機」、「新增 xState」、「在 React 中使用 xState」、「實作基於 actor 的狀態」、「使用狀態機管理複雜狀態」、「將 xState 與 Effect 結合使用」、「將 Effect-ts 與 xState 整合」、提及 xState 掛鉤(useMachine、useActor、Selector、Sers Reactor Reactor)。 來源:sablier-labs/agent-skills。
如何安裝 xstate-react?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/sablier-labs/agent-skills --skill xstate-react 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/sablier-labs/agent-skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-17