# Alfworld Locate Target Object

Navigates to a suspected location and identifies a target object.

- Repository: https://github.com/zjunlp/SkillNet (1441 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-13
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add zjunlp/SkillNet --skill alfworld-locate-target-object -g -a claude-code -y`
Codex: `npx skills add zjunlp/SkillNet --skill alfworld-locate-target-object -g -a codex -y`
Cursor: `npx skills add zjunlp/SkillNet --skill alfworld-locate-target-object -g -a cursor -y`
Gemini CLI: `npx skills add zjunlp/SkillNet --skill alfworld-locate-target-object -g -a gemini-cli -y`

## Description

Navigates to a suspected location and identifies a target object. Use when your goal requires finding a specific object (e.g., "potato", "plate") and its location is not immediately known. Moves to a relevant receptacle (like a fridge or cabinet), checks its contents, and outputs the object's location or confirms its absence.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Skill: 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
1.  **Identify Target & Suspected Location:** Determine the object you need and the most logical place to find it (e.g., food in the `fridge`, utensils in a `drawer`).
2.  **Navigate:** Go to the suspected receptacle.
3.  **Inspect:** If the receptacle is closed, open it.
4.  **Locate:** Visually scan the contents for the target object.
5.  **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 `<target_object>` in the `<suspected_receptacle>`. My location task is complete.
*   **If the object is not visible:** The `<target_object>` is not in the `<suspected_receptacle>`. I must consider the next most likely location.

## Key Principles
*   **Contextual Guessing:** Use common sense to guess the initial search location (e.g., `fridge` for perishables, `cabinet` for dry goods).
*   **Sequential Access:** You must `go to` a location before you can `open` it.
*   **Visual Confirmation:** Only trust the `Observation` after opening a receptacle to confirm an object's presence or absence.

## Example

**Scenario:** You need to find a potato for a heating task.

The rest: https://github.com/zjunlp/SkillNet/blob/HEAD/experiments/src/skills/alfworld/alfworld-locate-target-object/SKILL.md
