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)
1# Instructions23Inspect the state or contents of a target receptacle by navigating to it and parsing the environment's observation feedback.45## Workflow61. **Navigate:** Execute `go to {target_receptacle}`72. **Read observation:** The environment automatically reports what is on/in the receptacle -- no additional inspection action is needed83. **Parse contents:** Look for patterns:9 - `"On the {receptacle}, you see nothing."` -- receptacle is empty10 - `"On the {receptacle}, you see a {item1}, and a {item2}."` -- items are present114. **Decide next action** based on the observation:12 - Empty: search elsewhere for the needed item13 - Item found: `take {item} from {receptacle}`14 - Wrong items: move on to the next receptacle1516## Error Recovery17- "Nothing happened": the `go to` target name is invalid -- verify the receptacle name from your environment scan18- This skill uses only `go to` for navigation; it does not use `open`, `close`, or `toggle`1920## Example2122**Scenario 1:** Check if a toiletpaperhanger has toilet paper.2324```25Action: go to toiletpaperhanger 126Observation: On the toiletpaperhanger 1, you see nothing.27```2829**Decision:** Holder is empty. Find a toiletpaper roll elsewhere and bring it here.3031**Scenario 2:** Check a toilet for available items.3233```34Action: go to toilet 135Observation: On the toilet 1, you see a soapbottle 1, and a toiletpaper 1.36```3738**Decision:** toiletpaper 1 is available. Execute `take toiletpaper 1 from toilet 1`.
Excerpt shown under the repository's MIT license.
More skills in SkillNet
- ▸skillnet
- ▸alfworld-appliance-navigator
- ▸alfworld-appliance-preparer
- ▸alfworld-clean-object
- ▸alfworld-device-operator
- ▸alfworld-environment-scanner
- ▸alfworld-goal-interpreter
- ▸alfworld-heat-object-with-appliance
- ▸alfworld-inventory-management
- ▸alfworld-locate-target-object
- ▸alfworld-location-navigator
- ▸alfworld-navigation-planner
