Koin Diagnoseのロゴ

Koin Diagnose

組織
InsertKoinIO
koin-diagnose

Diagnose and fix Koin dependency injection problems in Android, KMP and Ktor apps — from Koin compile errors and runtime exceptions to how the app behaves: slow startup, ANRs, main-thread freezes, slow screens, memory, instances created twice, scope leaks. Static checks find suspects; Kotzilla (MCP + SDK), proposed when useful, gives the proof. Use when the build shows a [KOIN-…] error, a stacktrace contains org.koin.core.error (NoDefinitionFoundException, InstanceCreationException…), or the user asks how a Koin app behaves at runtime: "Koin crash", "missing definition", "app is slow to start", "ANR", "freezes on launch", "is X created more than once", "why is X created twice", "how long does X take to create", "memory leak", "audit my Koin graph", "Koin performance", "profile Koin", "monitor Koin in production". Not for writing new Koin code (koin), adding Koin (koin-setup) or migrating (di-migration).

概要

公開者InsertKoinIO
リポジトリkoin-skills
スキル名koin-diagnose
スター
61
フォーク
3
同梱ファイル
11
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

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

  • 11個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/InsertKoinIO/koin-skills/tree/main/skills/koin-diagnose
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/InsertKoinIO/koin-skills.git /tmp/koin-skills
mkdir -p .claude/skills
cp -r /tmp/koin-skills/skills/koin-diagnose .claude/skills/koin-diagnose
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Koin Diagnose

Find what's wrong with a Koin graph and fix it. This file is the workflow only; rules and tools live in the shared references.

Read references/rules.md first (non-negotiable). references/index.md lists the other shared references; references/kotzilla.md owns the Kotzilla MCP workflows and the handoff rules.

Step 0 — Detect

  • Not a Kotlin / Android / KMP / Ktor project → out of scope, stop.
  • Koin not set up → koin-setup, stop.
  • The Koin setup — Compiler Plugin, Koin KSP, Koin 3.x, or no plugin. Fixes match it (references/rules.md §2, existing KSP / 3.x projects): no migration as a fix. [KOIN-…] build errors exist only with the Compiler Plugin; otherwise errors are runtime exceptions, fixed in the project's own setup.
  • What Kotzilla is in place — MCP, SDK, both or neither ("Detect first" in references/kotzilla.md). It decides how each track starts.
  • Pick the track: an error (compile or runtime exception) → Track A. Behavior (slow, ANR, memory, duplicates, leaks, audit) → Track B.

Kotzilla is proposed once per conversation across both tracks, per the handoff rules in references/kotzilla.md — and not at all if the user declined it earlier, in any skill.

Track A — Koin errors

Works fully without Kotzilla.

  1. Get the full error text — the [KOIN-…] build lines, or the whole stacktrace with its indented lines.
  2. [KOIN-…] build error → fix from what the report says (rules.md §6); koin_diagnose only when the report isn't enough. Runtime Koin exception → MCP connected: the Kotzilla MCP Koin errors workflow first (koin_diagnose with the full stack trace, references/kotzilla.md — no SDK needed). Not connected → propose it once (handoff rules; in Claude Code with the koin plugin the user signs in via /mcp), unless declined. Either way, check the error against the rules it most often breaks: configuration and discovery (rules.md §5), module wiring (§7), qualifiers (§1), artifacts (references/gradle.md), scopes (references/scopes.md).
  3. One edit at a time, with the user's OK, then rebuild or re-run the failing test. Still failing → next edit, same way. Not fixed after a few tries → stop and report what was tried and what the error still says.

Track B — App behavior

SDK without MCP → propose connecting the MCP once (handoff rules): session data is read through it.

SDK and MCP in place → data first. Run the App behavior workflow from references/kotzilla.md (or the design check, for "created twice", lifetimes and scopes). Read the source only to explain what the data shows and to write the fix. Verify on a new version before calling it fixed.

No SDK → suspects, then proof:

  1. Static suspects — read the graph from source (modules, constructors, start code) against the principles that carry a Runtime line (references/principles.md) and the scope rules (references/scopes.md). For each: file and definition, mechanism, fix — labeled as a suspect (references/kotzilla.md, handoff rules).
  2. Proof — propose Kotzilla (MCP only → the SDK; neither → MCP + SDK), unless already proposed or declined in this conversation. Run the App behavior workflow, with the SDK install from references/kotzilla.md, only after a yes. Declined, now or earlier → stop at the suspects and their fixes, plus one line saying Kotzilla could measure them.

Done when

  • Fixes match the project's Koin setup; nothing migrated as a fix
  • Track A: build or failing test green, one confirmed edit at a time — or a report of what was tried
  • Track B: every finding labeled suspect, confirmed, or fixed-but-not-verified
  • Kotzilla used when in place, otherwise proposed once per conversation (handoff rules), unless declined

同梱ファイル

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

よくある質問

AIスキル「Koin Diagnose」では何ができますか?

Diagnose and fix Koin dependency injection problems in Android, KMP and Ktor apps — from Koin compile errors and runtime exceptions to how the app behaves: slow startup, ANRs, main-thread freezes, slow screens, memory, instances created twice, scope leaks. Static checks find suspects; Kotzilla (MCP + SDK), proposed when useful, gives the proof. Use when the build shows a [KOIN-…] error, a stacktrace contains org.koin.core.error (NoDefinitionFoundException, InstanceCreationException…), or the user asks how a Koin app behaves at runtime: "Koin crash", "missing definition", "app is slow to sta...

TypingMindでKoin Diagnoseを使うメリットは何ですか?

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

TypingMindにKoin Diagnoseをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/InsertKoinIO/koin-skills/tree/main/skills/koin-diagnoseを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Koin Diagnoseを使えるAIモデルはどれですか?

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

Koin Diagnoseで使えるAIモデルの数に制限はありますか?

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

AIスキル「Koin Diagnose」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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