Skip to main content
Alison Aquinas logoAlison's LLM Skills Marketplace

kotlin-best-practice

Included in skill bundlesoftware-designView on GitHub ↗

Files

SKILL.mdagentsreferences

Install

Install only this skill with npx skills
npx skills add alisonaquinas/llm-software-design --skill 'kotlin-best-practice' -g -y
Install the containing skill bundle
/plugin install software-design@llm-skills
Download kotlin-best-practice-skill.zip
This skill is bundled inside software-design. Use npx skills when you only want this skill, or install the bundle once to make every included skill available through the plugin marketplace flow. Browse the full skill bundle repository at github.com/alisonaquinas/llm-software-design.

Invoke

Invoke this skill after installation
/software-design:kotlin-best-practice

SKILL.md


name: kotlin-best-practice description: > review kotlin code and planning work against common kotlin conventions for formatting, naming, structure, testing, and tooling. use when the user asks for idiomatic kotlin, kotlin code review, kotlin refactoring guidance, kotlin project structure, or kotlin tooling such as ktlint, detekt, and coroutines.

Kotlin Best Practice

Use this skill to review or improve Kotlin work using common ecosystem conventions instead of ad hoc local habits.

Intent Router

NeedLoad
core conventions, tooling defaults, and review checklist for Kotlinreferences/best-practices.md

Quick Start

  1. Confirm the target version, dialect, runtime, framework, or vendor before recommending changes.
  2. Prefer existing project conventions when they are already enforced and internally consistent.
  3. Apply the default guidance in references/best-practices.md for naming, structure, testing, and tooling.
  4. Recommend the smallest change set that improves clarity, safety, and maintainability.

Workflow

  • Identify the runtime, dialect, or host environment before making specific recommendations.
  • Separate language-level guidance from framework-, vendor-, or platform-specific conventions.
  • Prioritize correctness, readability, changeability, and operability before micro-optimizations.
  • Note the automation path: formatter, linter, type checker, compiler flags, or test runner.
  • Call out the highest-leverage refactors first instead of producing style-only churn.

Typical Focus Areas

  • naming, layout, and public API clarity
  • boundary handling, state management, and error paths
  • dependency direction, module structure, and test seams
  • tooling, CI checks, and repeatable local verification
  • performance, portability, or safety constraints only when they materially affect the design

Outputs to Prefer

  • summarize the governing constraints before detailed recommendations
  • group findings by severity, maintenance impact, or migration effort
  • recommend concrete edits, checks, or follow-up tests
  • preserve externally visible behavior unless the request explicitly allows semantic changes

Common Requests

Review this Kotlin module for idiomatic structure, naming, boundary handling, and test gaps.
Refactor this Kotlin snippet to follow common Kotlin best practice without changing behavior.

Verification and Follow-Through

  • verify the recommendation with the formatter, linter, compiler, or test command named in references/best-practices.md
  • call out which behavior must remain unchanged before suggesting stylistic cleanup
  • recommend one or two concrete checks that prove the refactor improved clarity, safety, or maintainability
  • preserve enforced repository conventions when they intentionally differ from the default baseline

Recovery Cues

  • if the runtime, dialect, framework, or vendor is unknown, give the safest default and name the missing fact that would narrow the advice
  • if project automation already enforces a competing convention, follow the enforced rule and explain the exception
  • if correctness bugs and style issues are mixed together, fix correctness and observability first, then return to style

Safety Notes

  • do not force ecosystem migration unless the current stack is clearly blocking maintainability
  • avoid style-only churn in legacy code that is otherwise stable
  • preserve externally visible behavior unless the user asks for breaking changes
← Back to marketplace