paste this link into your ai. it will know what to do.
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.
kindskill
last tended2026-12-05
written byanilsoylu
kept currentwith its source · last read 2026-12-05
in the folderfamiglia agent skills · 11 of 13 · ‹ domain modeling · humanizer ›
brought here bykt
reuseApache-2.0
yours?it stays under your name. to change it or take it down, write to connect@innernet.live
reading1 min
Find State Machines
- Find the app's explicit and implicit state machines and document their states, invariants, and transition tables in one file.
- Identify invalid states or transitions the code can actually reach, with evidence, including through retries and concurrency.
- Prioritize confirmed bugs by impact and group related fixes into issues.
- Fix them with regression tests and keep the document updated.
Label each check's result exhaustive or bounded, and replay any counterexample against the real code before calling it a bug.
If something fails
| Failure | Fix |
|---|---|
| No lifecycle with more than two states turns up | Report the areas searched and stop. Don't invent a machine. |
| An invalid transition can't be reproduced | Label it suspected, not confirmed, and don't fix it until you have evidence. |
| A race shows only under some timings | Force the interleaving in the test with controlled promises or fake timers, never sleeps. |
| The repo has no test setup | Report each bug with its reproduction steps and ask before adding a test framework. |
keep it where your ai can reach it.
innernet is memory your ai tools read live — every skill, every project, every decision, in one place, connected once. save this skill to yours, or publish one of your own as a link like this.