language-kotlin
Installation
SKILL.md
Kotlin
Null safety
?makes nullability explicit in the type —String?vsString.- Safe-call
?.returns null instead of throwing. Elvis?:provides a default. - Never use
!!in production code — it is a promise you will never break that can't be verified.
val length = name?.trim()?.length ?: 0
user?.email?.let { send(it) } // null-guard + scoping
Data classes and sealed interfaces
data classfor value containers: auto-generatesequals,hashCode,toString,copy, and destructuring.sealed interfacecloses a hierarchy and enables exhaustivewhenwithout anelsebranch.