·xstate-react
</>

xstate-react

sablier-labs/agent-skills

当用户要求“创建状态机”、“添加 xState”、“在 React 中使用 xState”、“实现基于 actor 的状态”、“使用状态机管理复杂状态”、“将 xState 与 Effect 结合使用”、“将 Effect-ts 与 xState 集成”、提及 xState 挂钩(useMachine、useActor、useSelector)或讨论 React 应用程序中的有限状态机时,应该使用此技能。

8安装·0热度·@sablier-labs

安装

$npx skills add https://github.com/sablier-labs/agent-skills --skill xstate-react

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、useSelector)或讨论 React 应用程序中的有限状态机时,应该使用此技能。 来源: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、useSelector)或讨论 React 应用程序中的有限状态机时,应该使用此技能。 来源: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