Tooluck logoTooluck
SKILL.md

alfworld-goal-interpreter

Agent skill fromzjunlp/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), reference objects (desklamp), and spatial relationships (under).

How to install alfworld-goal-interpreter

install alfworld-goal-interpreter
# install the SkillNet pack with the skills CLI
npx skills add zjunlp/SkillNet

# or add only this skill to Claude Code: copy the folder

experiments/src/skills/alfworld/alfworld-goal-interpreter/

# into

~/.claude/skills/alfworld-goal-interpreter/ (all projects)

.claude/skills/alfworld-goal-interpreter/ (one project)

experiments/src/skills/alfworld/alfworld-goal-interpreter/SKILL.md

MITFull file
1# Goal Interpretation Protocol
2
3## 1. Parse the Task Statement
4When 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.
5
6**Input:** The raw task string (e.g., "look at pillow under the desklamp").
7**Output:** A structured dictionary containing:
8- `primary_target`: The main object to interact with.
9- `reference_object`: The object that defines a location or condition.
10- `spatial_relation`: The preposition linking them (e.g., under, on, in).
11- `action`: The verb defining the required interaction.
12
13## 2. Generate Sub-Objectives
14Based on the parsed components, formulate a clear, sequential plan. The plan must account for the spatial relationship.
15
16**Example Logic:**
17- **IF** relation is `under` → Sub-goal 1: Locate the `reference_object`. Sub-goal 2: Inspect the area beneath it for the `primary_target`.
18- **IF** relation is `in` or `on` → Sub-goal 1: Locate the `reference_object`. Sub-goal 2: Check its contents/surface.
19
20## 3. Identify Required Objects & Actions
21Map 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.).
22
23**Critical Check:** If the `reference_object` is a container (drawer, fridge), ensure the plan includes the `open` action before inspection.
24
25## 4. Execute & Adapt
26…

Excerpt shown under the repository's MIT license.

More skills in SkillNet

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates