kotlin-coding-standards

Enforce Kotlin coding conventions across source files.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/kleon6436/GitHubCopilotSettings --skill kotlin-coding-standards-kleon6436
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-coding-standards
Source: https://github.com/kleon6436/GitHubCopilotSettings/tree/main/skills/kotlin-coding-standards
Command: npx skills add https://github.com/kleon6436/GitHubCopilotSettings --skill kotlin-coding-standards-kleon6436

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill defines and enforces Kotlin coding conventions across codebases, covering naming rules, formatting, null-safety, data classes, sealed classes, extension functions, coroutines, Flow, error handling, and KDoc.

Core Features & Use Cases

  • Enforce naming conventions for classes, functions, constants, and files.
  • Enforce formatting and code style according to Kotlin conventions with examples of good/bad.
  • Enforce null-safety practices and appropriate use of data classes and sealed classes.
  • Support extension functions, coroutines, Flow usage guidelines, error handling, and KDoc comments.

Quick Start

Apply these guidelines to Kotlin source files in your project to ensure consistent style and safety.

Frequently Asked Questions about kotlin-coding-standards

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

FAQPage Schema
How do I enforce Kotlin coding conventions during code reviews?

To enforce Kotlin coding conventions during code reviews, check source files against rules for naming, null-safety, data classes, and KDoc comments. Apply these guidelines to ensure consistent style and safety across the codebase.

What are the standard Kotlin coding standards for null-safety and coroutines?

Kotlin coding standards for null-safety and coroutines require checking source files to ensure proper Flow usage, safe null handling, and consistent error handling. Apply these guidelines to maintain consistent style and safety.

How do I format Kotlin sealed classes and data classes correctly?

To format Kotlin sealed classes and data classes correctly, apply coding conventions that dictate appropriate use and structure. Check source files against defined rules to ensure these classes comply with formatting and safety standards.

Can I use this to check KDoc comments and extension functions in my project?

Yes, you can use this to check KDoc comments and extension functions in your project. The guidelines support enforcing proper usage of extension functions and ensuring KDoc comments comply with defined Kotlin standards.

What's the best way to automate Kotlin coding standard checks for refactoring?

The best way to automate Kotlin coding standard checks for refactoring is to apply automated checks or lint rules where possible. Check Kotlin source files against defined rules to ensure consistency during feature development and refactoring.

Why does my Kotlin codebase still have inconsistent naming and formatting?

Your Kotlin codebase has inconsistent naming and formatting because source files are not checked against defined rules. Enforce naming conventions and formatting styles according to Kotlin conventions to resolve inconsistencies.