Skip to main content
在 Manus 中运行任何 Skill
一键导入

state-machine

星标0
分支0
更新时间2026年5月17日 15:51

Use when designing explicit state-machine behavior for systems with multiple modes (idle/loading/success/error, draft/submitted/approved, connected/disconnected/reconnecting), boolean-flag explosion where isLoading, isError and isSuccess drift out of sync, forms, wizards, auth flows, network protocols, embedded controllers, workflow engines, or any code/bug report where "impossible states" appear. Agent-facing design workflow: model states, events, transitions, guards, actions, and impossible states before implementation. Provides implementation references for TypeScript discriminated unions, XState v5, React useReducer, Svelte 5 runes, C, Java, and Rust. NOT for installing tools, single-boolean toggles, pure server-cache concerns better handled by TanStack Query or SWR, or stateless pure transformations.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
27 个文件
SKILL.md
readonly