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でも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 6個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    mmianiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Kotlin Kmp Code Review」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

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. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでKotlin Kmp Code Reviewを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にKotlin Kmp Code Reviewを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Kotlin Kmp Code Reviewは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでKotlin Kmp Code Reviewを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Kotlin Kmp Code Reviewはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにKotlin Kmp Code Reviewをインストールするにはどうすればよいですか?

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を使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Kotlin Kmp Code Reviewで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもKotlin Kmp Code Reviewを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Kotlin Kmp Code Review」は無料ですか?

はい。mmianiがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇