effective-kotlin

Apply the 52 Effective Kotlin items to generate and review safer Kotlin code.

35|10|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/booklib-ai/skills --skill effective-kotlin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effective-kotlin
Source: https://github.com/booklib-ai/skills/tree/main/skills/effective-kotlin
Command: npx skills add https://github.com/booklib-ai/skills --skill effective-kotlin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams consistently apply the Effective Kotlin best-practices catalog to reduce mutability, improve null-safety, and enforce readable, well-structured Kotlin code.

Core Features & Use Cases

  • Guides developers to implement or review code following the 52-item catalog across safety, readability, design, and efficiency.
  • Useful for both code-generation tasks (scaffolding idiomatic Kotlin) and code-review tasks (auditing code against best practices).
  • Real-world scenarios include implementing data classes, sealed hierarchies, safe resource handling, and idiomatic collection processing.

Quick Start

Prompt the AI to apply the Effective Kotlin catalog to generate or review idiomatic Kotlin code.

Frequently Asked Questions about effective-kotlin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply Effective Kotlin best practices to improve code readability and null-safety?

To improve Kotlin code readability and null-safety, apply the 52-item Effective Kotlin catalog which guides mutability control, null handling, and safe data class implementation for safer, cleaner JVM projects.

What is the best way to review Kotlin code for mutability and type-safety issues?

The best way to review Kotlin code for mutability and type-safety is auditing it against the Effective Kotlin catalog, enforcing preconditions, sealed hierarchies, and immutability to produce well-structured code.

How do I generate idiomatic Kotlin code for sealed hierarchies and data classes?

Generate idiomatic Kotlin code for sealed hierarchies and data classes by prompting the AI to scaffold structures following the Effective Kotlin catalog, ensuring proper API design and efficient collection usage.

Can I use this approach to enforce preconditions and efficient collection processing in JVM projects?

Yes, you can enforce preconditions and efficient collection processing in JVM projects by applying the Effective Kotlin catalog to satisfy specific requirements for safe resource handling and performance concerns.

When should I not use data classes for Kotlin API design?

You should reconsider using data classes for Kotlin API design when mutability is required or when the structure does not fit the strict, well-defined contracts expected by the Effective Kotlin best-practices catalog.