kotlin-flows

Explain Kotlin Flows types and operators for Android and KMP development.

6|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/PL-Coding-GmbH/Skills --skill kotlin-flows-pl-coding-gmbh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-flows
Source: https://github.com/PL-Coding-GmbH/Skills/tree/main/skills/kotlin-flows
Command: npx skills add https://github.com/PL-Coding-GmbH/Skills --skill kotlin-flows-pl-coding-gmbh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a deep dive into Kotlin Flows for Android/KMP, helping developers understand and implement reactive programming patterns effectively.

Core Features & Use Cases

  • Flow Types: Covers StateFlow, SharedFlow, callbackFlow, Channel, and more.
  • Operators: Explains stateIn/shareIn, flowOn, backpressure, lifecycle-aware collection, and offline-first patterns.
  • Use Case: Ideal for anyone working on reactive chains, flow operators, or converting callbacks to flows in Android or KMP applications.

Quick Start

Utilize the 'kotlin-flows' skill to enhance your understanding of flow types and operators in Kotlin for Android development.

Frequently Asked Questions about kotlin-flows

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

FAQPage Schema
How do I convert callbacks to Kotlin Flows in Android?

To convert callbacks to Kotlin Flows, you use callbackFlow, which bridges callback-based APIs into cold flows. This Skill explains this mechanism alongside other flow types like StateFlow and SharedFlow for reactive chains.

How do I use StateFlow and SharedFlow for reactive programming in KMP?

StateFlow and SharedFlow are hot flows used for state holding and event broadcasting in KMP. This guide covers their implementation, alongside shareIn and stateIn operators, to establish robust reactive programming patterns.

What is the best way to handle backpressure in Kotlin Flows?

Handling backpressure in Kotlin Flows involves applying specific operators to manage data emission rates. This Skill details backpressure management techniques, alongside flowOn and lifecycle-aware collection, for Android applications.

Do I need Android development experience to use Kotlin Flows?

You need prior knowledge of Kotlin and Android development to use Kotlin Flows effectively. This Skill is designed for developers already working within Android or KMP environments looking to improve reactive programming skills.

How do I implement lifecycle-aware collection for Kotlin Flows?

Lifecycle-aware collection for Kotlin Flows ensures data only emits when the Android lifecycle is active. This Skill provides guidance on implementing these patterns, including offline-first designs and backpressure handling.