
Android Coroutines Flow
Teaches Claude to write cancellation-safe async code in Android using coroutines and Flow. You'd reach for this when you need to fix viewmodel scopes, wire up lifecycle-aware collectors, or stop hard-coding dispatchers in repositories. The guardrails are sensible: inject your dispatchers, always rethrow CancellationException, and use repeatOnLifecycle instead of naive collect calls. It explicitly hands off to state management and WorkManager skills when the request drifts, which keeps the scope tight. The remediation examples are short and practical, covering the three mistakes that actually show up in reviews. Comes with test targets against two sample apps and a trigger benchmark to avoid false positives.
- skills.sh installs
- 291
- GitHub stars
- 14
- last updated
- Aug 21, 2026
Install
$ npx -y skills add krutikjain/android-agent-skills --skill android-coroutines-flow --agent claude-codeInstalls into .claude/skills of the current project.
Files
Android Coroutines Flow
When To Use
- Use this skill when the request is about: android flow collection, fix coroutine scope in android, structured concurrency in viewmodel.
- Primary outcome: Use coroutines, Flow, structured concurrency, dispatchers, and cancellation-safe Android async pipelines.
- Handoff skills when the scope expands:
android-state-managementandroid-workmanager-notifications
Workflow
- Map the request to the current Android stack, module boundaries, and minimum supported API level.
- Inspect the existing implementation for implicit assumptions, duplicate helpers, and outdated patterns.
- Apply the smallest change that improves correctness, readability, and long-term maintainability.
- Validate the result against the relevant showcase app path and repo benchmarks.
- Hand off adjacent work to the next specialized skill only after the core foundation is stable.
Sponsors
Details
- Repository
- github.com/krutikjain/android-agent-skills
- Categories
- AI & Agent Building, Mobile Development
- First seen
- Jun 3, 2026