/community/skills/famiglia agent skills/find state machines
innernet
docsskillscommunitycompanydeveloperssecurityprivacytermscontact

a skill by anilsoylu, brought here by kt

find state machines

paste this link into your ai. it will know what to do.

/skills/anilsoylu-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.

kindskill
last tended2026-12-05
written byanilsoylu
sourcegithub.com/anilsoylu/famiglia-agent-skills
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

  1. 1Find the app's explicit and implicit state machines and document their states, invariants, and transition tables in one file.
  2. 2Identify invalid states or transitions the code can actually reach, with evidence, including through retries and concurrency.
  3. 3Prioritize confirmed bugs by impact and group related fixes into issues.
  4. 4Fix 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

FailureFix
No lifecycle with more than two states turns upReport the areas searched and stop. Don't invent a machine.
An invalid transition can't be reproducedLabel it suspected, not confirmed, and don't fix it until you have evidence.
A race shows only under some timingsForce the interleaving in the test with controlled promises or fake timers, never sleeps.
The repo has no test setupReport 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.

save it to your innernetsee every skill