krutikjain avatar

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-code

Installs 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-management
  • android-workmanager-notifications

Workflow

  1. Map the request to the current Android stack, module boundaries, and minimum supported API level.
  2. Inspect the existing implementation for implicit assumptions, duplicate helpers, and outdated patterns.
  3. Apply the smallest change that improves correctness, readability, and long-term maintainability.
  4. Validate the result against the relevant showcase app path and repo benchmarks.
  5. 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

More from krutikjain/android-agent-skills

All 8
1thedivergentai avatargodot-state-machine-advancedthedivergentai/gd-agentic-skillsExpert blueprint for hierarchical finite state machines (HSM) and pushdown automata for complex AI/character behaviors. Covers state stacks, sub-states, transit291skills.sh installs
2xirothedev avatarnestjs-best-practicesxirothedev/agent-skillsNestJS best practices and patterns for building scalable, maintainable backend applications. This skill should be used when writing, reviewing, or refactoring N291skills.sh installs
3getsentry avatarsentry-setup-logginggetsentry/sentry-agent-skillsSetup Sentry Logging in any project. Use when asked to add Sentry logs, enable structured logging, capture console logs, or integrate logging libraries (Consola289skills.sh installs
4specstoryai avatarspecstory-organizespecstoryai/agent-skillsOrganize SpecStory AI coding sessions in .specstory/history into year/month folders. Run when user says "organize my history", "clean up specstory", "sort my se289skills.sh installs
5tuist avatarcompare-bundlestuist/agent-skillsCompares two app bundles to identify size changes, new or removed artifacts, and platform differences. Can be invoked with bundle IDs, dashboard URLs, or branch289skills.sh installs
6itechmeat avatarmantine-devitechmeat/llm-codeMantine UI library for React: 100+ components, hooks, forms, theming, dark mode, CSS modules, and Vite/TypeScript setup. Use when building React applications wi288skills.sh installs