Create state machine diagrams of existing components to map out all code paths and verify system understanding. Use when analyzing user flows, authentication, multi-step processes, or any stateful logic to ensure comprehensive coverage of all transitions, edge cases, and error paths.