kotlin-fundamentals

from pluginagentmarketplace/custom-plugin-kotlin

Kotlin Development Plugin

3 stars1 forksUpdated Jan 5, 2026
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-kotlin --skill kotlin-fundamentals

SKILL.md

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")

Repository Stats

Stars3
Forks1
LicenseOther