experiments/src/skills/alfworld/alfworld-goal-interpreter/SKILL.md
Parses the natural language task goal to extract actionable sub-objectives and required objects. Trigger this skill whenever a new task is assigned to break down complex instructions into clear, sequential targets. It interprets phrases like 'look at X under Y' to identify target objects (pillow), reference objects (desklamp), and spatial relationships (under).
npx skillsauth add taomiao/dynamicskillcompiler alfworld-goal-interpreterInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When a new task is assigned, immediately analyze the natural language instruction to extract its core components. Use the parsing script (parse_goal.py) to perform this analysis.
Input: The raw task string (e.g., "look at pillow under the desklamp"). Output: A structured dictionary containing:
primary_target: The main object to interact with.reference_object: The object that defines a location or condition.spatial_relation: The preposition linking them (e.g., under, on, in).action: The verb defining the required interaction.Based on the parsed components, formulate a clear, sequential plan. The plan must account for the spatial relationship.
Example Logic:
under → Sub-goal 1: Locate the reference_object. Sub-goal 2: Inspect the area beneath it for the primary_target.in or on → Sub-goal 1: Locate the reference_object. Sub-goal 2: Check its contents/surface.Map the parsed objects to the available action types in the environment. The primary action verbs (look, take, use, etc.) from the task must be translated into the agent's available action set (go to, take, use, etc.).
Critical Check: If the reference_object is a container (drawer, fridge), ensure the plan includes the open action before inspection.
Initiate the plan. After each action, monitor the observation. If the expected object is not found, or the action fails ("Nothing happened"), consult the fallback logic in the reference guide (search_patterns.md).
Remember: The agent must maintain object permanence. If an object is moved (e.g., a pillow is picked up), it is now in the agent's inventory and the spatial relationship is void.
testing
Picks up a specified object from a given receptacle. Use this skill when the agent has located a required object and needs to acquire it for later use, such as taking an item from a surface or container. The skill requires the object and source receptacle as inputs, executing a 'take' action to transfer the object into the agent's inventory, enabling further manipulation like placement or usage.
development
This skill scans the current environment observation to identify the presence and location of a target object needed for a task. It should be triggered when the agent's goal requires an object that is not currently in the agent's inventory, and the observation does not explicitly state where the object is. The skill analyzes the textual observation to find receptacles that likely contain the target, based on common sense or domain knowledge (e.g., a 'dishsponge' might be on a 'cart'), and outputs the identified target receptacle location for navigation.
testing
This skill heats a specified object using an available heating appliance (e.g., microwave, stove). Activate this skill when the agent has an object that requires heating and the appliance is prepared. It requires the object and appliance as inputs and results in the object being heated.
testing
This skill disposes of an object by placing it into a disposal receptacle like a garbage can. It should be triggered when the task requires discarding an object (e.g., 'put it in garbagecan') and the agent is at the disposal location with the object in hand. The skill executes the 'put' action to place the object in/on the target receptacle, completing the disposal subtask.