شعار Detecting Subtask Success

Detecting Subtask Success

مؤسسة
runtime-si
detecting-subtask-success

Checks whether a subtask is done from the latest frame of every camera at one moment - sends them to a VLM with the Gemini Robotics SDK's four guided questions (object states, relations, required end state, differences) and reads its "FINAL ANSWER yes / no", once or polling fresh frames until yes or a timeout. Use when a graph needs a yes/no "is <subtask> done now?" gate after a step or while a policy runs, with only cameras and no frame from before the step; use judging-step-with-before-now-vlm instead when the decision needs a BEFORE frame or a recovery choice.

نظرة عامة

الناشرruntime-si
المستودعRoboSkillHub
اسم المهارةdetecting-subtask-success
النجوم
242
التفريعات
27
الملفات المرفقة
2
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 2

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها runtime-si على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Detecting Subtask Success في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-subtask-success
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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/detecting-subtask-success .claude/skills/detecting-subtask-success
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Detecting Subtask Success في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Detecting Subtask Success تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Detecting Subtask Success بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

detecting-subtask-success

A yes/no success gate: is the subtask done in what the cameras see now?

This skill or judging-step-with-before-now-vlm

detecting-subtask-success (this)judging-step-with-before-now-vlm
framesthe latest frame of each camera, at one moment (start frames optional)a BEFORE observation captured before the step, and NOW
question"is <subtask> done?""where is this subgoal in a plan, and what next?"
answeryes / nocomplete / in progress / failed / wrong object / wrong destination
repeatsbuilt in: poll until yes or timeout_sone judgment per call

Use this one when the end state is visible on its own ("the cube is in the box", "the cable end is held"), when nothing was captured before the step, or when you need to wait for success while a policy or a slow motion runs. Use the before/now judge when success is a change (moved 8 cm, pushed aside) that a single frame cannot show, or when the graph has recovery edges for a wrong object or a wrong destination.

How a graph uses it

text
<step: skills / policy> -> detect (this skill) -> succeeded: next step
                                               -> not_yet / timed_out: retry or recover
                                               -> no_view: check the cameras / the VLM

With timeout_s 0 (the default) it asks once about now (or a fresh robot.get_observation) and routes succeeded or not_yet. With timeout_s > 0 it reads a fresh observation, asks, and on "no" waits interval_s (upstream's 0.2 s) and asks again about the next one, until a yes (succeeded) or the deadline (timed_out). The deadline is checked between checks, so the last check can end up to one reply (2-13 s, see below) after it. Frames identical to the last judged ones (same RGB bytes and the same observation timestamp / stamp / time, if there is one) are not asked about again. This is upstream's stale-image guard, in a synchronous loop.

What it sends

One vlm.query per check. Upstream's prompt, in its order: the optional start images, the current image of every camera, The robot's task is: <subtask>, "answer the following questions first", the four guided questions with their worked spoon-in-the-compost-bin example, the leniency line, the FINAL ANSWER format, and "limit your response to 50 words". The hub's vlm.query attaches images after the text, so each image is announced by number and camera name where upstream put it inline.

  • cameras picks and orders frames by name. By default every camera with RGB is sent, in the observation's order.
  • start: an observation from the start of the subtask. Its frames go first under upstream's "what the robot saw at the start of the task". This is upstream's default (sd_use_start_images); here it is off unless given, so the check is single-moment.
  • lenient (true, upstream): "partially completed or it may have completed (cannot be determined) counts as completed". lenient=False swaps in a strict line (only a clearly visible end state counts). On the frames below both readings gave no false yes. Choose strict when a false yes costs more than one more check.
  • word_limit (50, upstream's default; None drops the line), model (per-call model, otherwise the tool's configured one).
  • follow_up (true): when a reply has no FINAL ANSWER, ask once more with the same images and the cut-off reply, for the final line only. See below for why. With it off, or when the follow-up has no FINAL ANSWER either, the reply reads as no, as upstream read it.

Parsing: the last FINAL ANSWER: yes|no, case-insensitive, with ** or other punctuation between them, or upstream's \boxed{yes}. answer is yes, no or empty (no FINAL ANSWER).

Live check

The skill's run() was called through the hub's vlm.query, using its OpenAI-compatible provider pointed at Gemini's endpoint. It ran on 14 questions with known answers:

  • 10 on twin frames, two cameras each. The YAM station twin's calibrated overhead camera (top, 640 x 480) and a second view across the table (front). A scripted grasp staged the 30 mm cube through six states: on the table, the open hand 8 cm over it, held 15 cm up, held over the blue box, dropped in the box with the hand still over it, and the hand moved away. Ground truth came from the cube's simulated pose.
  • 4 on real station overhead frames (g_sota_frames_20261103-1421: a white cable on a pegboard, both grippers empty at rest).
framessubtaskexpected
sim: cube on the tableput the small grey cube in the blue boxno
sim: cube on the tablepick up the small grey cubeno
sim: open hand over the cubepick up the small grey cubeno
sim: cube held 15 cm uppick up the small grey cubeyes
sim: cube held 15 cm upput the small grey cube in the blue boxno
sim: cube held over the boxput the small grey cube in the blue boxno
sim: cube held over the boxpick up the small grey cubeyes
sim: cube in the box, hand over itput the small grey cube in the blue boxyes
sim: cube in the box, hand awayput the small grey cube in the blue boxyes
sim: cube in the box, hand awaypick up the small grey cubeno
real: frame_01pick up the white cableno
real: frame_08pick up the white cableno
real: frame_04put the white cable on the floorno
real: frame_11place the black pegboard on the tableyes

Each question was asked twice per model and per reading:

model, readingcorrectfalse yesfalse nofollow-upslatency median / max
gemini-robotics-er-2-preview, lenient28/280022.2 s / 10.2 s
gemini-robotics-er-2-preview, strict28/280012.1 s / 8.9 s
gemini-3-flash-preview, lenient28/280033.7 s / 12.8 s
gemini-3-flash-preview, strict27/280143.4 s / 11.5 s

A check with no follow-up took a median 2.1 s (max 3.0 s) on ER-2 and 3.4 s (max 5.3 s) on Flash. A follow-up made it 7-13 s.

Polling (timeout_s, strict), with a fresh observation cycling through the frames:

frames cycledsubtasktimeoutER-2Flash
table, open hand over cube, heldpick up the small grey cube90 ssucceeded on check 3, 7.8 ssucceeded on check 3, 16.2 s
table, open hand over cubeput the small grey cube in the blue box20 stimed_out, 9 checks, 21.3 stimed_out, 5 checks, 22.6 s

What to know:

  • Without the follow-up, the replies got cut off. In a first pass (one repeat, no follow-up), 5 of 56 replies stopped mid-sentence ("Q3: The cube should be") before any FINAL ANSWER and read as no. ER-2 went 14/14 lenient and 13/14 strict; Flash went 13/14 in both readings. Flash's 90 s poll until held timed out after 21 checks without a yes (the replies were not kept; the single held check was cut off the same way). The cause is that the hub's vlm.query caps output at 1024 tokens, thinking included. Upstream set no output cap. The follow-up fixed every cut-off but one: there, Flash continued its answers instead of giving only the line and was cut again (the one false no above).
  • No false yes in 112 single checks and 4 polls, in either reading. That includes the cube held right over the box, which upstream's lenient reading could have counted as partial success for "put in the box".
  • Cut-off replies came mostly on the held cube. There the two views disagree: the overhead camera sees the hand from above, hiding the cube, while the front view shows it in the fingers. The models spend their words on that. More cameras help the answer but lengthen the reply.
  • The real frames are static scenes (no real arm moved for this check). The twin has one camera on the real station. front is a render-only second view, standing in for a wrist or side camera.

Changes from the Gemini Robotics SDK

Adapted from SubtaskSuccessDetectorV4 and _GUIDED_THINKING_SD_QUESTIONS in safari_sdk/agent/framework/tools/success_detection.py, Apache-2.0:

  • The event-bus image buffer and the asyncio background queries every 0.2 s become a synchronous loop in run(): one observation, one query, wait, repeat. The stale-image guard becomes "skip frames identical to the last judged ones".
  • Default is one check (timeout_s 0). Upstream polled for 60 s (sd_timeout_seconds). The timeout is now a graph exit (timed_out) instead of a timeout flag in the tool response.
  • Start images are optional and off by default (upstream: on). History frames (sd_num_history_frames, 0 upstream) are not ported.
  • Images are announced by number in the text, because the hub tool appends them after the prompt.
  • A strict reading is added beside upstream's lenient one.
  • The FINAL ANSWER parse is case-insensitive and tolerant of markdown. Upstream matched four literal strings.
  • The follow-up for a reply with no FINAL ANSWER is new. Upstream read such a reply as no.
  • A failed vlm.query (or no RGB at all) routes no_view instead of being read as no. Upstream logged it and kept polling, as this loop does until the deadline.
  • Dropped: the external success-signal and cancellation events (a graph stops a node by not running it), the dry-run flag, and the evergreen client. Temperature (0) and the output cap come from the hub's vlm tool, not from upstream's sd_* config.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Detecting Subtask Success؟

Checks whether a subtask is done from the latest frame of every camera at one moment - sends them to a VLM with the Gemini Robotics SDK's four guided questions (object states, relations, required end state, differences) and reads its "FINAL ANSWER yes / no", once or polling fresh frames until yes or a timeout. Use when a graph needs a yes/no "is <subtask> done now?" gate after a step or while a policy runs, with only cameras and no frame from before the step; use judging-step-with-before-now-vlm instead when the decision needs a BEFORE frame or a recovery choice.

لماذا تستخدم Detecting Subtask Success على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Detecting Subtask Success عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Detecting Subtask Success في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/runtime-si/RoboSkillHub/tree/main/skills/detecting-subtask-success. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Detecting Subtask Success؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Detecting Subtask Success؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Detecting Subtask Success معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Detecting Subtask Success مجانية؟

نعم. نشرها runtime-si على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇