# Kotlin quality

> Kotlin quality is an open-source agent skill for developer tools. Reviews Android Kotlin code for coroutines, Flow, null safety, type design and collections. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/liuyi0808/android-review/tree/main/skills/kotlin-quality
- **Repository:** https://github.com/liuyi0808/android-review
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** kotlin-quality
- **Collection:** https://github.com/liuyi0808/android-review
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through a structured quality review of Kotlin code in Android projects. It covers five areas: coroutine structured concurrency, Flow operators and collection lifecycle, null handling, type design with sealed classes, data classes and value objects, and collection and functional patterns.

The review runs in phases. The agent first inspects the build file and source tree to decide which categories apply, then scans each applicable area for common anti-patterns, reads the matching files to confirm them, and produces a report of findings. Each finding carries a severity, a file location and a concrete fix. The skill ships reference notes for each category with patterns and rationale, and it loads them on demand.

No scripts are included. The skill works through the agent's own search and file-reading tools and expects an Android project written in Kotlin as input.

## When your agent uses it

> Kotlin code quality review for Android projects. Covers coroutine structured concurrency, Flow operators, null safety, type design (sealed classes, data classes, value objects), and collection/functional patterns. Use when: reviewing Kotlin code in PRs, auditing coroutine usage, checking null safety patterns, evaluating type design decisions, or improving code readability and correctness.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/liuyi0808/android-review/tree/HEAD/skills/kotlin-quality)
- [License: MIT](https://github.com/liuyi0808/android-review/tree/HEAD/skills/kotlin-quality)

## Features

- **Coroutine lifecycle checks:** Flags misuse of GlobalScope, unhandled launch exceptions, unawaited async results and wrong dispatchers.
- **Flow collection review:** Checks lifecycle-aware collection, mutable flow exposure, operator ordering and stateIn versus shareIn choices.
- **Null safety audit:** Finds risky non-null assertions, misused lateinit, deep safe-call chains and unsafe casts.
- **Type design guidance:** Reviews sealed class exhaustiveness, mutable data class fields, unnamed tuples and primitive wrappers.
- **Collection pattern checks:** Looks for side effects in map calls, leaked mutable collections and chains better served by sequences.
- **Structured review report:** Groups findings by category and severity with file locations and concrete fixes.

## Good for

- Review the Kotlin changes in a pull request for coroutine mistakes
- Audit how an Android app collects Flows from its UI layer
- Find risky !! operators and lateinit fields in a Kotlin codebase
- Check whether sealed class hierarchies are handled exhaustively
- Improve readability of collection-heavy Kotlin functions

## Install

### Claude Code

This skill ships in the `android-review` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add liuyi0808/android-review
/plugin install android-review@android-review
```

Or copy only this skill to `~/.claude/skills/kotlin-quality`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/liuyi0808/android-review.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kotlin-quality &&
cp -R "$tmp/skills/kotlin-quality" ~/.claude/skills/kotlin-quality &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/kotlin-quality` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/kotlin-quality` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/liuyi0808/android-review.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kotlin-quality &&
cp -R "$tmp/skills/kotlin-quality" ~/.agents/skills/kotlin-quality &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/kotlin-quality` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/kotlin-quality` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/liuyi0808/android-review.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kotlin-quality &&
cp -R "$tmp/skills/kotlin-quality" ~/.cursor/skills/kotlin-quality &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/kotlin-quality` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/liuyi0808/android-review.git --path skills/kotlin-quality
```

Or copy the folder to `~/.gemini/skills/kotlin-quality` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/kotlin-quality`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/liuyi0808/android-review.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kotlin-quality &&
cp -R "$tmp/skills/kotlin-quality" ~/.copilot/skills/kotlin-quality &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/kotlin-quality` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/liuyi0808/android-review.git
```

Then copy `android-review/skills/kotlin-quality` into your agent's skills folder as `kotlin-quality`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which project does Kotlin quality apply to?

It is written for Android projects using Kotlin. The triage step skips coroutine checks when kotlinx-coroutines is not a dependency and Flow checks when the source does not import kotlinx.coroutines.flow.

### Does Kotlin quality change my code?

The skill describes a review process that produces findings with suggested fixes. Its instructions do not direct the agent to edit files.

### Does Kotlin quality need any scripts or extra tools?

No scripts are included. It relies on the agent searching and reading source files.

### Where do architecture or Compose topics go?

The skill points to separate skills for architecture, Compose UI and performance rather than covering them itself.

### How do I install Kotlin quality in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/kotlin-quality to use it in all your projects, or to .claude/skills/kotlin-quality in one project. Or install the android-review plugin, which includes it: /plugin marketplace add liuyi0808/android-review, then /plugin install android-review@android-review.

### Does Kotlin quality run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Kotlin quality?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Kotlin quality?

The closest alternatives to Kotlin quality are Performance, Compose UI, Thermo nuclear code quality review, Code review and quality and Code review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Performance](https://ai-powered.com/skills/performance-liuyi0808): Performance is an open-source agent skill for developer tools.
- [Compose UI](https://ai-powered.com/skills/compose-ui): Compose UI is an open-source agent skill for developer tools.
- [Thermo nuclear code quality review](https://ai-powered.com/skills/thermo-nuclear-code-quality-review-michael-denyer): Thermo nuclear code quality review is an open-source agent skill for developer tools.
- [Code review and quality](https://ai-powered.com/skills/code-review-and-quality): Code review and quality is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review is an open-source agent skill for developer tools.
- [Code quality audit](https://ai-powered.com/skills/code-quality-audit): Code quality audit is an open-source agent skill for developer tools.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Axiom analyze swiftui performance](https://ai-powered.com/skills/axiom-analyze-swiftui-performance): Axiom analyze swiftui performance is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/kotlin-quality
