Logo van Kotlin Kmp Code Review

Kotlin Kmp Code Review

Community
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.

Overzicht

Uitgevermmiani
Repositorykotlin-kmp-claude-agent-skills
Skillnaamkotlin-kmp-code-review
Sterren
89
Forks
9
Meegeleverde bestanden
6
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 6

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door mmiani op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Kotlin Kmp Code Review in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/mmiani/kotlin-kmp-claude-agent-skills/tree/main/skills/kotlin-kmp-code-review
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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 na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Kotlin Kmp Code Review in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Kotlin Kmp Code Review automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Kotlin Kmp Code Review niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-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.

Waarom Kotlin Kmp Code Review gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Kotlin Kmp Code Review bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Kotlin Kmp Code Review in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/mmiani/kotlin-kmp-claude-agent-skills/tree/main/skills/kotlin-kmp-code-review. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Kotlin Kmp Code Review gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Kotlin Kmp Code Review gebruiken?

Zoveel als je wilt. Je kunt Kotlin Kmp Code Review gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Kotlin Kmp Code Review gratis?

Ja. Deze skill is door mmiani op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇