Skip to content

Kotlin Idiomatic Patterns

Writes and reviews Kotlin code using null safety, immutability, sealed types, coroutines and DSL idioms.

Repository
affaan-m/ECC
Stars
295,127
Licence
MIT
Files
1 file

What it does

When installed, the agent follows a set of Kotlin style and design conventions when writing, reviewing or refactoring Kotlin code. It favors non-nullable types and the safe-call and Elvis operators, immutable values and data classes with copy(), sealed classes for exhaustive results, structured concurrency with coroutines and Flow, extension functions, and type-safe DSL builders. It also covers Gradle Kotlin DSL build configuration. The guidance is provided as text and examples in Spanish; it does not run anything by itself.

Great for

  • Developers writing new Kotlin or Android/JVM services who want idiomatic code
  • Teams doing code reviews who want consistent Kotlin conventions applied
  • Engineers refactoring older Java-style Kotlin toward sealed types and coroutines

Skip it if

  • Non-Kotlin projects, where the guidance would not apply
  • Experienced Kotlin teams with established style guides that may conflict with these conventions; the agent may override local standards unless told otherwise

Try asking

  • “Review this Kotlin service class and suggest null-safety and immutability improvements”
  • “Refactor this API response handling to use a sealed interface for errors”
  • “Write a coroutine-based function that fetches two resources in parallel”
  • “Set up a type-safe DSL builder for this configuration code”
Step-by-step guide: how to use Kotlin Idiomatic PatternsInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    kotlin-patterns.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip kotlin-patterns.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip kotlin-patterns.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Name the target Kotlin version and framework (e.g. Android, Ktor, Spring) so the suggestions match your stack.
  • Ask for the rationale behind a suggestion if you are unsure whether it fits your codebase's conventions.
  • Pair with your project's linter or compiler checks to verify the agent's changes.

What's inside

  • SKILL.md

Redistributed unmodified from affaan-m/ECC under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.