跳到正文
Skillpedia
自动化6.4k · #14224

computer-use

它能做什么

它介绍如何使用内置的计算机操作工具,在真实的桌面应用中查看并进行操作。适用于希望 AI 在电脑上的应用中完成任务的人员。

适用场景

  • ✓当用户希望 AI 在桌面程序中填写表单时。
  • ✓当用户希望 AI 在电脑上查找并打开某个特定应用时。
  • ✓当用户希望一步步地自动化桌面应用中的重复性任务时。

技能链接

https://github.com/ThinkInAIXYZ/deepchat/blob/dev/plugins/cua/skills/computer-use/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ThinkInAIXYZ/deepchat/blob/dev/plugins/cua/skills/computer-use/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请打开我的电子表格应用,找到发票标签页,并告诉我最后一行的总额。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能告诉 AI 开始一个会话,通过名称找到应用,打开或复用它,然后读取屏幕并逐步操作,每次操作后都检查结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

computer-use

Use DeepChat's plugin-provided Computer Use tools as the only action surface for this skill. Do not ask the user to install cua-driver, configure an external server, or put anything on PATH for the bundled DeepChat plugin.

Runtime Context

  • Plugin id: ${OWNER_PLUGIN_ID}.
  • Plugin root: ${PLUGIN_ROOT}.
  • Process arch: ${PROCESS_ARCH}.
  • Supported targets: darwin/arm64, darwin/x64, win32/x64, win32/arm64, linux/x64.
  • Unsupported targets: linux/arm64.
  • macOS runtime bundle: packaged builds prefer DeepChat.app/Contents/Helpers/DeepChat Computer Use.app; the plugin-local fallback is ${PLUGIN_ROOT}/runtime/darwin/${PROCESS_ARCH}/DeepChat Computer Use.app.
  • Windows helper binary: ${PLUGIN_ROOT}/runtime/win32/${PROCESS_ARCH}/cua-driver.exe.
  • Linux helper binary: ${PLUGIN_ROOT}/runtime/linux/${PROCESS_ARCH}/cua-driver.

Required Loop

  1. Declare one stable run identity with start_session({ session, capture_scope: "auto" }). Reuse that session value for every state and action call whose advertised schema declares it. Omit cursor_theme during normal session setup.
  2. Resolve the app with list_apps. Match localized names, English names, romanized names, bundle identifiers, executable names, and common abbreviations. Prefer stable identifiers when a result provides them.
  3. Start or reuse the target with launch_app. Use the returned pid when available.
  4. Inspect windows with list_windows({ pid }) when the launch result lacks a usable window.
  5. Snapshot before every UI action with get_window_state({ pid, window_id, session }). Pass include_screenshot: true for the initial view, sparse or ambiguous accessibility trees, pixel actions, and visual verification. Pass include_screenshot: false for a routine cheap re-index when the accessibility target is already unambiguous.
  6. Act with the matching DeepChat tool: click, right_click, double_click, drag, scroll, type_text, press_key, hotkey, set_value, set_window_frame, invoke_menu, or launch_app with URLs/files when supported by the platform. Follow WEB_APPS.md for browser page content.
  7. When an ActionResult-contract tool appends ## CUA action result, read it. Delivery describes dispatch, not effect or task completion. Do not continue as if the action succeeded when effect is partial, unverifiable, suspected_noop, or refused. Legacy lifecycle/app tools without this projection still require postcondition verification.
  8. Verify after each action. Use verify_state for an exact-window postcondition expressible as window existence/bounds or a trusted native element's existence/value/enabled/selected state. Otherwise take a fresh get_window_state, get_browser_state, or get_desktop_state and inspect the relevant visible evidence.
  9. Call end_session({ session }) after the run, including orderly error cleanup.

Prefer a non-empty element_token from the latest get_window_state result for the same pid and window_id. Treat every token as opaque: do not parse, shorten, increment, or synthesize it. Never send element_token: "". When no token is usable, pass both element_index and the exact snapshot_id returned by that same latest window snapshot. A bare element_index is invalid. Omit all element fields for a pixel-coordinate action.

If a local action error begins snapshot_id_required, or an action appends a ## CUA structured refusal whose refusal.code is snapshot_id_required, element_index_required, invalid_snapshot_id, stale_element_token, generation_mismatch, invalid_element_token, or conflicting_element_target, take one fresh get_window_state and retry once with a token or index-plus-snapshot pair entirely from the new result. Never combine fields from different snapshots, reuse a rejected handle, or silently fall back to an older index.

Action Results and Verification

The ## CUA action result projection contains a closed result contract:

  • effect="confirmed" has action-specific evidence, but does not prove the user's whole task is complete.
  • effect="partial" means only part of the requested input was delivered.
  • effect="unverifiable" means the route ran without enough effect evidence.
  • effect="suspected_noop" means observation suggests no useful change.
  • effect="refused" is a failure, even if the outer transport call completed normally.
  • route, `deliv
常见问题

支持哪些电脑?

该技能列出了 x64 架构上的 macOS、Windows 和 Linux,以及 Arm 架构上的 Windows 和 macOS,但不包括 Arm 架构上的 Linux。

需要额外的软件吗?

不需要。该技能说明会使用随附的插件工具,用户无需另外安装任何东西。

它会不经检查就直接操作吗?

该技能要求 AI 在每次操作后先检查屏幕,然后再继续。

详情

作者的原始描述

Drive native desktop apps through DeepChat's built-in Computer Use tools. Use when the user asks to operate, inspect, automate, or perform a GUI task in a real desktop application.

repo: ThinkInAIXYZ/deepchat

热度

GitHub 星标
6.4k
排名
#14224
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能