kotlin-coroutines-skill
CommunityWrite safe, testable Kotlin coroutines.
Authorjitrapon
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers identify and fix correctness, safety, and testability issues in Kotlin coroutine-based code, especially where asynchronous work becomes hard to reason about or difficult to cancel.
Core Features & Use Cases
- Structured Concurrency Guidance: Choose the right scope and preserve parent-child cancellation behavior.
- Dispatcher and Main-Safety Review: Prevent blocking work on the wrong thread and make suspend functions safe to call from UI code.
- Flow and Lifecycle Best Practices: Improve state handling, event delivery, and Android collection patterns.
- Testing and Reliability Support: Replace flaky coroutine tests with deterministic virtual-time patterns.
- Use Case: Review a ViewModel, repository, or shared KMP module to catch scope leaks, misuse of async, cancellation bugs, flow collection mistakes, and test flakiness before they ship.
Quick Start
Ask for a coroutine code review that pinpoints the risk, shows the problematic code, and rewrites it using structured concurrency, correct dispatchers, lifecycle-aware flow handling, and deterministic tests.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kotlin-coroutines-skill Download link: https://github.com/jitrapon/astro-mobile/archive/main.zip#kotlin-coroutines-skill Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.