跳到正文
cccskills
免费在 GitHub 公开

gui-automation

Operate apps and websites by inspecting screenshots, clicking controls, typing, and dragging. Use it to fill forms, check layouts, and test complete user flows, with recorded actions available for replay and review.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Use when you need to visually interact with a GUI: test buttons, fill forms, verify visual layouts, fuzz web pages, automate user flows, take screenshots, or perform end-to-end QA on any application. Works on cloud VMs, Docker containers, local machines, and sandboxes. Needs the `cua` CLI (curl -fsSL https://cua.ai/install.sh | sh).

集成工具Docker
查看安装方法

适用场景

  • Fill forms and use file upload dialogs
  • Test buttons and complete user flows
  • Check layouts and capture screenshots
  • Test forms with unusual inputs

包含的文件(2)

  • SKILL.md5.8 KB
  • references/command-reference.md6.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

GUI Automation

CUA gives you eyes and hands on a real computer: see the screen, move the mouse, click, type, drag, and manage windows, like a human at the keyboard.

Use this skill for visual interaction that can't be done via shell or API.

Setup

cua --version          # check install; if missing: curl -fsSL https://cua.ai/install.sh | sh

# Connect to target (pick one)
cua do switch my-sandbox                    # any sandbox from `cua sb ls`
cua do switch relay:<machine-id>            # a relay Space from `cua spaces ls`
cua do switch url http://127.0.0.1:3211 --as dev   # a cua-spacesd by URL
cua do-host-consent && cua do switch host   # local machine (one-time consent)

ANTHROPIC_API_KEY is optional. With it, cua do snapshot returns an AI-annotated screen with element coordinates. Without it, use screenshot and read the image yourself.

Workflow

Look → Act → Verify: repeat until done, then share:

cua do screenshot          # look
cua do click 450 280       # act
cua do screenshot          # verify
cua trajectory view        # open the replay for the user

Re-screenshot after every UI change: coordinates go stale when the screen changes.

Scenarios

Click a button

cua do screenshot
cua do click 450 280
cua do screenshot

Fill a form

cua do screenshot
cua do click 400 200 && cua do type "Jane Doe"
cua do key tab            && cua do type "jane@example.com"
cua do key tab            && cua do type "SecureP@ss123"
cua do click 400 500
cua do screenshot

File upload dialog

cua do click 350 400       # "Choose File"
cua do type "/home/user/report.pdf"
cua do key enter
cua do screenshot

Zoom in for precision clicks (host or small targets)

When clicking small or dense UI elements, especially on the host machine, zoom into the target window first. Coordinates become window-relative and screenshots show only that window, giving you higher effective resolution.

cua do zoom "Google Chrome"   # crop to Chrome window; coords are now window-relative
cua do screenshot              # zoomed view, easier to locate small elements
cua do click 112 44            # precise click on a small tab or button
cua do screenshot              # verify
cua do unzoom                  # restore full-screen coords when done
cua do screenshot              # back to full desktop view

Use zoom any time click accuracy is uncertain. unzoom before switching windows or when you need to see the full desktop again.

Drag and drop

cua do window ls               # list open windows
cua do drag 150 300 650 400    # source → destination
cua do screenshot

Fuzz a form

cua do screenshot
cua do click 400 200
cua do type "<script>alert(1)</script>"
cua do key tab && cua do type "'; DROP TABLE users; --"
cua do key tab && cua do type "AAAAAAAAAAAAAAAAAAAAAAA"
cua do click 400 500
cua do screenshot              # check for errors, crashes, unexpected behavior

Trajectory

Every action is auto-recorded to ~/.cua/trajectories/{machine}/{session}/.

cua trajectory view            # open the replay viewer (do this at the end)
cua trajectory ls              # list sessions
cua trajectory clean           # delete sessions
cua do --no-record click 100 200   # disable recording for a single action

Tell the user where the trajectory is (cua trajectory ls prints the path).

Quick Reference

ActionCommand
Connect to targetcua do switch <sandbox>
Screenshotcua do screenshot
AI-annotated screencua do snapshot ["instructions"]
Clickcua do click <x> <y> [left|right|middle]
Double-clickcua do dclick <x> <y>
Type textcua do type "text"
Press keycua do key <key>
Hotkeycua do hotkey <combo> (e.g. ctrl+c)
Scrollcua do scroll <direction> [amount]
Dragcua do drag <x1> <y1> <x2> <y2>
Move cursorcua do move <x> <y>
Shell commandcua do shell "command"
Open URL/filecua do open <url|path>
List windowscua do window ls [app]
Focus windowcua do window focus <id>
Zoom to windowcua do zoom "App Name"
Unzoomcua do unzoom
View trajectorycua trajectory view

Providers

TargetExample
a sandboxcua do switch my-sandbox (see cua sb ls)
a relay Spacecua do switch relay:<machine-id> (cua spaces ls)
a spacesd URLcua do switch url http://host:3211 --as x
this machinecua do switch host

Legacy <provider> <name> pairs (cloud, docker, lume, ...) still work.

See references/command-reference.md for full argument syntax.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Operate native apps on macOS, Windows, and Linux using identified controls, menu paths, or screen coordinates. Target a specific window, verify the result after each action, and consult available recent activity when resuming work.

中文简介正在准备中。当前显示英语简介。

  • Operate a specific app window
  • Click controls and enter text
  • Adjust window positions and sizes
trycua/cua3万2026年10月19日 更新

Create disposable Linux or macOS computers for running code, testing apps, operating desktop interfaces, and browsing websites. Use isolated environments locally or in the Cua cloud, then delete them when the work is complete.

中文简介正在准备中。当前显示英语简介。

  • Run code in an isolated environment
  • Test an app or reproduce an issue
  • Fill web forms and capture page screenshots
trycua/cua3万2026年10月19日 更新

Work in a local or remote computer environment whose screen you can watch. Run commands, transfer files, launch coding agents, move signed-in app sessions, and share the host computer’s network when needed.

中文简介正在准备中。当前显示英语简介。

  • Run tasks in an isolated environment you can watch
  • Transfer files into and out of a Space
  • Launch and monitor coding agents
trycua/cua3万2026年10月19日 更新

Save agent memory and outputs in Cua Volume, shared storage that persists beyond a Space, the working environment. Hand files to the user, read shared references, and check synchronization, version history, and conflicting edits.

中文简介正在准备中。当前显示英语简介。

  • Keep outputs after a working environment ends
  • Save agent memory for later work
  • Deliver files to the user
trycua/cua3万2026年10月19日 更新

jev-use

免费

Build a computer-control loop where Cua Driver observes and acts, while TypeSafe Jev chooses from predefined actions. Validate each choice, execute one action at a time, and verify the result before continuing.

中文简介正在准备中。当前显示英语简介。

  • Build a Jev integration for browser automation
  • Create action candidates for native desktop apps
  • Reject stale or unknown action choices
trycua/cua3万2026年10月19日 更新

Review open GitHub issues, proposals, and pull requests to identify useful maintainer work. Get ranked candidates with evidence, dependencies, and validation needs, then begin work only on an item you explicitly select.

中文简介正在准备中。当前显示英语简介。

  • Choose the next maintenance task
  • Prioritize a backlog for the available work window
  • Find pull requests that need review
trycua/cua3万2026年10月19日 更新

查看 trycua 的全部技能

报告此技能的问题