Claude Code Plugins

Community-maintained marketplace

Feedback

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

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

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 [object Object]
parameters [object Object]
logging [object Object]

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

Function Context Returns Use Case
let it Lambda result Null-safe transforms
apply this Same object Object configuration
run this Lambda result Object scope + result
also it Same object Side effects

Troubleshooting

Issue Resolution
NPE despite null check Check platform types from Java
Smart cast fails Use local variable or let

Usage

Skill("kotlin-fundamentals")