Uloop Pause Pointのロゴ

Uloop Pause Point

コミュニティ
hatayama
uloop-pause-point

Breakpoint-like: pause Unity at a source file:line without editing code or recompiling, and get the locals, parameters, and fields there. Use to check values or confirm a code path ran.

概要

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

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

  • どのLLMでも利用可能

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

  • 9個の同梱ファイル

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

  • オープンソース

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

インストール

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

uloop pause-point

A pause point captures locals at an exact frame without a source edit. Prefer it over sleeps or after-the-fact reads when input delivery, event ordering, or transition-frame fidelity matters.

Quick Check

  1. Enter PlayMode. If the game progresses on its own, pause it with control-play-mode --action Pause, arrange the scenario while paused, and add --resume-play in step 2.
  2. Arm the marker, fire the input, and wait for the hit in one foreground command:
bash
uloop enable-pause-point --file Assets/Scripts/Enemy.cs --line 42 --timeout-seconds 60 --await --trigger "simulate-keyboard --action Press --key Space"
# paused the game in step 1? add --resume-play, or the input never lands
  1. Read CapturedVariables in the hit response first, then gather extra evidence while still paused (execute-dynamic-code, one screenshot).
  2. A single-shot marker (the default) disarms after the hit; clear other modes with uloop clear-pause-point.

Only CapturedVariables is evidence of the values at the patched line. Before deviating, read references/quick-check-template.md.

Parameters

Tables list Unity-accepted parameters plus clear's CLI-only --file/--line; other CLI-only flags (--await, --trigger, --resume-play, --expect, capture filters) are in the references.

enable-pause-point

Enable a pause point so Unity pauses when that code path is reached, either by a named UloopPausePoint.Pause marker (Id) or by resolving a source file and line (File+Line)

ParameterTypeDefaultDescription
--idstring-Named pause point id passed to UloopPausePoint.Pause. Mutually exclusive with File/Line
--filestring-Source file to patch a pause point into: Assets/..., Packages/<package-id>/..., a package folder path, or an absolute path. Requires Line; mutually exclusive with Id
--lineinteger-1-based source line to resolve within File. Requires File; mutually exclusive with Id
--timeout-secondsinteger30Seconds before the enable request expires and stops pausing late hits
--modeenumsingle-shotCapture mode: single-shot pauses once, continuous pauses on every hit, trace records hits without pausing
--hit-whenstring-Conditional capture expression (<name> <op> <literal>). Only matching hits are captured; requires File and Line
--max-historyinteger20Maximum number of captured hit frames to retain (1-100)
--max-preview-elementsinteger10Maximum elements in a captured collection's preview (1-1000). Also caps previews in later pause-point-status responses; status cannot change it.
--max-caller-framesinteger2Maximum caller stack frames recorded per hit (0-8). 0 disables capture. Also caps later pause-point-status responses; status cannot change it.
--methodstring-Optional method simple name or Type.Method. When set, --line resolves only inside matching methods
--snapshot-timingenumpre-linepre-line captures before the resolved line runs; post-line captures after that line's statement finished, without arming the next line
--persistflag-Re-arm after a domain reload (compile, Play entry); re-arm result is reported in pause-point-status

clear-pause-point

Clear one or all named UloopPausePoint.Pause markers. The response field ClearedCount is the number of markers this call transitioned to Cleared: 0 or 1 for --id, and the number transitioned for --all. Auto-disarmed and expired markers still count as 1; the record stays readable via pause-point-status (StatusBeforeClear keeps the prior state). Clearing the marker that owns the current pause releases the Editor pause and lets the game consume any state you arranged while paused: arm the next marker first, then clear the old id, or re-arm it with --await --resume-play instead of clearing.

ParameterTypeDefaultDescription
--idstring-Named pause point id to clear
--filestring-Project-relative source file of a file:line pause point. Requires --line; mutually exclusive with --id and --all
--lineinteger-1-based source line of a file:line pause point. Requires --file; mutually exclusive with --id and --all
--allflag-Clear every non-cleared pause point marker (armed, auto-disarmed, or expired)

enable-watch

Register a C# expression to evaluate on each paused Play Mode step

ParameterTypeDefaultDescription
--idstring-Unique watch expression identifier
--expressionstring-C# expression returning an object; UloopPausePoint.TryGetCapturedValue can read the latest raw capture
--max-historyinteger20Maximum number of watch evaluations to retain (1-100)

get-watch-values

Show registered watch expression values and bounded evaluation history

ParameterTypeDefaultDescription
--idstring-Optional watch expression identifier; omit to return all watches

clear-watch

Clear one or all registered C# watch expressions

ParameterTypeDefaultDescription
--idstring-Watch expression identifier to clear
--allflag-Clear every registered watch expression

Status, Timeouts, Hot Reload

uloop pause-point-status with no target lists every marker; inspect one with --id "<file>:<line>" or with --file/--line together (never both). await-pause-point and clear-pause-point take the same two forms; await always needs a target.

On a wait timeout, PAUSE_POINT_EXPIRED, or an enable failure, read Error.Details.Hint or the failure ErrorCode, then RecommendedNextAction. After hot reload, --line stays the editor's line number.

Requirements & Safety

  • On the automatic Debug-switch warning: the pause point is already armed - do not interrupt or ask mid-flow.
  • Patches drop on every compile or domain reload (the compile / Play-entry responses warn). --persist re-arms automatically (references/persist.md).
  • Physics message methods, their helpers, and pre-bound delegates can miss hits on pre-existing GameObjects; enable warns where detectable.
  • An --id marker waits on your UloopPausePoint.Pause(id) call (using io.github.hatayama.UnityCliLoop.Runtime;); its hits record no CapturedVariables.
  • Every --file form resolves to the asset path (Packages/<package-id>/... for a package script), which the marker Id uses; status, await, and clear find it by any form.

Reference Guides

Read the one whose trigger matches:

  • references/quick-check-template.md — full --trigger/--await/--resume-play loop, timeouts, hit fields.
  • references/captured-variables.md — captures, name filters, --expect value forms, caller frames, raw values.
  • references/capture-modes-and-history.md — modes, history, --max-history, --hit-when.
  • references/line-placement.md — choosing the line: every-frame lines, held input, input+N frames.
  • references/watch-expressions.md — watch rules.
  • references/condition-triggered-pause.md — runtime-condition pauses.
  • references/fast-progressing-games.md — freezing self-progressing games, --resume-play.
  • references/persist.md — what --persist restores, timeout restart, first-frame gap, the re-arm report.
  • references/troubleshooting.md — timeouts, missed hits, hot reload, Debug switch, failure codes, path forms.

同梱ファイル

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

よくある質問

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

Breakpoint-like: pause Unity at a source file:line without editing code or recompiling, and get the locals, parameters, and fields there. Use to check values or confirm a code path ran.

TypingMindでUloop Pause Pointを使うメリットは何ですか?

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

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

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

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

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

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

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

AIスキル「Uloop Pause Point」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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