Scienceworld Conditional Focus Executor
Agent Buildingscienceworld-conditional-focus-executorScienceworld Conditional Focus Executor is an Agent Skill for agent building published in the zjunlp/SkillNet repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/zjunlp/SkillNet/blob/HEAD/experiments/src/skills/scienceworld/scienceworld-conditional-focus-executor/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/scienceworld-conditional-focus-executor, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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.