Kotlin tooling is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Configure Kotlin build and quality tooling, including Gradle Kotlin DSL, Version Catalogs, KMP, ktlint, Detekt, MockK, coverage, and quality plugins. Use for Kotlin-specific build, lint, test-tool, or coverage setup; defer Java-only tooling and Spring test behavior.
Claude Code: save it as .claude/skills/kotlin-tooling/SKILL.md
Cursor: save it as .cursor/rules/kotlin-tooling.md
Codex: save it as .agents/skills/kotlin-tooling/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Kotlin Tooling Standards
**Priority: P2 (MEDIUM)**
Implementation Guidelines
Gradle DSL: Use Kotlin DSL (build.gradle.kts) exclusively — type safety and better IDE support.
Version Management: Use Version Catalogs (libs.versions.toml).
Compatibility Preflight: Before raising languageVersion/apiVersion or adding a compiler plugin, check the Kotlin compiler and KGP version, Gradle, AGP (Android), compiler plugins (Compose, KSP, kapt, serialization), JVM target and aligned stdlib. A newer Kotlin release is not proof the consumer supports it.
Linter: Use Ktlint for formatting and Detekt for complexity/code-smell analysis.
Testing: Use MockK for mocking (first-class Kotlin support). Use JUnit 5.
Assertions: Use Truth or Kotest Assertions for fluent, readable test output.
Anti-Patterns
No Groovy Gradle: Use Kotlin DSL (build.gradle.kts) exclusively; avoid legacy build.gradle.
No Mockito in Kotlin: when/then conflicts with Kotlin when; use MockK (every/verify).
No Hardcoded Versions: Manage all versions in libs.versions.toml; never inline in build files.
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.