什么是 xstate-v5?
使用严格的 setup().createMachine() 规则集、参数优先类型、规范的 actor/spawn 模式以及 @xstate/react 中的 createActorContext() 模式来实现、重构和审查 XState v5 状态机(TypeScript 和 React)。包括实施前规划/设计状态图的指导。 来源:programbo/xstate-skill。
使用严格的 setup().createMachine() 规则集、参数优先类型、规范的 actor/spawn 模式以及 @xstate/react 中的 createActorContext() 模式来实现、重构和审查 XState v5 状态机(TypeScript 和 React)。包括实施前规划/设计状态图的指导。
通过命令行快速安装 xstate-v5 AI 技能到你的开发环境
来源:programbo/xstate-skill。
Build, refactor, and review XState v5 state machines (TypeScript and React) using a strict, strongly-typed ruleset.
Source of truth: references/xstate-v5-rules.md (this repo, resolved from the skill root). If anything in this skill conflicts with the rules file, follow the rules file.
These requirements are intentionally duplicated here so an agent can comply without first loading external references:
使用严格的 setup().createMachine() 规则集、参数优先类型、规范的 actor/spawn 模式以及 @xstate/react 中的 createActorContext() 模式来实现、重构和审查 XState v5 状态机(TypeScript 和 React)。包括实施前规划/设计状态图的指导。 来源:programbo/xstate-skill。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/programbo/xstate-skill --skill xstate-v5使用严格的 setup().createMachine() 规则集、参数优先类型、规范的 actor/spawn 模式以及 @xstate/react 中的 createActorContext() 模式来实现、重构和审查 XState v5 状态机(TypeScript 和 React)。包括实施前规划/设计状态图的指导。 来源:programbo/xstate-skill。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/programbo/xstate-skill --skill xstate-v5 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/programbo/xstate-skill