android-coroutine-trace

Community

Diagnose stuck coroutines with DebugProbes

Authorhimattm
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Stuck or leaking Kotlin coroutines in Android apps can cause hangs, UI freezes, and memory creep. This Skill provides a practical approach using kotlinx.coroutines-debug and DebugProbes to snapshot active coroutines, identify suspension points, and guide fixes. After validation, remove the temporary instrumentation.

Core Features & Use Cases

  • Install DebugProbes in Application.onCreate to observe coroutine state and suspension points.
  • Dump active coroutines to identify stuck jobs, leaks after navigation, and duplicate launch points.
  • Use cases include diagnosing a launch that never emits, a flow collect that never completes, or a coroutine that continues after leaving a screen.

Quick Start

Install kotlinx-coroutines-debug and DebugProbes in the Application, reproduce the suspect flow, then dump coroutines and review the output.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: android-coroutine-trace
Download link: https://github.com/himattm/skills/archive/main.zip#android-coroutine-trace

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.