Логотип Kotlin Kmp Code Review

Kotlin Kmp Code Review

Спільнота
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.

Огляд

Видавецьmmiani
Репозиторійkotlin-kmp-claude-agent-skills
Назва навичкиkotlin-kmp-code-review
Зірки
89
Форки
9
Файли в пакеті
6
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 6

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: mmiani. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Kotlin Kmp Code Review у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/mmiani/kotlin-kmp-claude-agent-skills/tree/main/skills/kotlin-kmp-code-review
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Kotlin Kmp Code Review в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Kotlin Kmp Code Review, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Kotlin Kmp Code Review не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Kotlin Kmp Code Review у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Kotlin Kmp Code Review — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Kotlin Kmp Code Review у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/mmiani/kotlin-kmp-claude-agent-skills/tree/main/skills/kotlin-kmp-code-review. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Kotlin Kmp Code Review?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Kotlin Kmp Code Review?

Зі скількома забажаєте. У TypingMind ви можете використовувати Kotlin Kmp Code Review із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Kotlin Kmp Code Review?

Так. На GitHub цю навичку публікує mmiani за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇