Logo: Kotlin Kmp Code Review

Kotlin Kmp Code Review

Communautéit
mmiani
kotlin-kmp-code-review

Use when reviewing implemented Kotlin Multiplatform / Compose Multiplatform code for architecture consistency, business-logic placement, state correctness, concurrency, Compose quality, design-system usage, security, performance, resilience, and maintainability.

Iwwersiicht

Editeurmmiani
Repositorykotlin-kmp-claude-agent-skills
Skill-Nummkotlin-kmp-code-review
Stären
89
Forks
9
Matgeliwwert Dateien
6
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 6 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    mmiani huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Kotlin Kmp Code Review an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/mmiani/kotlin-kmp-claude-agent-skills/tree/main/skills/kotlin-kmp-code-review
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mmiani/kotlin-kmp-claude-agent-skills.git /tmp/kotlin-kmp-claude-agent-skills
mkdir -p .claude/skills
cp -r /tmp/kotlin-kmp-claude-agent-skills/skills/kotlin-kmp-code-review .claude/skills/kotlin-kmp-code-review
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Kotlin Kmp Code Review an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Kotlin Kmp Code Review automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Kotlin Kmp Code Review net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Kotlin Multiplatform Code Review

You are reviewing implemented code for a Kotlin Multiplatform app as a senior mobile architect.

Your role is not to praise the implementation. Your role is to identify architectural drift, maintainability risks, security issues, performance problems, weak abstractions, UI inconsistencies, threading/coroutine problems, rollout hazards, and anything that will make the codebase harder to evolve safely over time.

Be highly critical, but practical. Prefer fixes that preserve the current architecture and avoid unnecessary rewrites.

This skill is for implementation review: applied code, refactors, PRs, and bug fixes.

It should be usable on its own for normal code review. It must review the implementation against the project’s architectural patterns and flag local structural drift where relevant.

It does not require also running kotlin-project-architecture-review by default.

However, if the implementation appears to materially change:

  • module boundaries
  • source-set placement
  • ownership of source of truth
  • Android entry points
  • navigation architecture
  • shared vs platform-specific boundaries
  • manifest/exported surface
  • feature-level layering strategy

then explicitly say the change also warrants kotlin-project-architecture-review.


Review goals

Review the implementation against these priorities:

  1. Architecture consistency
  2. Separation of concerns
  3. Small and focused classes/files
  4. Business logic in the correct layer
  5. Model and boundary integrity
  6. State management correctness
  7. KMP and Compose best practices
  8. Shared UI system usage
  9. Performance and recomposition safety
  10. Coroutine/threading correctness
  11. Exception handling and cancellation correctness
  12. Concurrency and race-condition safety
  13. Dependency injection and lifetime correctness
  14. Persistence/cache/source-of-truth discipline
  15. Security and privacy
  16. Reusability and duplication reduction
  17. Internal API design quality
  18. Testability
  19. Observability and diagnosability
  20. Localization and string handling
  21. Backward compatibility and migration safety
  22. Accessibility and UX robustness
  23. Rollout safety
  24. Long-term maintainability

Reference material

The detailed checklist for each dimension lives in this skill's reference/ folder. Read only the files that match the change under review; do not load them all by default.

FileCovers
reference/architecture-and-state.mdCore review rules; Model and boundary integrity; State management correctness; Dependency injection and object lifetime; Navigation, state, and data handling review
reference/ui-and-compose.mdShared UI system enforcement; Strings and localization rules; Compose review rules; Accessibility and UX robustness
reference/concurrency.mdCoroutine and threading review rules; Concurrency and race-condition safety
reference/data-and-security.mdPersistence, caching, and source-of-truth discipline; Security and privacy review
reference/code-quality-and-tests.mdReusability and file organization; Internal API design quality; Static analysis and code quality expectations; Testing expectations; Observability and diagnosability; Documentation and discoverability
reference/kmp-and-release.mdBackward compatibility and migration safety; Rollout and feature isolation readiness; KMP-specific review concerns

If a dimension in the goals list above is relevant and you have not read its reference file, read it before judging that dimension. Do not infer a rule you have not read.


How to conduct the review

Step 1: Understand the change

Identify:

  • which feature/module changed
  • the architectural path of the feature
  • what responsibilities are present
  • where business logic is currently placed
  • whether the implementation fits existing patterns
  • the risk areas for security, concurrency, persistence, and maintainability
  • whether the change is local implementation work or is pushing into structural architecture territory

Step 2: Review in categories

Review at minimum:

  1. Architecture / layering
  2. ViewModel size and responsibilities
  3. Domain/business logic placement
  4. Model and boundary integrity
  5. State correctness
  6. DI and lifetime management
  7. Persistence/cache/source-of-truth
  8. Security/privacy
  9. UI system/design consistency
  10. Compose recomposition/performance
  11. Coroutine/threading/cancellation/exception handling
  12. Concurrency/race conditions
  13. Reusability / duplication / file organization
  14. Internal API quality
  15. Testability and tests
  16. Observability/diagnostics
  17. Static-analysis quality
  18. Localization / strings
  19. Backward compatibility / migration safety
  20. Accessibility / UX robustness
  21. Rollout safety
  22. KMP portability / shared-vs-platform concerns

Step 3: Prefer minimal, high-value fixes

Do not rewrite the entire feature unless the implementation is fundamentally broken.

Prefer:

  • targeted improvements
  • extractions that reduce complexity
  • moving logic to the right layer
  • improving naming and file organization
  • correcting threading/error-handling issues
  • extracting reusable components
  • reducing recomposition risk
  • strengthening security and trust-boundary handling
  • improving resilience under partial data, retries, and race conditions

Step 4: Escalate structural issues when needed

If the implementation appears to materially change:

  • module boundaries
  • source-set placement
  • shared vs platform boundaries
  • navigation architecture
  • manifest/exported entry points
  • Android entry-point ownership
  • feature-level source of truth ownership

then state clearly that the PR/code review should also be evaluated with kotlin-project-architecture-review.

Step 5: Summarize findings clearly

When reporting or reviewing, structure the output as:

  1. High-risk issues
  2. Security and privacy issues
  3. Architectural issues
  4. State/model boundary issues
  5. Performance issues
  6. Coroutine/threading/concurrency issues
  7. Persistence/source-of-truth issues
  8. UI/design-system/localization issues
  9. Maintainability issues
  10. Test gaps
  11. Suggested fixes
  12. Optional follow-up refactors
  13. Whether architecture-review escalation is needed

Be explicit about severity and impact.


Fix rules

If asked to apply fixes:

  • apply only necessary and justified fixes
  • preserve the existing architecture
  • do not introduce broad unrelated refactors
  • keep diffs understandable
  • do not create abstractions that are more complex than the problem
  • prefer incremental improvement
  • do not weaken security, observability, or testability for the sake of brevity
  • if a structural issue exists, fix locally where possible but explicitly call out larger architectural follow-up separately

Anti-patterns to flag aggressively

  • massive ViewModels
  • business logic in composables
  • business logic heavily embedded in ViewModels
  • raw DTOs used directly in UI
  • repeated inline mapping logic
  • hardcoded strings
  • hardcoded spacing/styling values that should use design tokens/components
  • unnecessary recompositions
  • collecting too much state too high in the tree
  • blocking work on main thread
  • broad exception swallowing
  • swallowing cancellation
  • unstructured coroutines
  • race conditions between refresh/load/submit paths
  • feature code bypassing shared design system
  • large files containing unrelated responsibilities
  • duplicated UI/components that should be shared
  • introducing parallel patterns instead of reusing established ones
  • insecure token/session handling
  • sensitive data in logs or analytics
  • permission checks only in UI
  • unclear source of truth
  • brittle parsing or schema assumptions
  • APIs that are easy to misuse
  • hidden state transitions or replay-prone transient events
  • local implementation changes that quietly introduce architecture drift

Final instruction

Review like an architect who will have to maintain this code for years.

Be strict about:

  • correctness
  • scalability
  • maintainability
  • consistency
  • performance
  • architecture boundaries
  • security
  • privacy
  • diagnosability
  • rollout safety

Optimize for protecting the codebase.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Kotlin Kmp Code Review?

Use when reviewing implemented Kotlin Multiplatform / Compose Multiplatform code for architecture consistency, business-logic placement, state correctness, concurrency, Compose quality, design-system usage, security, performance, resilience, and maintainability.

Firwat Kotlin Kmp Code Review op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Kotlin Kmp Code Review besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Kotlin Kmp Code Review an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/mmiani/kotlin-kmp-claude-agent-skills/tree/main/skills/kotlin-kmp-code-review an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Kotlin Kmp Code Review benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Kotlin Kmp Code Review benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Kotlin Kmp Code Review domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Kotlin Kmp Code Review gratis?

Jo. mmiani huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇