cua-driver
Fungsinya
Skill ini memandu agent untuk menjalankan aplikasi desktop di macOS, Windows, atau Linux dengan alat driver yang membaca antarmuka aplikasi. Ditujukan untuk orang yang ingin agent AI menyelesaikan tugas di dalam aplikasi sungguhan.
Kapan dipakai
- โSaat Anda meminta agent mengoperasikan atau mengotomatiskan tugas di dalam aplikasi desktop.
- โKetika Anda ingin antarmuka sebuah aplikasi dibaca dan dipakai untuk menyelesaikan tugas beberapa langkah.
- โSaat tugas memerlukan klik dan ketikan di aplikasi yang tidak punya API.
Link skill
https://github.com/QwenLM/qwen-code/blob/main/packages/cua-driver/rust/Skills/cua-driver/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โBuka aplikasi spreadsheet saya, temukan tab total bulanan, dan ekspor ke PDF untuk saya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengambil snapshot antarmuka aplikasi, bertindak pada elemen dari snapshot itu atau pada posisi yang tepat, lalu memeriksa hasilnya dari snapshot baru. Ia mengikuti loop yang sama setiap kali agar tindakannya tidak tidak sinkron.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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;
Pertanyaan umum
Sistem operasi apa yang didukung?
macOS, Windows, dan Linux, dengan catatan khusus platform di file terpisah.
Mengapa ia mengambil snapshot sebelum setiap tindakan?
Tanpa snapshot baru, klik bisa diam-diam mengenai elemen yang salah.
Bisakah ia bekerja di peramban web juga?
Pekerjaan peramban memiliki panduan pendamping sendiri dalam skill yang sama.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 29k
- Peringkat
- #9791
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
codegraph
29kMembantu agent Anda menganalisis kodebase yang sudah diindeks melalui grafik pemanggilan, dependensi, kode mati, titik panas, dan pencarian semantik.
qwen-code-claw
29kMembantu agent Anda menyerahkan tugas coding ke Qwen Code, seperti memahami codebase, memperbaiki bug, merapikan kode, atau membuat proyek baru.
structured-debugging
29kMengajari agent Anda men-debug bug sulit secara bertahap: menyusun hipotesis, menguji, dan menemukan penyebab asli sebelum memperbaiki.
tmux-real-user-testing
29kMembantu agent Anda menguji aplikasi terminal seperti pengguna sungguhan di dalam tmux, dengan log yang mudah dibaca dan cuplikan layar tiap aksi.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.