Design, implement, migrate, review, and test complex Android ViewModel flows with Afsm, including State/Phase/Data/Event/Command modeling, the afsmMachine DSL, afsmHost integration, restoration, transition tests, and Mermaid graph generation. Use when adopting Afsm in a Kotlin or Android project, adding or changing an Afsm machine, refactoring branching ViewModel flow into Afsm, diagnosing Afsm behavior, or reviewing an Afsm integration. Do not use for simple screens where ordinary ViewModel plus StateFlow is clearer or for changing Afsm library internals.
2026-07-25