‹ 首页

alfworld-tool-user

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

Use when the agent needs to apply a tool to a target object in ALFWorld to accomplish an interaction such as cleaning, heating, cooling, or examining. This skill handles locating both the tool and target object, then executing the correct environment action (e.g., `clean`, `heat`, `cool`, `use`) to progress the task.

适合你,如果你需要在ALFWorld模拟环境中用工具完成清洁、加热等操作。

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

怎么用

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

装上后,Claude可以在ALFWorld虚拟环境中使用工具对目标物体执行清洁、加热、冷却等操作,自动完成寻找工具和物体并执行动作。

什么时候触发

当任务需要你在ALFWorld中用工具对物体进行操作时触发,例如清洁、加热、冷却等。

装好后可以这样说
Claude会找到水池并清洁刀。
Claude会拿到土豆并放入微波炉加热。
Claude会执行examine动作查看书。
技能原文 SKILL.md作者撰写 · MIT · 7bb9a48

Skill: Tool User for ALFWorld

When to Use

Trigger this skill when:

  1. A task requires applying a tool to an object (e.g., cleaning a knife with a sinkbasin, heating food with a microwave)
  2. Both the tool and target object are in the agent's possession or within reach
  3. The agent knows which interaction verb to use for the task context
Core Workflow
1. Identify Requirements
  • Parse the task to determine:
  • Target object: The item to be acted upon (e.g., knife 1, potato 2)
  • Required tool: The appliance or instrument needed (e.g., sinkbasin 1, microwave 1)
  • Interaction type: The action verb (clean, heat, cool, use, examine)
2. Locate and Acquire
  • Target object: If not in inventory, navigate to its location and take {object} from {receptacle}
  • Tool: Navigate to the tool's location (tools are typically stationary appliances)
3. Execute Interaction

Apply the tool to the object using the correct action syntax:

| Interaction | Action Command | Example | |-------------|---------------|---------| | Clean | clean {obj} with {tool} | clean knife 1 with sinkbasin 1 | | Heat | heat {obj} with {tool} | heat potato 2 with microwave 1 | | Cool | cool {obj} with {tool} | cool apple 1 with fridge 1 | | Examine | examine {obj} | examine book 3 | | Use | use {tool} | use desklamp 1 |

4. Verify Outcome
  • Check the environment observation after the action
  • A successful interaction changes the object state (e.g., knife 1 becomes clean)
  • If the observation says "Nothing happened," the action was invalid
Error Handling
  • "Nothing happened": Reassess whether the agent is at the correct location and holding the correct object. Verify the action verb matches the task context.
  • Wrong tool: If the tool does not match the interaction type, search for the correct appliance (e.g., use sinkbasin for cleaning, not bathtub).
  • Object not held: The agent must be holding the target object before most interactions. Use take first.
Example

Task: "Clean the knife and put it in the drawer."

> go to countertop 1
On the countertop 1, you see a knife 1, a saltshaker 2.
> take knife 1 from countertop 1
You pick up the knife 1 from the countertop 1.
> go to sinkbasin 1
On the sinkbasin 1, you see nothing.
> clean knife 1 with sinkbasin 1
You clean the knife 1 using the sinkbasin 1.

Result: knife 1 is now clean and ready for the next step (storing).

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

评论

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