Kotlin rules

From softspark/ai-toolkit · View interactive version

Kotlin rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. Kotlin coding rules: style, patterns, security, testing. Triggers: .kt, .kts, build.gradle.kts, Ktor, Jetpack Compose, coroutines, kotlinx.

How to use this skill

Skill file

Kotlin Rules

These rules come from app/rules/kotlin/ in ai-toolkit. They cover

the project's standards for coding style, frameworks, patterns,

security, and testing in Kotlin. Apply them when writing or

reviewing Kotlin code.

Kotlin Coding Style

Naming

Null Safety

Data Classes

Functions

Collections

Scope Functions

Formatting

Kotlin Frameworks

Ktor (Server)

Ktor (Client)

Spring Boot (Kotlin)

Exposed (ORM)

kotlinx.serialization

Koin (DI)

Compose (Multiplatform UI)

Kotlin Patterns

Error Handling

Coroutines

Flow Patterns

Sealed Hierarchies

Delegation

Builder Patterns

Anti-Patterns

Kotlin Security

Input Validation

Null Safety as Security

SQL Injection

Serialization

Authentication

Coroutine Security

Secrets Management

Dependencies

Logging

Kotlin Testing

Framework

File Naming

Structure

MockK

Coroutine Testing

Assertions

Test Data

Spring Integration

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.