Computer use

From Leoyishou/personal-ai-company · View interactive version

Computer use is an AI agent skill from the GitHub repository Leoyishou/personal-ai-company. 使用 Simular AI 的 Agent S 框架,让 AI 像人类一样操作电脑 GUI,自动完成复杂任务。

How to use this skill

Skill file

Computer Use - AI 自动操作电脑

使用 Simular AI 的 Agent S 框架,让 AI 像人类一样操作电脑 GUI,自动完成复杂任务。

触发条件

用户要求以下任务时触发:

使用方法

快速启动

在终端中运行:

~/.claude/skills/computer-use/run.sh

启动后会显示 Query: 提示符,输入你想让 AI 完成的任务,例如:

指定模型

~/.claude/skills/computer-use/run.sh claude-3-5-sonnet-20241022  # 默认
~/.claude/skills/computer-use/run.sh gpt-4o                       # 使用 GPT-4o

环境配置

已配置好以下 API Key:

虚拟环境路径:/Users/liuyishou/usr/projects/inbox/agent-s-env

首次使用前提

  1. 辅助功能权限:系统设置 > 隐私与安全 > 辅助功能 > 允许终端/Warp
  2. 屏幕录制权限:系统设置 > 隐私与安全 > 屏幕录制 > 允许终端/Warp
  3. 自动化权限:系统设置 > 隐私与安全 > 自动化 > 终端/Warp > System Events

注意事项

工作原理

  1. 截取屏幕截图
  2. 获取当前 UI 元素树(Accessibility Tree)
  3. Claude 分析界面并生成 pyautogui 代码
  4. 执行代码操作鼠标/键盘
  5. 循环直到任务完成

参考链接

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.