/find-state-machines
Find implicit state machines, where one lifecycle's state, transitions, and ownership are scattered across flags, effects, callbacks, and async work, and make them explicit. Use when auditing lifecycle coordination, async flows, impossible states, or a proposed stateful refactor.
Claude Code
$ npx -y skills add dzhng/skills --skill find-state-machines --agent claude-code
Codex
$ npx skills add dzhng/skills --skill find-state-machines -a codex -y
Cursor
$ npx skills add dzhng/skills --skill find-state-machines -a cursor -y
Gemini CLI
$ npx skills add dzhng/skills --skill find-state-machines -a gemini-cli -y
GitHub Copilot
$ npx skills add dzhng/skills --skill find-state-machines -a github-copilot -y
OpenCode
$ npx skills add dzhng/skills --skill find-state-machines -a opencode -y
Windsurf
$ npx skills add dzhng/skills --skill find-state-machines -a windsurf -y
SKILL.md
find-state-machines.SKILL.mdname: find-state-machines description: Find implicit state machines, where one lifecycle's state, transitions, and ownership are scattered across flags, effects, callbacks, and async work, and make them explicit. Use when auditing lifecycle coordination, async flows, impossible states, or a proposed stateful refactor.
Find State Machines
Find implicit state machines: one lifecycle whose state, transitions, and ownership are spread across the code instead of held in one place. Make sure every non-terminal state has a guaranteed way out — failure, cancel, timeout, or recovery after restart — not just the happy-path callback. Make small fixes that preserve behavior or fix bugs right away; confirm larger restructures with the user first.
AI skills for growing software farms. My personal library of domain-agnostic agent skills, reused across every project. Small, composable, and hackable — works with any harness that supports skills: Claude Code, Codex, opencode, Cursor, duet, and 70+ others.
Other skills on skills.
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
Questions about find-state-machines.
- Which coding agents can use find-state-machines?
- find-state-machines installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

