kotlin-quality

kotlin-quality is a skill for Claude Code from liuyi0808/android-review. It costs 73 tokens per session (2,208 once invoked), scanned A, original, MIT.

A structured Kotlin code-quality review for Android projects.

In plain words
What is it for?
Use it when reviewing Kotlin pull requests or auditing Android code for structured concurrency, safer types, null safety, and clearer collection logic.
Why use it?
It finds issues in coroutine use, Flow, null handling, type design, and collection patterns, then reports specific fixes and locations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the android-review plugin — 7 skills shipped together

Good fit Use it when reviewing Kotlin pull requests or auditing Android code for structured concurrency, safer types, null safety, and clearer collection logic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liuyi0808/android-review/kotlin-quality
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add liuyi0808/android-review --skill kotlin-quality
Clone the repo
git clone --depth 1 https://github.com/liuyi0808/android-review

Made for: Claude Code.

Or install android-review, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kotlin-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/liuyi0808/android-review/kotlin-quality/github.svg)](https://agentmods.dev/skills/liuyi0808/android-review/kotlin-quality)
Your own site
<a href="https://agentmods.dev/skills/liuyi0808/android-review/kotlin-quality"><img src="https://agentmods.dev/badge/skills/liuyi0808/android-review/kotlin-quality/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kotlin-quality

Your own site · 80×15
<a href="https://agentmods.dev/skills/liuyi0808/android-review/kotlin-quality"><img src="https://agentmods.dev/badge/skills/liuyi0808/android-review/kotlin-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,208 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.02208
Opus 5.5 $0.00029 $0.00883
Sonnet 5.5 $0.00015 $0.00442
Haiku 4.5 $0.00007 $0.00221

Measured 3mo ago against content hash bf4caebe6d94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kotlin-quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kotlin-quality/SKILL.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kotlin Code Quality Review

Evaluate Kotlin code across five quality categories and produce structured findings with concrete fixes.

Review Process

Phase 1: Triage

Scan project structure (build.gradle, source tree, imports) to determine which categories apply. SKIP categories only when the skip condition is met.

Category Skip If
Coroutines No kotlinx-coroutines dependency
Flow No import kotlinx.coroutines.flow in source
Null Safety NEVER skip
Type Design NEVER skip
Collections NEVER skip

Phase 2: Parallel Scan

Run all applicable categories in PARALLEL using independent Task agents. Each agent:

  1. Grep for the category's anti-patterns (see search guide below)
  2. Read matched files to confirm the finding is real
  3. Return findings in the output format below

Phase 3: Report

Merge parallel results into a single structured report, grouped by category and sorted by severity.


Output Format

[KT-{CATEGORY}-{NNN}] severity: CRITICAL | HIGH | MEDIUM | LOW
  Finding: <description>
  Location: <file:line>
  Fix: <concrete action>

Reference Guide — Load on Demand

Each reference file contains detailed patterns, code examples, and rationale. Read the relevant file when reviewing that category.

# Reference File Content When to Load
1 references/coroutines.md Structured concurrency, Scope, exception propagation, Dispatcher Reviewing coroutine usage or async code
2 references/flow.md Cold/hot Flow, operators, stateIn/shareIn, lifecycle collection Reviewing Flow usage or reactive streams
3 references/null-safety.md !! elimination, lateinit alternatives, safe casts, ?. chains Reviewing null handling patterns
4 references/type-design.md Sealed class/interface, data class, value class, generics Reviewing type definitions or API design
5 references/collections.md Immutability, sequence vs list, scope functions Reviewing collection operations or functional patterns

Read the full file on GitHub · 219 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 219 lines · 73 tokens per session scan A bf4caebe6d94

Subscribe to this mod's changes

kotlin-quality is a skill published in the GitHub repository liuyi0808/android-review (20 stars, last pushed 11d ago), licensed MIT. It adds 73 tokens to every session and 2,208 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

kotlin-quality compared with skills from other repositories

kotlin-quality next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kotlin-qualityliuyi0808/android-reviewSkill2011d agoMITA73Claude Code
axiom-audit-codableCharlesWiltgen/AxiomSkill1.3k22d agoMITA32Codex
axiom-swift-simplifierCharlesWiltgen/AxiomSkill1.3k22d agoMITA34Codex
coding-best-practicesrshankras/claude-code-apple-skillsSkill91822d agoMITA55Claude Code
kotlin-concurrency-and-flowchrisbanes/skillsSkill1.2k3d agoApache-2.0A60Claude Code
kotlin-api-designchrisbanes/skillsSkill1.2k3d agoApache-2.0A46Claude Code
swift-code-reviewexistential-birds/beagleSkill91todayApache-2.0A47Claude Code, Codex