Agent Skills
› zjunlp/SkillNet
› scienceworld-conditional-focus-executor
scienceworld-conditional-focus-executor
GitHub根据测量结果与阈值条件,执行对象聚焦动作。适用于任务指令包含条件分支(如温度高于X时聚焦A否则B)的场景,用于自动化决策后的环境交互。
Trigger Scenarios
测量完成后需根据数值条件选择不同目标对象
任务包含基于阈值的条件聚焦逻辑
Install
npx skills add zjunlp/SkillNet --skill scienceworld-conditional-focus-executor -g -y
SKILL.md
Frontmatter
{
"name": "scienceworld-conditional-focus-executor",
"description": "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."
}
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.
Version History
- 7bb9a48 Current 2026-07-25 11:52


