본문으로 건너뛰기
Skillpedia
에이전트29k · #9791

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/QwenLM/qwen-code/blob/main/packages/cua-driver/rust/Skills/cua-driver/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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, forbidden open/osascript/cliclick invocations, 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:

  1. 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.
  2. Typed Cua operation for an application or window outcome. Use set_window_frame for exact geometry, invoke_menu for a known native application-menu path, typed browser tools for supported page content, and clipboard tools for clipboard state. Verify with list_windows, get_browser_state, or clipboard_read, respectively.
  3. Background accessibility action. Use a fresh AX/UIA/AT-SPI target.
  4. Background pixel action. Use the pixels from the same state snapshot.
  5. Foreground delivery. Retry only the action that evidence says could not land in the background.
  6. 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:

  1. 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.
  2. For a multi-selection, use the platform modifier (cmd on macOS, ctrl on Windows/Linux). On macOS and Windows, issue that modified click with delivery_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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬