Scienceworld Task Interpreter
Agent Buildingscienceworld-task-interpreterScienceworld Task Interpreter is an Agent Skill for agent building published in the taomiao/DynamicSkillCompiler repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
This skill parses a user's high-level scientific task in the ScienceWorld environment and extracts the core objective and target location. It should be triggered when a new task instruction is received, especially those involving finding, comparing, or manipulating objects. The skill interprets the query to identify the goal (e.g., 'find the animal with the shortest life span') and any specified locations (e.g., 'animals are in the outside location'), outputting a clear, actionable sub-goal for navigation or observation.
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/taomiao/DynamicSkillCompiler/blob/HEAD/experiments/src/skills/scienceworld/scienceworld-task-interpreter/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/scienceworld-task-interpreter, 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.
Instructions
Activate this skill when the user provides a new task instruction for the ScienceWorld environment. Your primary function is to interpret the instruction and generate a clear, executable plan.
1. Parse the Task
Read the user's instruction carefully. Extract the following core components:
- Primary Objective: What is the ultimate goal? (e.g., "find", "compare", "manipulate").
- Target Object/Subject: What is the main focus of the task? (e.g., "animal with the shortest life span").
- Specified Location: Is a location explicitly mentioned? (e.g., "animals are in the 'outside' location").
2. Formulate the Plan
Based on the parsed components, construct a plan. The standard plan structure is:
- Navigate: If a target location is specified and you are not there, teleport to it immediately.
- Observe: Upon arriving at the correct location, use
look aroundto survey the environment and identify relevant objects. - Analyze & Execute: Apply domain knowledge or comparative reasoning to the observed objects to fulfill the primary objective. Then, take the final required action (e.g.,
focus on [OBJECT],pick up [OBJECT]).
3. Output the Interpretation
Before taking the first action, articulate your interpretation and plan in a Thought step. This confirms the skill has correctly parsed the task. Output Format: