Claude-skill-registry alfworld-locate-target-object
This skill navigates to a suspected location and identifies a target object. It should be triggered when the agent's goal requires finding a specific object (e.g., 'potato', 'plate') and its location is not immediately known. The skill involves moving to a relevant receptacle (like a fridge or cabinet) and checking its contents, outputting the object's location or confirming its absence.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/alfworld-locate-target-object" ~/.claude/skills/majiayu000-claude-skill-registry-alfworld-locate-target-object && rm -rf "$T"
skills/data/alfworld-locate-target-object/SKILL.mdSkill: Locate Target Object
Purpose
Use this skill when your goal requires a specific object and you need to find it. The skill directs you to a likely receptacle, inspects it, and confirms if the target is present.
Core Workflow
- Identify Target & Suspected Location: Determine the object you need and the most logical place to find it (e.g., food in the
, utensils in afridge
).drawer - Navigate: Go to the suspected receptacle.
- Inspect: If the receptacle is closed, open it.
- Locate: Visually scan the contents for the target object.
- Report: Output the object's location if found, or note its absence.
Instructions
Follow this sequence of actions and reasoning.
Thought: I need to find a
<target_object>. The most likely place for it is the <suspected_receptacle>.
Action: go to <suspected_receptacle>
Observation: [You arrive at the receptacle. It may be open or closed.]
Thought: I am at the
<suspected_receptacle>. To see inside, I must open it.
Action: open <suspected_receptacle>
Observation: [The receptacle opens, revealing its contents.]
Thought: The
<suspected_receptacle> is open. I will now look for the <target_object> among its contents.
- If the object is visible: I have located the
in the<target_object>
. My location task is complete.<suspected_receptacle> - If the object is not visible: The
is not in the<target_object>
. I must consider the next most likely location.<suspected_receptacle>
Key Principles
- Contextual Guessing: Use common sense to guess the initial search location (e.g.,
for perishables,fridge
for dry goods).cabinet - Sequential Access: You must
a location before you cango to
it.open - Visual Confirmation: Only trust the
after opening a receptacle to confirm an object's presence or absence.Observation
Next Steps
After successfully locating the object, you will typically need to
take it or interact with it, which is outside the scope of this skill. If the object is not found, trigger this skill again with a new suspected location.