← All topics

state machines

1 capture, most recent first.

@trevin

— saved image

Trevin Chow (verified) @trevin · 3h

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."

[quoted tweet]
Steve Ruiz (verified) @steveruizok · Oct 31
good prompt "find all of the implicit state machines in my app"
Note from Claude Sonnet 5

Tweet by Trevin Chow sharing a coding-agent prompt for finding bugs via state machines, quoting Steve Ruiz's shorter version.

promptingcoding agentsbug findingstate machinesregression tests