‹ 首页

alfworld-device-operator

@zjunlp · 收录于 5 天前 · 上游提交 2 周前

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).

适合你,如果需要在虚拟环境中用设备操作物品

/ 通过 npx 安装 校验哈希
npx oh-my-skill add zjunlp/skillnet/alfworld-device-operator
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- zjunlp/skillnet/alfworld-device-operator
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify zjunlp/skillnet/alfworld-device-operator
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
1112GitHub stars
~887最小装载
~887含声明引用
~1.1K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 7bb9a48 · 表述以原文为准
它做什么

装上这个技能后,Claude 会按步骤操作设备与物体:先找到设备(如台灯),再找到目标物体(如笔记本电脑),把它们放到一起,然后用相应动作(开关、加热、冷却、清洁)完成任务。

什么时候触发

当用户要求用某设备对某物体做操作(比如“用台灯照亮笔记本”、“用微波炉加热土豆”、“用冰箱冷却饮料”)时触发。

装好后可以这样说
会先找到台灯,再找到笔记本并放到台灯下。
会找到微波炉和土豆,然后加热。
会找到冰箱和饮料进行冷却。
技能原文 SKILL.md作者撰写 · MIT · 7bb9a48

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
  1. Identify the device from the task description (e.g., desklamp, microwave, fridge).
  2. Search common receptacles where such a device is typically found (e.g., desks, sidetables, countertops).
  3. Use the go to {recep} action to navigate to and inspect these locations until the device is found.
  4. Note the device's exact name (e.g., desklamp 1).
Phase 2: Locate the Target Object
  1. Identify the target object from the task description (e.g., laptop, mug, plate).
  2. Search the environment for this object. It may not be near the device initially.
  3. Use the go to {recep} and visual inspection to find the object.
  4. Once found, use take {obj} from {recep} to pick it up.
Phase 3: Co-locate Object and Device
  1. Navigate to the receptacle where the target device is located using go to {recep}.
  2. Ensure you are in the same location as the device before proceeding.
Phase 4: Operate the Device
  1. Execute the final use action. The specific action is determined by the device-object pair:
  2. For a desklamp and a viewable object (like a laptop, book), use: toggle {device} {recep}.
  3. For a microwave and a heatable object, use: heat {obj} with {device}.
  4. For a fridge and a coolable object, use: cool {obj} with {device}.
  5. For a faucet/spraybottle and a cleanable object, use: clean {obj} with {device}.
  6. Action Format: The action must use the exact object and device names discovered during Phases 1 & 2.
3. Key Assumptions & Rules
  • Co-location Required: The skill assumes the final action requires the target object and the operating device to be in the same location (on the same receptacle).
  • Device First: Prioritize finding the device before extensively searching for the target object, as the device's location is often a fixed landmark.
  • Invalid Actions: If the environment responds with "Nothing happened," re-evaluate your object/device names and your location. Ensure you are using the correct action verb for the device type.
Example

Scenario: Task is "look at laptop under the desklamp."

Thought: I need to find the desklamp first. It's likely on a sidetable or desk.
Action: go to sidetable 1
Observation: On the sidetable 1, you see a desklamp 1.
Thought: Found the desklamp. Now I need to find the laptop.
Action: go to desk 1
Observation: On the desk 1, you see a laptop 1, a pen 2.
Action: take laptop 1 from desk 1
Observation: You pick up the laptop 1 from the desk 1.
Action: go to sidetable 1
Observation: On the sidetable 1, you see a desklamp 1.
Action: use desklamp 1
Observation: You turn on the desklamp 1.

Result: The laptop is now being examined under the desklamp, completing the task.

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。