Kotlin idiomatic refactorer spring aware

From JetBrains/skills · View interactive version

Kotlin idiomatic refactorer spring aware is an AI agent skill from the GitHub repository JetBrains/skills. Refactor Kotlin code toward clearer, more idiomatic design without breaking Spring behavior, serialization, persistence, or public contracts. Use when Java-flavored Kotlin needs cleanup, domain modeling should become more expressive, or boilerplate should be reduced, but the refactoring must remain

How to use this skill

Skill file

Kotlin Idiomatic Refactorer Spring Aware

Source mapping: Tier 2 high-value skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-20).

Mission

Improve the codebase's Kotlin quality without trading away framework correctness.

Prefer refactorings that increase clarity and reduce accidental complexity while preserving behavior.

Read First

Refactor In This Order

  1. Characterize current behavior with tests or existing callers.
  2. Identify whether the code is transport DTO, domain logic, entity, configuration, or framework glue.
  3. Apply the smallest idiomatic improvement that materially helps readability or safety.
  4. Re-check proxy, serialization, and persistence compatibility.
  5. Keep changes incremental unless the user explicitly wants a larger rewrite.

High-Value Kotlin Moves

Advanced Refactoring Traps

Kotlin Language Nuances

Expert Heuristics

Spring-Aware Safety Rules

Output Contract

Return these sections:

Guardrails

Quality Bar

A good run of this skill leaves the code more Kotlin-native and still boringly reliable in Spring.

A bad run produces elegant Kotlin that is harder to debug, harder to evolve, or incompatible with framework behavior.

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.