Skip to content

Kotlin Development Patterns

Teaches the agent idiomatic Kotlin: null safety, immutability, sealed types, coroutines and DSL builders.

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

What it does

When installed, this skill guides the AI agent to write and review Kotlin code in the style the Kotlin community recommends. It steers the agent toward safe handling of missing values, immutable data, sealed classes for clear result types, structured coroutines, extension functions, and type-safe builders for Gradle build files. It is a set of written guidelines and code examples rather than a tool that runs anything on its own.

Great for

  • Developers writing new Kotlin or Android code who want consistent, modern style from an AI assistant
  • Teams reviewing or refactoring existing Kotlin codebases
  • Engineers configuring Gradle Kotlin DSL builds

Skip it if

  • People who do not write Kotlin: the guidance only applies to Kotlin code and will not help with other languages
  • Projects that require a specific house style that conflicts with these conventions, since the agent may push its own preferences over local rules

Try asking

  • “Refactor this Kotlin service class to use sealed results instead of nullable returns”
  • “Review my coroutine code and point out any structured concurrency problems”
  • “Write a data class and value classes for a user model with validation”
  • “Set up a Gradle Kotlin DSL build file for a multi-module project”
Step-by-step guide: how to use Kotlin Development 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 Kotlin version and libraries you use (for example kotlinx.coroutines) so the suggestions match your setup.
  • Ask the agent to explain why it chose a pattern, so you can judge whether it fits your codebase.
  • Combine with your own project conventions in a separate instruction file, since this skill sets general defaults.

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.