alfworld-search-pattern-executor
Agent skill fromzjunlp/SkillNet
Systematically searches a sequence of likely locations for a target object based on common sense. Use when you need to find a specific object and know which receptacles to check but not which one contains it. Takes a list of candidate receptacles, orchestrates navigation and inspection, and outputs when the target is found or all locations are exhausted.
How to install alfworld-search-pattern-executor
install alfworld-search-pattern-executor
# 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-search-pattern-executor/
# into
~/.claude/skills/alfworld-search-pattern-executor/ (all projects)
.claude/skills/alfworld-search-pattern-executor/ (one project)
1# Instructions23For each candidate receptacle in order, execute this action sequence:45## Workflow61. **Navigate:** `go to {receptacle}`72. **Open if closed:** If observation says "{receptacle} is closed", execute `open {receptacle}`83. **Inspect:** Read the observation for the target object name94. **If found:** Execute `take {target_object} from {receptacle}` and stop searching105. **If not found:** If you opened the receptacle, execute `close {receptacle}`, then continue to the next candidate116. **If all exhausted:** Report that the target was not found in any candidate location1213## Action Format14- `go to {receptacle}` -- navigate to a location15- `open {receptacle}` -- open a closed drawer/cabinet/fridge16- `close {receptacle}` -- close after checking (state management)17- `take {object} from {receptacle}` -- pick up the target when found1819## Key Rules20- Search candidates in order; do not skip locations21- Always close drawers/cabinets after checking if you opened them22- Once the object is found, immediately stop searching and proceed to the next task phase23- If "Nothing happened" is returned, verify the receptacle name and retry with the correct identifier2425## Example2627**Goal:** "find two remotecontrol and put them in armchair."2829```30Thought: I need to find remotecontrol. Candidates: sofa 1, sidetable 1, coffeetable 1. Starting search.31Action: go to sofa 132Observation: On the sofa 1, you see a pillow 1.33Thought: No remotecontrol on sofa 1. Checking next candidate.34…
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
