android-coroutines
Android Coroutines Expert Skill
This skill provides authoritative rules and patterns for writing production-quality Kotlin Coroutines code on Android. It enforces structured concurrency, lifecycle safety, and modern best practices (2025 standards).
Responsibilities
- Asynchronous Logic: Implementing suspend functions, Dispatcher management, and parallel execution.
- Reactive Streams: Implementing
Flow,StateFlow,SharedFlow, andcallbackFlow. - Lifecycle Integration: Managing scopes (
viewModelScope,lifecycleScope) and safe collection (repeatOnLifecycle). - Error Handling: Implementing
CoroutineExceptionHandler,SupervisorJob, and propertry-catchhierarchies. - Cancellability: Ensuring long-running operations are cooperative using
ensureActive(). - Testing: Setting up
TestDispatcherandrunTest.
Applicability
More from new-silvermoon/awesome-android-agent-skills
android-testing
Comprehensive testing strategy involving Unit, Integration, Hilt, and Screenshot tests.
439gradle-build-performance
Debug and optimize Android/Gradle build performance. Use when builds are slow, investigating CI/CD performance, analyzing build scans, or identifying compilation bottlenecks.
438compose-ui
Best practices for building UI with Jetpack Compose, focusing on state hoisting, detailed performance optimizations, and theming. Use this when writing or refactoring Composable functions.
407android-gradle-logic
Expert guidance on setting up scalable Gradle build logic using Convention Plugins and Version Catalogs.
378kotlin-concurrency-expert
Kotlin Coroutines review and remediation for Android. Use when asked to review concurrency usage, fix coroutine-related bugs, improve thread safety, or resolve lifecycle issues in Kotlin/Android code.
369android-architecture
Expert guidance on setting up and maintaining a modern Android application architecture using Clean Architecture and Hilt. Use this when asked about project structure, module setup, or dependency injection.
353