kotlin-language
БесплатноБез исполняемых скриптовНе проверенWrite idiomatic Kotlin 1.9+ with null safety, sealed classes, data classes, extension functions, delegates, collections, inline/reified generics, and…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Kotlin Language Patterns
Priority: P0 (CRITICAL)
Implementation Guidelines
- Immutability: Use
valby default. Only usevarif mutation required locally. - Null Safety: Use
?for nullable types. Use safe call?.and Elvis?:over!!. - Expressions: Prefer expression bodies
fun foo() = ...for one-liners. Useif/tryas expressions. - Classes: Use
data classfor DTOs. Usesealed interface/classfor state hierarchies (e.g.,Success,Error,Loading). Access members as computed property rather than function. - Extension Functions: Prefer over utility classes (
StringUtil). Keep private/internal if module-specific. - Named Arguments: Use for clarity, especially with booleans or multiple same-type params.
- String Templates: Use
"$var"over concatenation. Use"""raw strings for multiline SQL/JSON, normalizing indentation withtrimIndent()ortrimMargin(). - Version Gates: Features above the project's
languageVersionneed a pinned compiler and explicit opt-in; before emitting newer syntax check the Kotlin compiler/KGP, Gradle/AGP, compiler plugins and JVM target (tooling preflight).
Anti-Patterns
- No !! Operator: Never use in production; prefer safe calls or requireNotNull.
- No Java-isms: Use properties not get/set; prefer top-level functions over companion object statics.
- No Lateinit Abuse: Prefer nullable types or lazy delegates instead.
- No Silenced Errors: Never swallow exceptions without logging or handling.
References
Установить kotlin-language в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл kotlin-language?
Write idiomatic Kotlin 1.9+ with null safety, sealed classes, data classes, extension functions, delegates, collections, inline/reified generics, and expression syntax. Use for Kotlin language constructs, Java-to-Kotlin migration, lazy delegates, data classes, backing properties, or inline/reified generics; keep language constructs in scope even inside response models, and defer coroutine configuration, Android Context/framework, Retrofit/OkHttp client setup, and other library-specific recipes.
Как установить скилл kotlin-language?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл kotlin-language запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic