computer-control
/computer-control
Automates desktop GUI workflows via computer use API with screenshot capture. Use when scripting GUI interactions or recording browser sessions for tutorials.
- Author
- athola ↗
- Repository
- claude-night-market ↗
- Licence
- MIT
- Last repository change
- 01.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 01.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Automates desktop GUI workflows via computer use API with screenshot capture. Use when scripting GUI interactions or recording browser sessions for tutorials.
Original author description
Automates desktop GUI workflows via computer use API with screenshot capture. Use when scripting GUI interactions or recording browser sessions for tutorials.
How it works
- When To Use
- When NOT To Use
- Architecture
- Quick Start
- API Versions
- Available Actions
- Safety
- Environment Requirements
- Prompting Tips
- Exit Criteria
SKILL.md preview
---
name: computer-control
description: Automates desktop GUI workflows via computer use API with screenshot capture. Use when scripting GUI interactions or recording browser sessions for tutorials.
alwaysApply: false
model_hint: standard
---
# Computer Control Skill
Use Claude's Computer Use API to see and control desktop
environments through screenshots and mouse/keyboard actions.
## When To Use
- Automating GUI-based workflows that lack CLI alternatives
- Testing web applications through visual interaction
- Filling forms, navigating menus, or interacting with desktop apps
- Building automation pipelines that need visual verification
## When NOT To Use
- Tasks achievable through CLI or API (no GUI needed)
- Browser automation better served by Playwright or CDP
> **Why this stays opt-in.** Per
> [docs/inclusive-defaults.md][inc] (TRUE-exception
> category 4), Computer Use takes screenshots and
> synthesizes keyboard/mouse input: cross-process side
> effects that must always be explicitly invoked, never
> default-on.
[inc]: ../../../../docs/inclusive-defaults.md
## Architecture
The computer use system has three layers:
1. **Display Toolkit** (`phantom.display`) - executes OS-level
actions via xdotool/scrot on the real or virtual display
2. **Agent Loop** (`phantom.loop`) - manages the conversation
cycle between Claude API and the display toolkit
3. **CLI** (`phantom.cli`) - command-line interface for running
tasks or checking environment readiness
```
User Task
|
v
Agent Loop <----> Claude API (beta)
| |
v v
Display Toolkit tool_use responses
| (click, type, screenshot)
v
OS Commands (xdotool, scrot)
|
v
Display (X11 / Xvfb / WSLg)
```
## Quick Start
### Check environment
```bash
cd plugins/phantom
uv run python -m phantom.cli --check
```
### Run a task
```bash
export ANTHROPIC_API_KEY="sk-ant-..."
uv run python -m phantom.cli "Open Firefox and search for Claude AI"
```
### Use in Python
```python
from phantom.display import DisplayConfig, DisplayToolkit
from phantom.loop import LoopConfig, run_loop
result = run_loop(
task="Take a screenshot of the desktop",
api_key="sk-ant-...",
loop_config=LoopConfig(
model="claude-sonnet-5",
max_iterations=10,
),
display_config=DisplayConfig(width=1920, height=1080),
)
print(f"Done in {result.iterations} iterations")
print(result.final_text)
```
## API Versions
| Model | Tool Version | Beta Flag |
|-------|-------------|-----------|
| Opus 4.6, Sonnet 4.6, Opus 4.5 | `computer_20251124` | `computer-use-2025-11-24` |
| Sonnet 4.5, Haiku 4.5, older | `computer_20250124` | `computer-use-2025-01-24` |
The `resolve_tool_version()` function handles this mapping
automatically based on the model name.
## Available Actions
**All versions:**
- `screenshot` - capture display
- `left_click` - click at `[x, y]`
- `type` - type text string
- `key` - press key combo (e.g., `ctrl+s`)
- `mouse_move` - move cursor
**Enhanced (20250124+):**
- `scroll` - scroll with direction and amount
- `left_click_drag` - drag between coordinates
- `right_click`, `middle_click`, `double_click`, `triple_click`
- `hold_key` - hold key for duration
- `wait` - pause between actions
**Latest (20251124):**
- `zoom` - inspect screen region at full resolution
## Safety
Computer use carries risks. Follow these guidelines:
1. **Use a sandbox**: Run in Docker or a VM, not your main OS
2. **Limit access**: Do not provide login credentials unless
necessary, and never for banking or sensitive services
3. **Set iteration caps**: Always use `max_iterations` to
prevent runaway API costs
4. **Human approval**: For actions with real-world consequences,
add confirmation callbacks via `on_action`
5. **Close sensitive apps**: Claude sees the full screen via
screenshots; close anything private before starting
## Environment Requirements
**Linux (native or WSL2 with WSLg):**
```bash
sudo apt install xdotool scrot xclip
```
**Headless (Docker/CI):**
```bash
# Install Xvfb for virtual display
sudo apt install xvfb xdotool scrot xclip
Xvfb :1 -screen 0 1920x1080x24 &
export DISPLAY=:1
```
## Prompting Tips
1. Be specific about each step of the task
2. Add "After each step, take a screenshot and verify" to
catch mistakes early
3. Use keyboard shortcuts when UI elements are hard to click
4. Provide example screenshots for repeatable workflows
5. Set a system prompt with domain-specific instructions
## Exit Criteria
- [ ] `uv run python -m phantom.cli --check` exits 0 before any
task is launched; if it fails, required OS tools (xdotool,
scrot, xclip) are installed or Xvfb is started before
proceeding
- [ ] `max_iterations` set on every `run_loop()` call; no task
launched without an explicit iteration cap to prevent runaway
API costs
- [ ] Final result includes `result.iterations` count and
`result.final_text` confirming the task outcome; empty
`final_text` treated as failure, not success
- [ ] Sensitive applications (password managers, banking, private
files) closed before task starts; task prompt does not contain
raw credentials
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · athola/claude-night-market | 100 | MIT |
| autohandai/code-cli | 100 | Apache-2.0 |
| DaraBoth/skilljmskill | 98 | MIT |
Database snapshot: 13.11.2026 · package version 16a31f78cbb0 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100computer-use-automation
This skill should be used when the user asks to "build a computer-use agent", "automate a GUI with an AI agent", "when to use computer use vs an API", "make browser automation reliable", or "design screenshot-driven agent actions". - 90computer-use
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. - 100claude-computer-use
Claude computer use is an Anthropic API tool that lets Claude see a desktop through screenshots and operate it with mouse and keyboard. Use when automating GUI workflows, browser automation without CSS selectors, desktop app testing, or any task that requires seeing and… - 90computer
Use when a task needs your computer's desktop, terminal, or browser, or when your owner names it with $computer. Which of its tools to use for which job, and how to act on a screen and check what happened. - 100computer-use
Hand a GUI task on this Mac (click, type, read a window, move through an app) to Codex Computer Use, one bounded subtask at a time, and get back a result the runner has checked against what actually happened. Use when a task needs a desktop app driven or read and no API, CLI, or… - 100computer
Delegate a desktop or browser UI task to a Codex subagent (GPT 6.1 Sol by default) using Computer Use, where it reads the Mac screen and drives apps by clicking, typing, and scrolling. Use when the user wants Codex — or "GPT-5.5" — to operate a GUI app such as Chrome, Slack,…