Alfworld goal interpreter

From zjunlp/SkillNet · View interactive version

Alfworld goal interpreter is an AI agent skill from the GitHub repository zjunlp/SkillNet. 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), r

How to use this skill

Skill file

Goal Interpretation Protocol

1. Parse the Task Statement

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:

2. Generate Sub-Objectives

Based on the parsed components, formulate a clear, sequential plan. The plan must account for the spatial relationship.

Example Logic:

3. Identify Required Objects & Actions

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.

4. Execute & Adapt

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.