File contents Computer Use - AI 自动操作电脑
使用 Simular AI 的 Agent S 框架,让 AI 像人类一样操作电脑 GUI,自动完成复杂任务。
触发条件
用户要求以下任务时触发:
"帮我操作电脑..."
"自动化操作..."
"打开 XX 应用然后..."
"用 computer use 做..."
"帮我点击/输入/填写..."
任何需要 GUI 自动化的任务
使用方法
快速启动
在终端中运行:
~/.claude/skills/computer-use/run.sh
启动后会显示 Query: 提示符,输入你想让 AI 完成的任务,例如:
"打开 Safari 并搜索天气"
"打开系统设置,进入蓝牙设置"
"打开微信,给张三发一条消息"
指定模型
~/.claude/skills/computer-use/run.sh claude-3-5-sonnet-20241022 # 默认
~/.claude/skills/computer-use/run.sh gpt-4o # 使用 GPT-4o
环境配置
已配置好以下 API Key:
ANTHROPIC_API_KEY - 用于 Claude 模型推理
OPENROUTER_API_KEY - 用于 Embedding(通过 OpenRouter 调用 text-embedding-3-small)
虚拟环境路径:/Users/liuyishou/usr/projects/inbox/agent-s-env
首次使用前提
辅助功能权限 :系统设置 > 隐私与安全 > 辅助功能 > 允许终端/Warp
屏幕录制权限 :系统设置 > 隐私与安全 > 屏幕录制 > 允许终端/Warp
自动化权限 :系统设置 > 隐私与安全 > 自动化 > 终端/Warp > System Events
注意事项
Agent S 会控制鼠标和键盘,运行时请勿操作电脑
建议在单显示器环境下使用
每个操作前会弹出确认对话框,点击 OK 继续
任务完成后会弹出 "Task Completed" 提示
工作原理
截取屏幕截图
获取当前 UI 元素树(Accessibility Tree)
Claude 分析界面并生成 pyautogui 代码
执行代码操作鼠标/键盘
循环直到任务完成
参考链接
1 --- 2 name: computer-use 3 description: Computer Use - AI 自动操作电脑 4 --- 5 # Computer Use - AI 自动操作电脑 6 7 使用 Simular AI 的 Agent S 框架,让 AI 像人类一样操作电脑 GUI,自动完成复杂任务。 8 9 ## 触发条件 10 11 用户要求以下任务时触发: 12 - "帮我操作电脑..." 13 - "自动化操作..." 14 - "打开 XX 应用然后..." 15 - "用 computer use 做..." 16 - "帮我点击/输入/填写..." 17 - 任何需要 GUI 自动化的任务 18 19 ## 使用方法 20 21 ### 快速启动 22 23 在终端中运行: 24 ```bash 25 ~/.claude/skills/computer-use/run.sh 26 ``` 27 28 启动后会显示 `Query:` 提示符,输入你想让 AI 完成的任务,例如: 29 - "打开 Safari 并搜索天气" 30 - "打开系统设置,进入蓝牙设置" 31 - "打开微信,给张三发一条消息" 32 33 ### 指定模型 34 35 ```bash 36 ~/.claude/skills/computer-use/run.sh claude-3-5-sonnet-20241022 # 默认 37 ~/.claude/skills/computer-use/run.sh gpt-4o # 使用 GPT-4o 38 ``` 39 40 ## 环境配置 41 42 已配置好以下 API Key: 43 - **ANTHROPIC_API_KEY** - 用于 Claude 模型推理 44 - **OPENROUTER_API_KEY** - 用于 Embedding(通过 OpenRouter 调用 text-embedding-3-small) 45 46 虚拟环境路径:`/Users/liuyishou/usr/projects/inbox/agent-s-env` 47 48 ## 首次使用前提 49 50 1. **辅助功能权限**:系统设置 > 隐私与安全 > 辅助功能 > 允许终端/Warp 51 2. **屏幕录制权限**:系统设置 > 隐私与安全 > 屏幕录制 > 允许终端/Warp 52 3. **自动化权限**:系统设置 > 隐私与安全 > 自动化 > 终端/Warp > System Events 53 54 ## 注意事项 55 56 - Agent S 会控制鼠标和键盘,运行时请勿操作电脑 57 - 建议在单显示器环境下使用 58 - 每个操作前会弹出确认对话框,点击 OK 继续 59 - 任务完成后会弹出 "Task Completed" 提示 60 61 ## 工作原理 62 63 1. 截取屏幕截图 64 2. 获取当前 UI 元素树(Accessibility Tree) 65 3. Claude 分析界面并生成 pyautogui 代码 66 4. 执行代码操作鼠标/键盘 67 5. 循环直到任务完成 68 69 ## 参考链接 70 71 - GitHub: https://github.com/simular-ai/Agent-S 72 - 论文: ICLR 2025
leoyishou/personal-ai-company/tree/main/claude-global/skills/_archived/computer-use commit 8c8a7706c0
Frequently asked questions How do I install the Computer Use skill? Run npx skillmds@latest add leoyishou/computer-use in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Computer Use skill do? Computer Use - AI 自动操作电脑 It is listed under Coding & Dev Tools on SkillMD.
Is Computer Use safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Computer Use? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Computer Use free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Computer Use? leoyishou (@leoyishou) published this skill. Their other Agent Skills are listed on their SkillMD profile.