Perceiving Next Itemのロゴ

Perceiving Next Item

組織
runtime-si
perceiving-next-item

Loop-head perception for pack-all / clean-all-items tasks. From ONE observation it localizes BOTH the destination container (basket, bin, box) AND the next remaining target item, using the pairwise VLM crop tournament with a container-excluding description so the target is never confused with the basket, then makes a clean found / none decision: an item was found (grasp it) or only the container remains (all items packed — exit the loop to done). Use when a workflow must pick up EVERY object and place each into a container in a loop (pack-all / clean-all-items) and each pass must reliably answer "is there still a graspable item, or are we done?" while also exposing a fresh container OBB for the downstream place. This subgraph is self-contained and takes NO inputs (inputs: {}); the container and item phrases are literal strings written inside the perception nodes, never subgraph parameters — do not declare item_name / container_name / item_description as subgraph inputs.

概要

公開者runtime-si
リポジトリRoboSkillHub
スキル名perceiving-next-item
スター
242
フォーク
27
同梱ファイル
7
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 7個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

perceiving-next-item

The repeating head of a pack-all loop. One robot.get_observation feeds two perceptions — the destination container and the next remaining item — and a decide router turns the item verdict into the loop's continue/terminate signal. It is perceiving-objects (the reliable pairwise-tournament perception) composed with (a) a second perception for the container and (b) a clean none exit, so a "pick up every object and place it in the basket" workflow has one subgraph that answers "is there still an item, and where is the basket?" every pass.

Detection uses the same pairwise VLM crop tournament as perceiving-objects (~30% → 97% object-ID over a one-shot Set-of-Marks pick on the LIBERO-PosVar study). The clean loop terminator comes from the item's container-excluding object_description: once only the basket remains, the tournament + verify gate answer "no grocery item", perceive_item returns found=False, and the decide router emits none → the loop exits to done.

When to use

  • The repeating head of a pack-all / clean-all-items loop (transport routes its success edge back here), where each pass must reliably decide "grasp the next item" vs "everything is packed, stop".
  • When the downstream place needs a fresh container OBB every pass (this skill emits container_obb/container_mask/container_cloud alongside the target).

When NOT to use

  • Single pick-and-place (grab ONE named object). Use perceiving-objects (one target, no loop, no container co-perception).
  • You want the container localized once, out of the loop. If the container never moves and you prefer to perceive it a single time before the loop, use a plain perceiving-objects subgraph for the basket + perceiving-objects-oneshot for the looping target. This skill deliberately re-localizes both each pass (robust to a nudged basket, one observation, one clean none).
  • Cluttered scenes with look-alike distractors. Prefer perceiving-objects for the target identity — its pairwise-tournament plus object_description hints disambiguate look-alikes (it lacks the clean loop none, so you would add your own decide).

vs. perceiving-objects-oneshot

oneshot also has a clean not_found loop terminator, but it identifies with a single Set-of-Marks VLM pick (weaker on small/similar items) and perceives only the target (no container). This skill uses the pairwise tournament and co-localizes the container, so both the "is anything left?" decision and the downstream place are more reliable — at the cost of a second perception per pass.

Recommended subgraph state flow

text
observe → exterior_view → perceive_container → filter_obb_container
        → perceive_item → decide ──found──▶ filter_obb_item ──▶ found
                                └──none──▶ none

See examples/canonical_subgraph.json for the exact node/edge/output wiring — emit it verbatim, adapting only the object_name/object_description literals to the task's items and container.

State details:

  1. observe — type: tool, robot.get_observation, inputs: {}.
  2. exterior_view — type: script, scripts/<sg>/exterior_view.py, inputs: {cameras: Ref("observe.cameras")}. Drops the wrist cam so the container OBB is not bloated by the angled eye-in-hand view.
  3. perceive_container — type: script, scripts/<sg>/perceive_dino_vlm.py, inputs: {cameras: Ref("exterior_view.cameras"), object_name: "basket"}.
  4. filter_obb_container — type: tool, geometry.filter_and_compute_obb, inputs: {points: Ref("perceive_container.cloud")}.
  5. perceive_item — type: script, scripts/<sg>/perceive_dino_vlm.py, inputs: {cameras: Ref("observe.cameras"), object_name: "grocery item", object_description: "…never the wicker basket…"} (the exclusion is a HARD rule above). For SUBSET tasks (specific items only), add reject_unverified: True and name exactly the allowed items in the literals — see the subset-scoping HARD rule.
  6. decide — type: router, scripts/<sg>/decide_next_item.py, inputs: {found: Ref("perceive_item.found"), cloud: Ref("perceive_item.cloud"), container_obb: Ref("filter_obb_container.obb")}. Maps found → filter_obb_item, none → none.
  7. filter_obb_item — type: tool, geometry.filter_and_compute_obb, inputs: {points: Ref("perceive_item.cloud")}.

Wiring the exit (HARD)

python
sg.add_exit("found")
sg.add_exit("none")
sg.set_exit(success_values=["found", "none"])  # BOTH are clean exits
sg.set_on_error("perception_failed")

sg.set_outputs(
    target_obb=Ref("filter_obb_item.obb"),
    target_mask=Ref("perceive_item.mask"),
    container_obb=Ref("filter_obb_container.obb"),
    container_mask=Ref("perceive_container.mask"),
    container_cloud=Ref("perceive_container.cloud"),
)

At the top level, route this subgraph's found → grasp, none → done, perception_failed → abort.

Required end states

End stateMeaning
foundA graspable item distinct from the container was localized. Route to a grasp skill.
noneOnly the container remains — all items packed. Route to done (a success, not an abort).
perception_failedUnexpected perception error (not "nothing left" — that is none). Route to abort. Lives only in on_error.

See also

  • scripts/perceive_dino_vlm.py — the pairwise-tournament perception (shared with perceiving-objects).
  • scripts/decide_next_item.py — the unprivileged loop router: per-pass VLM all-packed check (primary stop) + same-target no-progress guard + perception verdict; sim.check_success is telemetry only (GAP_DECIDE_TRUST_ENV=1 opts into trusting it on benchmarks).
  • scripts/exterior_view.py — wrist-cam drop for a clean container OBB.
  • prompts/vlm_pairwise.md — the pairwise-tournament VLM prompt template.

同梱ファイル

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

よくある質問

AIスキル「Perceiving Next Item」では何ができますか?

Loop-head perception for pack-all / clean-all-items tasks. From ONE observation it localizes BOTH the destination container (basket, bin, box) AND the next remaining target item, using the pairwise VLM crop tournament with a container-excluding description so the target is never confused with the basket, then makes a clean found / none decision: an item was found (grasp it) or only the container remains (all items packed — exit the loop to done). Use when a workflow must pick up EVERY object and place each into a container in a loop (pack-all / clean-all-items) and each pass must reliably a...

TypingMindでPerceiving Next Itemを使うメリットは何ですか?

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

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

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

Perceiving Next Itemを使えるAIモデルはどれですか?

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

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

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

AIスキル「Perceiving Next Item」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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