scienceworld-conditional-focus-executor
Executes a 'focus on OBJ' action on a specific object based on the outcome of a prior conditional evaluation. Use when you have a measurement result and task instructions specify focusing on different objects (e.g., colored boxes) depending on whether the result meets a threshold.
适合你,如果需要在科学实验中根据测量结果切换关注对象
npx oh-my-skill add zjunlp/skillnet/scienceworld-conditional-focus-executorcurl -fsSL https://oh-my-skill.com/install.sh | bash -s -- zjunlp/skillnet/scienceworld-conditional-focus-executornpx oh-my-skill verify zjunlp/skillnet/scienceworld-conditional-focus-executor怎么用
商店整理自技能原文 · 版本 7bb9a48 · 表述以原文为准装上后,Claude在ScienceWorld环境中,会根据测量结果(温度、pH或质量)与阈值的比较,自动对符合条件的物体执行“聚焦”动作。例如,温度高于50度则聚焦红盒,否则聚焦蓝盒。
当你完成一个测量(温度、pH或质量)后,任务要求根据测量结果是否满足阈值来决定聚焦哪个对象时触发。
技能原文 SKILL.md
Conditional Focus Executor
When to Use
Use after completing a measurement (temperature, pH, mass) when the task specifies a conditional rule like "If result > X, focus on A; otherwise, focus on B."
Procedure
- Evaluate the condition against your measurement result.
- Determine the target object based on which branch is true.
- Execute:
focus on <TARGET_OBJECT> - Verify: Confirm the focus action succeeded before proceeding.
If the focus action fails (e.g., object not found), use look around to verify the target object name matches exactly.
Example
Task: "If the temperature of the substance is above 50C, focus on the red box. Otherwise, focus on the blue box."
- Measurement result: 63C
- Evaluation: 63 > 50 is true → target is red box
- Execute:
focus on red box - Observation: "You focus on the red box." → task complete.