XState creator shares prompt: ask AI to find all implicit state machines in your app

DavidKPiano · x · 2026-11-01

Developer steveruizok shared a prompt he finds effective: ask the AI to "find all of the implicit state machines in my app." DavidKPiano, creator of XState, boosted it.

The idea is practical: much state logic lives implicitly in conditionals and flags. Having a model scan and map these hidden state transitions first makes refactoring or migrating to explicit state management much easier.

Original post →

More from coding & agent

coding & agent channel →