Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Define client state shape and transitions for non-trivial UI flows (multi-step, branching, async, derived state).
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-22 | ✗→✓ | ▲ Improved | 28% | 0% |
| case-13 | ✓→✓ | = Same ✓ | 1% | 0% |
| case-18 | ✓→✓ | = Same ✓ | 30% | 0% |
Make non-trivial UI state explicit and testable by defining:
Use when UI behavior is more than “render props and call an API”.
<repo>/REPO_PROFILE.json1) Identify the smallest state model that makes behavior explicit. 2) Enumerate states and events:
3) Implement transitions:
4) Keep rendering components dumb:
5) Validate with repo commands and minimal tests where appropriate.
$ask-questions-if-underspecified or meta/intake-interview.system/state-machine-mapper for very complex flows.Log:
frontend/state-modelinguseReducer | zustand | redux | xstate | context | othersuccess | partial | blockedOther measured skills in the registry, with their headline benchmark lift.