本文へ移動
cccskills
無料GitHub で公開

gui-automation

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).

インストール方法を見る

含まれるファイル(2)

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

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Drive a native GUI app (macOS, Windows, Linux) via the cua-driver CLI (default) or MCP server; snapshot its accessibility tree, act through snapshot-bound element tokens, native menu paths, exact window geometry, or pixel coordinates, and verify from fresh state. Use when the user asks you to operate, drive, automate, or perform a GUI task in a real application on the host, or to continue, resume, or recall recent Cua activity.

日本語の概要は準備中です。原文の説明を表示しています。

trycua/cua2.9万2026年10月12日 更新

Create, use and clean up cua sandboxes (disposable Linux or macOS computers) locally or in the Cua cloud with the `cua` CLI or the cua SDK, and browse the web inside one. Use when a task needs an isolated machine to run code, test an app, drive a desktop GUI, browse or test a website, fill a web form, take a web page screenshot, or reproduce something without touching the user's own computer.

日本語の概要は準備中です。原文の説明を表示しています。

trycua/cua2.9万2026年10月12日 更新

Work inside cua Spaces through the cua MCP server. A Space is a remote or local computer the user can watch; you can run commands in it, move files in and out, show its desktop or a single window on the user's screen, start coding agents inside it, teleport a signed-in app session into it, and share the host's network with it. Use when the user mentions Spaces, asks you to do work "in a Space", or wants a task isolated but visible.

日本語の概要は準備中です。原文の説明を表示しています。

trycua/cua2.9万2026年10月12日 更新

Use Cua Volume, the one volume every Space and agent of this user shares. Inside a Space it is mounted as a folder (/volume on Linux, ~/Cua Volume on macOS), so any program reads and writes it directly. Use it for anything that must outlive this Space - your memory and outputs in your agent home, shared reference in public/ - and to hand files to the user or to other agents. Use when the user mentions the volume, Cua Volume, shared files, your home or memory, or saving results.

日本語の概要は準備中です。原文の説明を表示しています。

trycua/cua2.9万2026年10月12日 更新

jev-use

無料

Build or adapt a bounded computer-use loop where Cua Driver observes and acts, TypeSafe Jev selects only from application-owned candidate IDs, and the caller validates and verifies every action. Use for the jev-use recipe or similar Jev integrations; do not use it to add model logic or credentials to Cua Driver.

日本語の概要は準備中です。原文の説明を表示しています。

trycua/cua2.9万2026年10月12日 更新

Poll and rank open GitHub issues, RFCs, and pull requests for maintainer work, or start one explicitly selected item. Use when a user asks what to work on, requests backlog priorities, says "poll work," wants actionable issues or pull requests, or says "start

日本語の概要は準備中です。原文の説明を表示しています。

trycua/cua2.9万2026年10月12日 更新

trycua のスキルをすべて見る

このスキルの問題を報告する