Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By 2389-research Verified Orgv1.0.0In 1 marketplace
Find implicit state machines, rank impossible states by bug risk, and convert chosen lifecycles with behavior-pinning tests
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
An agent skill that finds implicit state machines in a codebase, ranks them by bug risk, and converts the chosen ones to explicit state with tests.
An implicit state machine is a lifecycle the code enforces by convention. The states and legal transitions exist, but nobody wrote them down, so illegal states are reachable. Typical signs: an order that is both refunded and shipped, a spinner that never stops, a job that runs twice after a cancel.
The skill has two phases.
Phase 1, audit. The agent reads the code and changes nothing. It writes a ranked report: one section per machine, with states, transitions, reachable impossible states, and a recommendation (convert, convert lightly, or leave alone). It then stops and asks which machines to convert.
Phase 2, convert. The agent converts one machine at a time:
The skill also covers the cases where agents cut corners:
| The request says | The skill's answer |
|---|---|
| "Find and fix, don't wait on me." | The report is committed first. Then only machines with money, data, or user-visible impact are converted. |
| "The existing tests cover it, skip the pins." | The agent checks that claim against the audit and writes the missing pins. |
| "Rename this status while you're in there." | A stored value is a contract. Without an approved migration it stays, and the agent says so. |
| "One commit is fine." | Each machine gets a pins commit, then a conversion commit. |
Read SKILL.md for the full rules. It is the only file an agent needs.
Copy SKILL.md into a folder named implicit-state-machines in your skills directory. For
Claude Code that is ~/.claude/skills/ for every project, or .claude/skills/ inside one
repository.
mkdir -p ~/.claude/skills/implicit-state-machines
cp SKILL.md ~/.claude/skills/implicit-state-machines/
Copy SKILL.md alone. Do not copy evals/: it holds the answer key for the tests, and an
agent that can read it grades its own work against it.
Ask in plain words. These requests should load the skill:
For a conversion, name the machines: "Convert the order lifecycle from the audit in
docs/state-machines.md."
What you get back:
Three rules are judgment calls. Change them in SKILL.md if you disagree, then run the evals.
SKILL.md the skill
README.md this file
evals/ behavior tests for the skill (never ship or link from SKILL.md)
README.md how to run and grade, and what is planted in the fixture
RESULTS.md measured results, and what is not fixed or not tested
run.py runs scenarios headlessly against a version of the skill
grade.py checks commit order, probes the converted code, checks the records
route.py tests whether the description line routes requests to this skill
scenarios.json the four scenarios
routing.json the routing cases and neighbor skills
fixture/ a small Python shop backend with planted machines and decoys
overlays/ files added to the fixture for some scenarios
arms/ earlier versions of the skill, kept for comparison
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
implicit-state-machine-finder@2389-research is listed by 2389-research/claude-plugins — review the source before installing
npx claudepluginhub 2389-research/claude-plugins --plugin implicit-state-machine-finderPlugins from other owners that cover similar ground