kotlin-coroutines
Installation
SKILL.md
Kotlin coroutines
Step 1: Establish the concurrency contract
- DEFINE feature | cancellation/failure bug | Flow/channel pipeline | shared state | dispatcher boundary | lifecycle leak | test | migration.
- IDENTIFY owner scope, parent Job, children, lifetime/end signal, dispatcher requirements, blocking calls, result/error consumer, backpressure/state semantics, platform, and dependency versions.
- READ the current coroutines guide, exact API reference, and release notes before version/API changes.
- PRESERVE structured concurrency: every coroutine must have an owner that awaits or cancels it. Use
GlobalScopeonly for a deliberate process-lifetime root with explicit opt-in and failure policy. - ROUTE build-only dependency/toolchain work to
kotlin-gradle; route generic Kotlin behavior tokotlin-development.
Completion: scope owner, lifetime, success result, cancellation path, failure propagation, dispatcher, and platform are explicit.
Step 2: Inspect dependencies and risk sites
RUN from repository root:
python3 scripts/inspect-project.py --root . --json