Uloop Compile Checkのロゴ

Uloop Compile Check

コミュニティ
hatayama
uloop-compile-check

Compile C# with the Unity-bundled Roslyn compiler without launching or contacting the Unity Editor; reports errors and warnings only.

Add to TypingMind

概要

公開者hatayama
リポジトリunity-cli-loop
スキル名uloop-compile-check
スター
578
フォーク
49
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

uloop compile-check

Compile the project's C# offline and report the diagnostics, without starting Unity or sending anything to a running Editor.

The command replays the response files Unity wrote during its last build, using the C# compiler bundled with the Unity Editor install. Nothing it produces is loaded by Unity: the assemblies land in Library/uloop/compile-check/ and are never handed to the Editor.

When to use

  • The Editor is not running and you only want to know whether the code compiles.
  • You want compiler errors quickly, without waiting for an import and a domain reload.
  • You are iterating on code whose result does not need to be live in the Editor yet.

When not to use

  • You want the change reflected in the Editor (play mode, tests, a tool call): run uloop compile.

  • You just added or removed an .asmdef, added a reference to one, or changed scripting defines: run uloop compile once first. The response files describe the previous build only, so compile-check refuses the run with COMPILE_CHECK_UNITY_BUILD_REQUIRED instead of reporting diagnostics for a configuration the project no longer has.

  • The project has no Library yet (a fresh clone, or an Editor that has never opened it): there is no build to replay, so the run is refused with the same code. Let Unity build once; a headless run is enough and needs no window:

    bash
    <Unity executable> -batchmode -nographics -quit -projectPath /path/to/project

    uloop launch does the same with the Editor window open. After that one build, compile-check works without the Editor; it asks for another build when it detects an .asmdef change. A scripting define change it cannot detect, so run uloop compile yourself after one.

Usage

bash
uloop compile-check
uloop compile-check --all --project-path /path/to/project

By default it compiles the assemblies whose sources changed since the last Unity build, plus every assembly that references one of them. --all compiles every assembly in the build. Assemblies that do not depend on each other compile at the same time; --jobs caps how many run at once, and --jobs 1 compiles them one after another.

An assembly whose inputs are all exactly as the previous compile-check read them is not compiled again: the run reports the diagnostics recorded then, errors included. --all compiles everything from scratch, which is the way out if a reused result ever looks wrong.

Parameters

ParameterTypeDescription
--allflagCompile every assembly instead of only the changed ones and their dependents
--editor-version <version>stringUse this Unity Editor version's compiler instead of ProjectVersion.txt
--jobs <N>numberCompile up to N assemblies at once (default: half the CPUs, at least 1; 1 compiles sequentially)
--max-depth <N>numberSearch depth when locating the project (default: 3, -1 for unlimited)
--project-path <path>stringTarget another Unity project instead of the current directory

Output

A JSON payload:

  • Success: whether the compile produced no errors
  • ErrorCount, WarningCount: totals across every compiled and reused assembly
  • Errors, Warnings: each with Message, Code, File, Line, Column, Assembly
  • CompiledAssemblies: the assemblies this run compiled, in dependency order
  • ReusedAssemblies: the assemblies reported from the previous run's recorded result, without compiling
  • BlockedAssemblies: the assemblies not compiled because an assembly they reference has errors, as Unity's own build would stop there; fix those errors and run again
  • SkippedAssemblies: how many assemblies were left out: nothing they compile from changed, or every assembly they reference kept the same public surface
  • ResponseFileSet: the Bee build the run replayed
  • ProjectRoot: resolved project root
  • Message: one-line summary

The process exits 1 when ErrorCount is greater than zero.

Only one compile-check runs per project at a time. A second one waits for the first, up to five minutes, then fails with COMPILE_CHECK_PROJECT_BUSY: wait for the other run to finish and run compile-check once more rather than retrying in a loop.

Limitations

  • It replays the last Unity build's response files. A new or deleted .asmdef, a changed .asmdef reference, an .asmdef that stopped building for the Editor, or a newly required precompiled reference stops the run and asks for uloop compile.
  • Changes to defineConstraints and versionDefines are not detected, because they depend on scripting defines and package versions that cannot be evaluated outside the Editor. Run uloop compile after editing them.
  • A reference removed from an .asmdef is not detected either: Unity injects references of its own that no .asmdef declares, so only added references can be told apart from those. Diagnostics may therefore miss an error that the removal would cause. Run uloop compile after removing one.
  • Changed scripting defines are not detected; the defines from the last build are reused.
  • The predefined assemblies (Assembly-CSharp and friends) keep the source list of the last build, so a brand-new .cs file outside an .asmdef is not compiled until Unity imports it.
  • The produced DLLs are never loaded by Unity, and the command never contacts a running Editor.

よくある質問

AIスキル「Uloop Compile Check」では何ができますか?

Compile C# with the Unity-bundled Roslyn compiler without launching or contacting the Unity Editor; reports errors and warnings only.

TypingMindでUloop Compile Checkを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/hatayama/unity-cli-loop/tree/main/Packages/src/Editor/CliOnlyTools~/CompileCheck/Skillを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Uloop Compile Checkを使えるAIモデルはどれですか?

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

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

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

AIスキル「Uloop Compile Check」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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