This is an amazing prompt that helps find a ton of bugs for me.
“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, group related fixes into issues, then fix them with regression tests and keep the document updated.”
@steveruizokgood prompt "find all of the implicit state machines in my app"