Перейти к основному содержимому

Lang Kotlin

Navigate, test, and build Kotlin via Gradle tooling.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-kotlin
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

к сведению

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Kotlin Language Pack Skill

Drive Kotlin work with the project index and standard CLI recipes. LSP hint: kotlin-language-server (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Современный язык для JVM и Android. Официально предпочтителен для Android-приложений.

Лучше всего для:

  • Android-приложения
  • бэкенд на Ktor / Spring Kotlin
  • мультиплатформа Kotlin Multiplatform (shared logic)
  • замена Java в JVM-проектах

When to Use​

Выбирай этот pack, если:

  • мобильное Android-приложение
  • репозиторий Gradle с .kt файлами
  • нужен выразительный JVM-язык вместо Java

Manifests (автодетект репозитория): build.gradle.kts, settings.gradle.kts, build.gradle, pom.xml

Обычно рядом: Java на JVM; иногда рядом с Swift для двух мобильных клиентов.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • iOS UI → Swift (или Flutter/Dart для обоих)
  • чистый веб-фронт → TypeScript
  • кроссплатформенный UI одним кодом → Dart/Flutter

Prerequisites​

vibeos pack apply lang-kotlin --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
./gradlew test
./gradlew build

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-kotlin --apply
Doctorvibeos language doctor kotlin
Primary test./gradlew test
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • Prefer gradlew wrapper.
  • Android SDK setup is machine-local — pack apply does not install SDK.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor kotlin
./gradlew test