05 · AI agent workflows
agent-state-machine
One shared state machine for agent, task, and run states — legal transitions and a recovery path out of every failure.
Use when
Use when an agent workflow can get stuck, retry blindly, or lose track of what state a run is actually in.
What this skill is
agent-state-machine is an agent skill in the akakika-skills collection. It is a SKILL.md file that teaches Claude Code, Codex, Cursor, and other skill-aware agents how to handle this job without inventing a half-remembered version of it. Read it, copy the folder, or install the full set.
Install just this skill
Copy into Claude Code
git clone https://github.com/aka-kika/akakika-skills
cp -R akakika-skills/skills/ai-agents/agent-state-machine ~/.claude/skills/Or install everything with the one-liner.