gui-automation
Skill by trycua
GUI Automation lets an AI assistant see and operate a real computer screen through the cua CLI. It takes screenshots, clicks, types, drags and manages windows. It is built for visual testing and end-to-end QA.
Install gui-automation
Built from the published package, never by AI.
git clone --depth 1 https://github.com/trycua/cua /tmp/cua && mkdir -p ~/.claude/skills && cp -r /tmp/cua/skills/gui-automation ~/.claude/skills/gui-automationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/trycua/cua /tmp/cua && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cua/skills/gui-automation ~/.gemini/antigravity-cli/skills/gui-automationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
GUI Automation is an agent skill that lets an AI assistant see and control a real computer screen. It can take screenshots, move the mouse, click, type, press keys, drag, and manage windows, using the cua CLI. The skill is meant for visual tasks that shell commands or APIs cannot do, such as testing buttons, filling forms, checking layouts, and fuzzing web pages.
The assistant works in a loop: look at the screen, act, then verify with another screenshot. Targets can be a cloud sandbox, a relay Space, a cua-spacesd URL, or the local host after one-time consent. Every action is recorded to a trajectory folder that can be opened in a replay viewer. It suits QA testers and developers who need to automate user flows or run end-to-end checks on any application.
Written from the project's SKILL.md and checked against it.
What it can do
- ScreenshotCaptures the current screen so the assistant can look at the interface.
- Click and double-clickClicks or double-clicks at screen coordinates, with left, right or middle buttons.
- Type and keyTypes text and presses individual keys or hotkeys such as ctrl+c.
- Drag and dropDrags from one coordinate to another, for example to move items between windows.
- Zoom to windowCrops the view to a named app window so small targets are easier to click.
- SnapshotReturns an AI-annotated screen with element coordinates when an Anthropic API key is set.
- Window managementLists open windows and focuses a window by id.
- Trajectory replayRecords each action and opens a replay viewer for the user.
What you need
- cua CLI, installed with curl -fsSL https://cua.ai/install.sh | sh
- A target machine: a sandbox, relay Space, cua-spacesd URL, or the local host
- Optional: ANTHROPIC_API_KEY for AI-annotated snapshots
Try asking
- Fill the signup form on my sandbox and take a screenshot to verify it.
- Test the buttons on the login page and report any that do not respond.
- Zoom into Chrome and click the settings tab, then show me the trajectory.
Good to know
- Click coordinates go stale when the screen changes, so a screenshot is needed after every UI change.
- Local host control requires one-time consent before use.
- Without ANTHROPIC_API_KEY, the assistant must read screenshots itself instead of using snapshots.
Security check
C- Downloads a script from the internet and runs itIn
skills/gui-automation/SKILL.md:curl -fsSL https://cua.ai/install.sh | sh
Checked automatically: skills/gui-automation/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
references/command-reference.md7 KB
Alternatives to gui-automation
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
gui-automation: common questions
Does GUI Automation need an API key?
ANTHROPIC_API_KEY is optional. With it, cua do snapshot returns an AI-annotated screen with element coordinates. Without it, the assistant uses screenshots and reads the image directly.
Where are the action recordings saved?
Every action is auto-recorded to ~/.cua/trajectories/{machine}/{session}/. Running cua trajectory ls prints the path.
Which machines can it control?
The source lists cloud sandboxes, relay Spaces, cua-spacesd URLs, and the local machine. Legacy provider pairs such as cloud, docker and lume still work.
How do I install gui-automation?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gui-automation free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gui-automation safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to gui-automation?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
