tattooinmtl/dariusai/kotlin

Claude Code and agent skill by tattooinmtl/dariusai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Production codebase starter, best practices, Gradle/Kotlin DSL, Coroutines, Flow, Serialization, KtLint/detekt, and harness verification for Kotlin (JVM/Android/Multiplatform).

Install

npx vskill@latest install tattooinmtl/dariusai/kotlin

SKILL.md

The same SKILL.md was published earlier as tattooinmtl/omni/kotlin.

Kotlin Codebase & Engineering Skill

Comprehensive operational guide, starter architecture, best practices, and harness controls for Kotlin engineering.

1. Stack Overview & Dependencies

  • Runtime: Kotlin 1.9+ / 2.0+ (JVM Target 17 or 21)
  • Build System: Gradle with Kotlin DSL (build.gradle.kts)
  • Core Dependencies:
  • kotlinx.coroutines: Async & structured concurrency
  • kotlinx.serialization: High-performance JSON serialization
  • ktor-client / ktor-server or Spring Boot: Web & API framework
  • kotest / JUnit 5 + mockk: Testing & mocking framework
  • ktlint / detekt: Code style & static analysis

2. Standard Codebase Structure

text
kotlin-service/
├── build.gradle.kts
├── settings.gradle.kts
└── src/
├── main/
│ └── kotlin/
│ └── com/example/app/
│ ├── Main.kt
│ ├── config/
│ ├── model/
│ └── service/
└── test/
└── kotlin/
└── com/example/app/
└── AppTest.kt

3. How-To Workflows

Build & Compile
bash
./gradlew build
Run Dev Server / App
bash
./gradlew run
Static Analysis & Formatting
bash
# Check style with Ktlint / Detekt
./gradlew ktlintCheck detekt
# Format code
./gradlew ktlintFormat
Testing & Verification
bash
./gradlew test

4. Best Practices & Design Patterns

  1. Null Safety: Embrace Kotlin's non-null types (T vs T?). Avoid force unwrapping !!; use ?.let, ?:, or requireNotNull().
  2. Structured Concurrency: Use coroutineScope or supervisorScope for concurrency. Never spawn unmanaged GlobalScope.launch.
  3. Immutability First: Use val instead of var, data class, and read-only collections (listOf, mapOf).
  4. Sealed Classes & Interfaces: Use sealed class or sealed interface for type-safe algebraic data types and domain state modeling.
  5. Extension Functions: Encapsulate domain utilities cleanly without polluting class hierarchies.

5. Tips, Tricks & Pitfalls

  • Flow vs Suspend Functions: Use suspend for single async returns and Flow<T> for reactive streams of asynchronous data.
  • Inline Classes / Value Classes: Use @JvmInline value class for type-safe wrappers without object allocation overhead.
  • Coroutines Exception Handling: Wrap scope launching with CoroutineExceptionHandler or handle exceptions within flow operators (catch).

6. Harness Hooks & Safety Enforcement

  • PreToolUse Guard: Verify Gradle wrapper (./gradlew) execution without bypassing security checks.
  • PostToolUse Verification: Trigger ./gradlew ktlintCheck test automatically on code modifications.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tattooinmtl/dariusai/kotlin/badge)](https://verified-skill.com/skills/tattooinmtl/dariusai/kotlin)

Something wrong with this skill or its page? Tell us.