bill-kotlin-code-review-platform-correctness

Identify Kotlin concurrency and lifecycle correctness issues during code review.

13|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/Sermilion/skill-bill --skill bill-kotlin-code-review-platform-correctness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bill-kotlin-code-review-platform-correctness
Source: https://github.com/Sermilion/skill-bill/tree/main/platform-packs/kotlin/code-review/bill-kotlin-code-review-platform-correctness
Command: npx skills add https://github.com/Sermilion/skill-bill --skill bill-kotlin-code-review-platform-correctness

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams identify lifecycle, coroutine, and threading correctness risks in Kotlin code. It highlights common pitfalls like coroutine leaks, improper dispatcher usage, and unsafe state handling to improve reliability.

Core Features & Use Cases

  • Detect coroutine leaks, race conditions, and wrong cancellation behavior
  • Enforce lifecycle-safe patterns and explicit ownership of long-running operations
  • Provide actionable guidance for fixing correctness issues across libraries, apps, and services

Quick Start

Analyze the latest Kotlin changes for concurrency safety and report detected issues.

Frequently Asked Questions about bill-kotlin-code-review-platform-correctness

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect race conditions and coroutine leaks in Kotlin code?

You can detect race conditions and coroutine leaks by applying a code review process that identifies improper dispatcher usage, unsafe state handling, and missing explicit cancellation to improve Kotlin application reliability.

What are common Kotlin coroutine threading and lifecycle pitfalls?

Common Kotlin coroutine pitfalls include using GlobalScope, improper dispatcher selection, ignoring explicit cancellation, and unsafe state handling, which can cause coroutine leaks and race conditions during execution.

How do I enforce lifecycle-safe patterns for Kotlin coroutines?

To enforce lifecycle-safe patterns for Kotlin coroutines, ensure explicit ownership of long-running operations, enforce explicit cancellation, and verify proper dispatcher usage to prevent leaks and threading issues.

Can I use this concurrency code review for Kotlin libraries and modules?

Yes, this concurrency code review applies to Kotlin libraries, apps, and modules where lifecycle management, coroutine usage, or threading concerns are present, ensuring correctness across different project types.

Why does my Kotlin coroutine leak memory during long-running operations?

Your Kotlin coroutine leaks memory during long-running operations likely due to missing explicit cancellation, improper lifecycle ownership, or using GlobalScope, which prevents coroutines from being properly cleaned up.