Marketplace

kotlin-fundamentals

Kotlin language fundamentals - syntax, null safety, data classes, extensions

$ Installer

git clone https://github.com/pluginagentmarketplace/custom-plugin-kotlin /tmp/custom-plugin-kotlin && cp -r /tmp/custom-plugin-kotlin/skills/kotlin-fundamentals ~/.claude/skills/custom-plugin-kotlin

// tip: Run this command in your terminal to install the skill


name: kotlin-fundamentals description: Kotlin language fundamentals - syntax, null safety, data classes, extensions version: "1.0.0" sasmp_version: "1.3.0" bonded_agent: 01-kotlin-fundamentals bond_type: PRIMARY_BOND

execution: timeout_ms: 30000 retry: max_attempts: 3 backoff: exponential initial_delay_ms: 1000

parameters: required: - name: topic type: string validation: "^(syntax|null_safety|data_classes|extensions|collections|idioms)$" optional: - name: kotlin_version type: string default: "2.0"

logging: level: info events: [skill_invoked, topic_loaded, error_occurred]

Kotlin Fundamentals Skill

Master Kotlin programming fundamentals with production-ready patterns.

Topics Covered

Null Safety

// Safe call + Elvis
val name = user?.name ?: "Anonymous"

// requireNotNull for validation
requireNotNull(user) { "User required" }

Data Classes

data class User(val id: Long, val name: String) {
    init { require(name.isNotBlank()) }
}

Scope Functions

FunctionContextReturnsUse Case
letitLambda resultNull-safe transforms
applythisSame objectObject configuration
runthisLambda resultObject scope + result
alsoitSame objectSide effects

Troubleshooting

IssueResolution
NPE despite null checkCheck platform types from Java
Smart cast failsUse local variable or let

Usage

Skill("kotlin-fundamentals")