kotlin-expert

Provide Kotlin guidance and code examples for Android and multiplatform development.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot --skill kotlin-expert-jonathanmitchell1234
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-expert
Source: https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot/tree/main/.agents/skills/kotlin-expert
Command: npx skills add https://github.com/JonathanMitchell1234/Stock-Swing-Trading-Bot --skill kotlin-expert-jonathanmitchell1234

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert-level guidance and code examples for developing with Kotlin, covering its core features, Android development, coroutines, and Kotlin Multiplatform.

Core Features & Use Cases

  • Kotlin Fundamentals: Learn about null safety, extension functions, data classes, sealed classes, coroutines, and Flow.
  • Android Development: Get examples for Jetpack Compose, ViewModel, Room, Retrofit, and Hilt.
  • Kotlin Multiplatform: Understand shared logic and platform-specific implementations.
  • Use Case: A developer can ask for a best-practice example of implementing a network call with error handling using Kotlin Coroutines and Retrofit for an Android application.

Quick Start

Provide an example of a sealed class in Kotlin used for representing different states in a UI.

Frequently Asked Questions about kotlin-expert

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

FAQPage Schema
How do I implement a sealed class in Kotlin for UI state representation?

A sealed class in Kotlin defines a restricted hierarchy, allowing you to represent different UI states explicitly. Use it to model loading, success, and error states safely, ensuring exhaustiveness in when statements.

What's the best way to handle network calls with Kotlin Coroutines and Retrofit?

The best way to handle network calls with Kotlin Coroutines and Retrofit is using suspend functions. This approach manages asynchronous requests safely, allowing structured concurrency and integrated error handling for robust Android applications.

How does Kotlin Multiplatform handle platform-specific implementations?

Kotlin Multiplatform allows you to share core logic across targets while defining platform-specific implementations using the expect/actual mechanism. This approach maximizes code reuse for iOS, Android, and JVM without compromising native capabilities.

Can I use Jetpack Compose with Hilt for dependency injection in Android?

Yes, Jetpack Compose integrates seamlessly with Hilt for dependency injection. This combination streamlines ViewModel instantiation and scoping, enabling efficient and robust Android application architecture development.

Do I need to understand the Android SDK to use Kotlin for multiplatform development?

Yes, understanding the Android SDK and JVM is required. Kotlin Multiplatform development relies on core language features and platform-specific implementations, demanding familiarity with target platform concepts to build robust shared logic.