
Alfworld Device Operator
Operates a device or appliance (like a desklamp, microwave, or fridge) to interact with...
Install
npx skills add zjunlp/SkillNet --skill alfworld-device-operator -g -a claude-code -y- Repository
- zjunlp/SkillNet1.4k
- Category
- Engineering
- Updated
- 22d ago
- License
- MIT
- Context cost
- Lightabout 811 tokens
- Runs scripts
- No, instructions only
What it does
Operates a device or appliance (like a desklamp, microwave, or fridge) to interact with another object. Use when the task requires using a tool on a target item (e.g., "look at laptop under the desklamp", "heat potato with microwave"). Locates both the device and target object, co-locates them, and executes the appropriate use action (toggle, heat, cool, or clean).
Instructions
1. Skill Trigger
Activate this skill when the task goal explicitly requires using a device or appliance to interact with a target object. Common indicators include phrases like:
- "look at [object] under the [device]"
- "heat [object] with [device]"
- "cool [object] with [device]"
- "clean [object] with [device]"
2. Core Execution Flow
Follow this sequence when the skill is triggered:
Phase 1: Locate the Device
- Identify the device from the task description (e.g.,
desklamp,microwave,fridge). - Search common receptacles where such a device is typically found (e.g., desks, sidetables, countertops).
- Use the
go to {recep}action to navigate to and inspect these locations until the device is found. - Note the device's exact name (e.g.,
desklamp 1).
Phase 2: Locate the Target Object
- Identify the target object from the task description (e.g.,
laptop,mug,plate). - Search the environment for this object. It may not be near the device initially.
- Use the
go to {recep}and visual inspection to find the object. - Once found, use
take {obj} from {recep}to pick it up.
Phase 3: Co-locate Object and Device
- Navigate to the receptacle where the target device is located using
go to {recep}. - Ensure you are in the same location as the device before proceeding.
Phase 4: Operate the Device
- Execute the final use action. The specific action is determined by the device-object pair:
- For a
desklampand a viewable object (like alaptop,book), use:toggle {device} {recep}. - For a
microwaveand a heatable object, use:heat {obj} with {device}. - For a
fridgeand a coolable object, use:cool {obj} with {device}. - For a
faucet/spraybottleand a cleanable object, use:clean {obj} with {device}.
- For a
- Action Format: The action must use the exact object and device names discovered during Phases 1 & 2.
