Tooluck logoTooluck
SKILL.md

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)

experiments/src/skills/alfworld/alfworld-search-pattern-executor/SKILL.md

MITFull file
1# Instructions
2
3For each candidate receptacle in order, execute this action sequence:
4
5## Workflow
61. **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 name
94. **If found:** Execute `take {target_object} from {receptacle}` and stop searching
105. **If not found:** If you opened the receptacle, execute `close {receptacle}`, then continue to the next candidate
116. **If all exhausted:** Report that the target was not found in any candidate location
12
13## Action Format
14- `go to {receptacle}` -- navigate to a location
15- `open {receptacle}` -- open a closed drawer/cabinet/fridge
16- `close {receptacle}` -- close after checking (state management)
17- `take {object} from {receptacle}` -- pick up the target when found
18
19## Key Rules
20- Search candidates in order; do not skip locations
21- Always close drawers/cabinets after checking if you opened them
22- Once the object is found, immediately stop searching and proceed to the next task phase
23- If "Nothing happened" is returned, verify the receptacle name and retry with the correct identifier
24
25## Example
26
27**Goal:** "find two remotecontrol and put them in armchair."
28
29```
30Thought: I need to find remotecontrol. Candidates: sofa 1, sidetable 1, coffeetable 1. Starting search.
31Action: go to sofa 1
32Observation: 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

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates