kotlin-review

Analyze Kotlin code for idiomatic patterns and anti-patterns.

1|Updated Dec 1, 2016
One-click install
npx skills add https://github.com/aaron-vaz/dotfiles --skill kotlin-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-review
Source: https://github.com/aaron-vaz/dotfiles/tree/main/opencode/.opencode/skills/kotlin-review
Command: npx skills add https://github.com/aaron-vaz/dotfiles --skill kotlin-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write more idiomatic, readable, and maintainable Kotlin code by identifying common anti-patterns and promoting best practices.

Core Features & Use Cases

  • Code Review Assistant: Provides a checklist and specific rules for reviewing Kotlin Pull Requests.
  • Idiomatic Kotlin: Guides users on using Kotlin's features like extension functions, sealed types, and scope functions effectively.
  • Anti-Pattern Detection: Highlights common mistakes such as unnecessary var, catch-all exceptions, and redundant null checks.
  • Use Case: Before merging a new feature, use this Skill to ensure the Kotlin code adheres to established best practices, reducing technical debt and improving code consistency across the team.

Quick Start

Review the provided Kotlin code snippet for idiomatic patterns and anti-patterns.

Frequently Asked Questions about kotlin-review

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

FAQPage Schema
How do I review Kotlin code for anti-patterns and best practices?

Review Kotlin code for anti-patterns and best practices by applying a structured checklist that targets idiomatic patterns, null safety, and exception handling to improve code readability and maintainability.

What are common Kotlin anti-patterns to fix before merging a pull request?

Common Kotlin anti-patterns to fix before merging a pull request include using unnecessary var declarations, implementing catch-all exceptions, and writing redundant null checks that decrease readability.

How do I write idiomatic Kotlin using scope functions and sealed types?

Write idiomatic Kotlin using scope functions and sealed types by following official documentation guidelines that promote using extension functions effectively to enhance code consistency.

Can I use a Kotlin code review checklist to reduce technical debt?

You can use a Kotlin code review checklist to reduce technical debt by ensuring new feature code adheres to established best practices, catching anti-patterns and improving maintainability before merging.

What is the best way to improve Kotlin null safety and exception handling?

The best way to improve Kotlin null safety and exception handling is to analyze code against specific rule recommendations that detect redundant null checks and catch-all exceptions, ensuring maintainable code.