From kotlin-cross-cutting
Apply only when explicitly reviewing or auditing Kotlin code for readability, maintainability, or clean code practices. This includes code review requests, naming reviews, refactoring for clarity, reducing nesting, or evaluating scope function usage.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kotlin-cross-cutting:reviewing-code-for-cleanlinessThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Write Kotlin code that is readable, explicit, and maintainable. Favor clarity over cleverness, keeping functions small and intentions obvious.
Write Kotlin code that is readable, explicit, and maintainable. Favor clarity over cleverness, keeping functions small and intentions obvious.
Besides the already known clean code guidelines, here are some additional recommendations:
DO:
when expressions for multi-branch logic instead of if-else chainsval over var, immutable collections)DON'T:
let, also, run, apply, with) - one level is fine, chaining obscures flow{ it.name })it in multi-line lambdas - name the parameter explicitlynpx claudepluginhub allousas/claude-code-plugins --plugin kotlin-cross-cuttingProvides idiomatic Kotlin patterns and best practices for null safety, coroutines, sealed classes, extension functions, and type-safe DSL builders.
Covers idiomatic Kotlin patterns including null safety, immutability, sealed classes, structured concurrency with coroutines, extension functions, and type-safe DSL builders to write robust and maintainable code.
Provides idiomatic Kotlin patterns for coroutines, Flow, KMP, Compose UI, Ktor servers, and DSL design. Invoke for sealed classes, suspend functions, or Android Kotlin development.