cua-driver
하는 일
macOS, Windows, Linux의 데스크톱 앱을 앱 인터페이스를 읽는 드라이버 도구로 조작하는 방법을 안내합니다. 실제 애플리케이션 안에서 AI 에이전트가 작업을 수행하기를 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓데스크톱 애플리케이션 안의 작업을 에이전트가 조작하거나 자동화하기를 원할 때.
- ✓여러 단계로 된 작업을 끝내기 위해 앱 인터페이스를 읽고 사용하기를 원할 때.
- ✓API가 없는 앱에서 클릭과 입력이 필요한 작업을 할 때.
스킬 링크
https://github.com/QwenLM/qwen-code/blob/main/packages/cua-driver/rust/Skills/cua-driver/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 스프레드시트 앱을 열고, 월별 합계 탭을 찾아 PDF로 내보내 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 앱 인터페이스의 스냅샷을 찍고, 그 스냅샷의 요소나 정확한 위치를 기준으로 동작한 뒤, 새 스냅샷으로 결과를 확인합니다. 동작이 어긋나지 않도록 매번 같은 순서를 따릅니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Qwen Cua Driver
Orchestrates cross-platform app automation via qwen-cua-driver. Whenever
a user asks to drive a native app, follow the loop in this skill
rather than calling tools ad-hoc — the snapshot-before-action
invariant is not optional and silently breaks if you skip it.
Platform-specific reading — read this first
This file is the cross-platform core: snapshot invariant, CLI vs MCP choice, tool surface naming, behavior matrix, canonical loop, pixel-click contract, common failure modes. The platform-specific material (forbidden-list, accessibility tree implementation, launch semantics, click dispatch) lives in companion files in this same directory:
- macOS — read
MACOS.md(no-foreground contract, forbiddenopen/osascript/cliclickinvocations, AXMenuBar navigation, SkyLight pixel-click dispatch). - Windows — read
WINDOWS.md(UIA tree vs AX, UWP / ApplicationFrameHost hosting, layered UIA+PostMessage click chain, Session 0 isolation, Windows-specific focus-steal vectors). - Linux — read
LINUX.md(X11 background input via AT-SPI + XSendEvent (including X11 apps under XWayland)).
Cross-cutting topics also have their own files:
BROWSER.md— exact native-window binding, explicit browser preparation, typed Chromium/Electron page tools, input trust classes, and native fallbacks for browser chrome and unsupported engines.RECORDING.md— session recording +replay_trajectory.
Use whichever combination matches the host. When in doubt, run
qwen-cua-driver doctor — it reports the platform and the right entry
point.
Start with the narrowest semantic route
Before opening or operating an application, name the desired postcondition and use the first applicable route below. Verify the result in the same domain before stopping or advancing:
- Caller-provided headless/background operation for a non-GUI outcome. Prefer an exact application API/SDK, service or database client, CLI, or filesystem operation over imitating a user. This includes batch-safe file moves, renames, copies, directory creation, archive extraction, data conversion, and process inspection. Read the resulting semantic state back; a zero exit status alone is not proof.
- Typed Cua operation for an application or window outcome. Use
set_window_framefor exact geometry,invoke_menufor a known native application-menu path, typed browser tools for supported page content, and clipboard tools for clipboard state. Verify withlist_windows,get_browser_state, orclipboard_read, respectively. - Background accessibility action. Use a fresh AX/UIA/AT-SPI target.
- Background pixel action. Use the pixels from the same state snapshot.
- Foreground delivery. Retry only the action that evidence says could not land in the background.
- Desktop fallback. Select an exact desktop target for that call only. Later calls may return to an exact window target in the same session.
Use Cua Driver when the outcome lives in an application's UI or window state, or when the user explicitly asks to operate that GUI. Once the task crosses that boundary, do not replace Cua's targeted and verified actions with shell scripts that mutate the app UI. A shell is a capability of the calling agent, not of the Cua Driver MCP server; an MCP-only client must not assume one exists.
Filesystem outcomes and GUI fallbacks
When the requested outcome is a filesystem change and the caller has a headless filesystem or command capability, keep it on rung 0. Enumerate the exact source set, decide the destination-conflict policy before changing anything, perform one batch-safe operation, then independently read back both source and destination manifests. Do not open a file manager merely to mimic a move, copy, or rename that the caller can execute and verify directly.
If the caller has no such capability, use the file manager as a GUI fallback and keep each claim narrow:
- After entering an inline rename and setting its value, commit it with the platform's confirmation key, then take a fresh snapshot. Value readback from the inline editor proves only that the editor changed; it does not prove the filesystem rename committed.
- For a multi-selection, use the platform modifier (
cmdon macOS,ctrlon Windows/Linux). On macOS and Windows, issue that modified click withdelivery_mode:"foreground"so the target observes physical modifier state;
자주 묻는 질문
어떤 운영체제를 지원하나요?
macOS, Windows, Linux를 지원하며, 플랫폼별 참고 사항은 별도 파일에 있습니다.
동작 전에 왜 스냅샷을 찍나요?
최신 스냅샷이 없으면 클릭이 잘못된 요소에 조용히 닿을 수 있기 때문입니다.
웹 브라우저에서도 작동하나요?
브라우저 작업을 위한 안내가 같은 스킬 안에 별도로 있습니다.
상세 정보
작성자의 원본 설명
Drive a native GUI app (macOS, Windows, Linux) via the Qwen 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.
repo: QwenLM/qwen-code
인기도
- GitHub 스타
- 29k
- 순위
- #9791
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
codegraph
29k에이전트가 색인된 코드베이스를 호출 그래프, 의존성, 죽은 코드, 핫스팟, 의미 검색으로 분석하도록 돕습니다.
qwen-code-claw
29k에이전트가 코드베이스 이해, 버그 수정, 리팩터링, 새 프로젝트 생성 같은 코딩 작업을 Qwen Code에 맡기도록 돕습니다.
structured-debugging
29k에이전트가 어려운 버그를 디버깅하는 단계별 방법을 가르칩니다. 가설을 세우고, 대상 확인을 추가하고, 시험해서 실제 원인을 찾은 뒤 고칩니다.
tmux-real-user-testing
29k에이전트가 tmux 안에서 실제 사용자처럼 터미널 앱을 테스트하고, 각 동작마다 화면 캡처가 담긴 읽기 쉬운 로그를 저장하도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.