/apk-skills-jeiler:kotlin-qualityfrom apk-skills-jeiler
Reviews Kotlin code quality for Android projects across coroutines, Flow, null safety, type design, and collections. Use when auditing PRs, coroutine usage, null safety, type decisions, or readability.
Ships in apk-skills-jeiler. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Evaluate Kotlin code across five quality categories and produce structured findings with concrete fixes.
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 |
Run all applicable categories in PARALLEL using independent Task agents. Each agent:
Merge parallel results into a single structured report, grouped by category and sorted by severity.
[KT-{CATEGORY}-{NNN}] severity: CRITICAL | HIGH | MEDIUM | LOW
Finding: <description>
Location: <file:line>
Fix: <concrete action>
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 |
Grep-ready patterns per category. Only search categories that passed triage.
Coroutines
| Pattern | Detection Target | Severity |
|---|---|---|
GlobalScope\.launch|GlobalScope\.async | GlobalScope misuse | CRITICAL |
CoroutineScope\( not in class property | Temporary Scope leak | HIGH |
launch\s*\{ without try or CoroutineExceptionHandler | Exception swallowed | CRITICAL |
async\s*\{ without .await() | Result discarded | HIGH |
runBlocking\s*\{ not in main() or test | Blocks thread | CRITICAL |
Dispatchers\.IO with CPU work (sort, serialize, encrypt) | Wrong Dispatcher | MEDIUM |
withContext\(Dispatchers\.Main\) with I/O | Main thread I/O | CRITICAL |
delay\( for polling instead of Flow | Manual polling | MEDIUM |
Flow
| Pattern | Detection Target | Severity |
|---|---|---|
.collect\s*\{ in launch without repeatOnLifecycle | Background collection | HIGH |
stateIn\( with SharingStarted.Eagerly | Wasteful hot flow | MEDIUM |
shareIn\( vs stateIn\( confusion | Wrong sharing strategy | MEDIUM |
.catch\s*\{ after .collect | catch position wrong | HIGH |
.flowOn\( after .collect | flowOn position wrong | HIGH |
MutableStateFlow / MutableSharedFlow as public | Mutable flow exposed | HIGH |
flow \{ with side effects mixed with emit | Impure flow builder | LOW |
Null Safety
| Pattern | Detection Target | Severity |
|---|---|---|
!! | Non-null assertion risk | HIGH |
lateinit var outside DI/lifecycle | Misused lateinit | HIGH |
3+ level ?. chain | Null chain nesting | MEDIUM |
as\s+\w+ without ? outside when | Unsafe cast | HIGH |
catch.*\{\s*\} or catch.*\{.*null | Exception swallowed | CRITICAL |
.get\( / \[.*\] on Map/List without safe access | Index/key crash | MEDIUM |
Type Design
| Pattern | Detection Target | Severity |
|---|---|---|
when + else on sealed types | Non-exhaustive | HIGH |
| 3+ same-type primitive parameters | Parameter confusion | MEDIUM |
data class with var | Mutable data class | HIGH |
Pair< / Triple< | Unnamed tuple | MEDIUM |
Any as parameter/return | Type erasure | HIGH |
| enum with complex when branches | Should be sealed + polymorphism | LOW |
typealias wrapping primitive | Should be value class | MEDIUM |
Collections
| Pattern | Detection Target | Severity |
|---|---|---|
Side effects in .map\s*\{ (Log, println, network, DB) | Impure map | HIGH |
4+ chained operators without asSequence() | Multiple traversals | MEDIUM |
Public mutableListOf|mutableMapOf|mutableSetOf | Mutable collection leak | HIGH |
for loop replaceable by map/filter/fold | Imperative style | LOW |
| Scope function nesting >1 level | Readability loss | MEDIUM |
toMutableList() modify-then-return | Should use buildList | LOW |
!! only when compiler can't infer but you can prove non-null — must have comment.For architecture patterns (ViewModel, UseCase, Repository), see the architecture skill. For Compose UI patterns, see the compose-ui skill. For performance optimization, see the performance skill.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Nov 10, 2026
37 skills in this plugin
/adaptiveInstructions to make or update an app's UI so that it adapts to different Android devices including phones, tablets, foldables, laptops, desktop, TV, Auto, and XR. It includes how to handle different window sizes, pointing devices (such as mouse) and text entry devices (such as keyboard) using the Compose MediaQuery API, and how to preserve UI, navigation, scroll, and media playback state across configuration changes (such as folding/unfolding a foldable, rotating a device, or resizing a window). It also covers multi-pane layouts using Navigation3 Scenes, adaptive UI components (such as buttons) with varying target sizes, and adaptive layouts (including navigation areas - nav rails and nav bars) using the Compose Grid and FlexBox APIs. It also covers desktop experiences with keyboard shortcuts, tooltips and custom cursors./android-intent-securityBest practices for Android Intent security. Use this skill when auditing component configurations in AndroidManifest.xml activities, services, receivers) or source code handling incoming Intents (getIntent, getParcelableExtra) to prevent Intent Redirection and unauthorized access./android-patternsDefines all implementation patterns for Android features: Unidirectional Data Flow (UDF), ViewModel design, Flow composition, error handling, repository pattern, domain UseCases, and Compose UI patterns. Use this skill whenever implementing a ViewModel, designing state or action models, writing a repository or UseCase, composing Flows, handling errors, building Compose screens or components, or reviewing code for correctness of reactive patterns or state management.apk-skills-jeiler@plugins-jeiler is listed by jrivadeneiramejia1-source/plugins-jeiler — review the source before installing
npx claudepluginhub jrivadeneiramejia1-source/plugins-jeiler --plugin apk-skills-jeilerOther plugins' skills for the same job