Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Write correct coroutine scopes, lifecycle collection, and dispatcher injection in Android production code. Use for suspend functions, coroutine scopes, and dispatcher mechanics; defer ViewModel StateFlow/LiveData architecture, Fragment lifecycle recipes, persistence/notifications, and unit-test recipes to their specific skills.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -29% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -67% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -22% | 0% |
viewModelScope (VM) or lifecycleScope (Activity/Fragment).DispatcherProvider) for testability. not hardcode Dispatchers.IO.Flow for data streams.StateFlow (State) or SharedFlow (Events).SharedFlow with replay only when late subscribers must receive recent events.collectAsStateWithLifecycle() (Compose) or repeatOnLifecycle (Views).Other measured skills in the registry, with their headline benchmark lift.