kotlin-fundamentals

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

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "kotlin-fundamentals" with this command: npx skills add pluginagentmarketplace/custom-plugin-kotlin/pluginagentmarketplace-custom-plugin-kotlin-kotlin-fundamentals

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

kotlin-compose

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

kotlin-android

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

kotlin-testing

No summary provided by upstream source.

Repository SourceNeeds Review