Tooluck logoTooluck
SKILL.md

alfworld-object-state-inspector

Agent skill fromzjunlp/SkillNet

Inspects a receptacle's contents by navigating to it and reading the observation. Use when you need to check what is on or inside a receptacle (e.g., "what's on the shelf", "is the holder empty", "check the table for items"). Executes `go to {receptacle}`, parses the observation listing items present, and decides whether to take an item, search elsewhere, or proceed.

How to install alfworld-object-state-inspector

install alfworld-object-state-inspector
# 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-object-state-inspector/

# into

~/.claude/skills/alfworld-object-state-inspector/ (all projects)

.claude/skills/alfworld-object-state-inspector/ (one project)

experiments/src/skills/alfworld/alfworld-object-state-inspector/SKILL.md

MITFull file
1# Instructions
2
3Inspect the state or contents of a target receptacle by navigating to it and parsing the environment's observation feedback.
4
5## Workflow
61. **Navigate:** Execute `go to {target_receptacle}`
72. **Read observation:** The environment automatically reports what is on/in the receptacle -- no additional inspection action is needed
83. **Parse contents:** Look for patterns:
9 - `"On the {receptacle}, you see nothing."` -- receptacle is empty
10 - `"On the {receptacle}, you see a {item1}, and a {item2}."` -- items are present
114. **Decide next action** based on the observation:
12 - Empty: search elsewhere for the needed item
13 - Item found: `take {item} from {receptacle}`
14 - Wrong items: move on to the next receptacle
15
16## Error Recovery
17- "Nothing happened": the `go to` target name is invalid -- verify the receptacle name from your environment scan
18- This skill uses only `go to` for navigation; it does not use `open`, `close`, or `toggle`
19
20## Example
21
22**Scenario 1:** Check if a toiletpaperhanger has toilet paper.
23
24```
25Action: go to toiletpaperhanger 1
26Observation: On the toiletpaperhanger 1, you see nothing.
27```
28
29**Decision:** Holder is empty. Find a toiletpaper roll elsewhere and bring it here.
30
31**Scenario 2:** Check a toilet for available items.
32
33```
34Action: go to toilet 1
35Observation: On the toilet 1, you see a soapbottle 1, and a toiletpaper 1.
36```
37
38**Decision:** toiletpaper 1 is available. Execute `take toiletpaper 1 from toilet 1`.

Excerpt shown under the repository's MIT license.

More skills in SkillNet

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates