skillfed

kotlin-expert

This skill leverages Persona Control Language (PCL) to deliver specialized Kotlin mentorship, covering everything from language fundamentals to advanced Android patterns and asynchronous programming with coroutines. Get personalized recommendations and solutions that adapt to your experience level and project needs.

kotlin-expert guides you through coroutines fundamentals and advanced patterns. Learn structured concurrency principles, launch vs. async builders, and how to handle cancellation properly. The skill covers real-world scenarios like network requests, database operations, and UI updates using viewModelScope and lifecycleScope for safe lifecycle management.

AI-generated summary based on this skill's SKILL.md

38 8 Apache-2.0 updated by personamanagmentlayer

Install

personamanagmentlayer/pcl/kotlin-expert · repository language: TypeScript

CLI (skillfed)coming soon
git clone https://github.com/personamanagmentlayer/pcl
cp -r pcl/stdlib/languages/kotlin-expert ~/.claude/skills/kotlin-expert

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How to use kotlin coroutines effectively in my Android app?

kotlin-expert guides you through coroutines fundamentals and advanced patterns. Learn structured concurrency principles, launch vs. async builders, and how to handle cancellation properly. The skill covers real-world scenarios like network requests, database operations, and UI updates using viewModelScope and lifecycleScope for safe lifecycle management.

What are the key benefits of Jetpack Compose for Android UI?

kotlin-expert explains how Jetpack Compose modernizes Android UI development with declarative syntax, eliminating XML layouts. You'll learn composable functions, state management, recomposition optimization, and how Compose integrates with existing Android architecture patterns. The skill provides practical examples for building responsive, maintainable interfaces.

Can kotlin-expert help with Kotlin Multiplatform development?

kotlin-expert covers Kotlin Multiplatform for sharing code between iOS and Android. Learn how to structure expect/actual declarations, manage platform-specific implementations, and leverage shared business logic. The skill addresses networking, database access, and state management across platforms.

What kotlin null safety best practices should I follow?

kotlin-expert teaches null safety as a core language feature. Understand nullable vs. non-nullable types, safe call operators, Elvis operator, and smart casting. Learn when to use let, apply, and run for safe null handling, plus strategies for avoiding NullPointerExceptions in your codebase.

How do Room, Hilt, and Retrofit work together in Android?

kotlin-expert shows how these libraries form a complete Android architecture. Room handles local persistence with type-safe database queries, Hilt provides dependency injection for cleaner code, and Retrofit manages remote API communication. Learn to integrate them with ViewModels, repositories, and coroutines for robust data flow.

What are sealed classes and when should I use them in Kotlin?

kotlin-expert explains sealed classes as a way to restrict inheritance hierarchies, perfect for representing restricted class families. Learn how they enable exhaustive when expressions, improve type safety, and work with data classes for modeling domain objects. See practical examples in error handling and UI state management.

SKILL.md

rendered from the published skill — quoted content, verbatim

Kotlin Expert

Expert guidance for Kotlin development, Android, coroutines, Kotlin Multiplatform, and modern JVM development.

Core Concepts

Kotlin Fundamentals
  • Null safety
  • Extension functions
  • Data classes
  • Sealed classes
  • Coroutines and Flow
  • Higher-order functions
Android Development
  • Jetpack Compose
  • ViewModel and LiveData
  • Room database
  • Retrofit networking
  • Dependency injection (Hilt)
  • Android lifecycle
Kotlin Multiplatform
  • Shared business logic
  • Platform-specific implementations
  • iOS and Android targets
  • Common module architecture

Modern Kotlin Syntax

```kotlin // Data classes data class User( val id: String, val name: String, val email: String, val createdAt: LocalDateTime = LocalDateTime.now() )

// Sealed classes for type-safe states sealed class Result<out T> { data class Success<T>(val data: T) : Result<T>() data class Error(val

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
stdlib/languages/kotlin-expert/SKILL.md

Related skills

Tags

async-programming reactive-streams mobile-frameworks type-safety cross-platform-dev ui-toolkit database-orm architecture-patterns null-handling functional-style