agent-desktop-windows
Skill này làm gì
Cung cấp cho trợ lý hướng dẫn điều khiển ứng dụng desktop Windows qua công cụ agent-desktop. Dành cho người muốn trợ lý đọc và bấm vào chương trình Windows.
Khi nào nên dùng
- ✓Khi bạn muốn trợ lý bấm, gõ hoặc đọc một ứng dụng Windows.
- ✓Khi một lệnh tự động hóa Windows không trả về gì hoặc bỏ sót một cửa sổ.
- ✓Khi bạn cần biết lệnh tự động hóa nào hoạt động trên Windows.
Liên kết skill
https://github.com/NanmiCoder/cc-haha/blob/main/native/agent-desktop/skills/agent-desktop-windows/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể mở Notepad trên máy Windows của tôi, gõ một ghi chú ngắn và lưu lại không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Hướng dẫn giải thích mỗi nhóm lệnh làm gì trên Windows và các vấn đề thường gặp khi chạy lần đầu. Trợ lý dùng cây trợ năng của desktop để tìm điều khiển, thao tác và kiểm tra kết quả.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
agent-desktop-windows
The observe-act loop, ref system, JSON envelope, sessions and tracing are the same on every platform. This file covers only what differs on Windows.
Requires Windows 10 1809+ / Windows Server 2019+ (x64 or ARM64). Run it in the interactive desktop session of the signed-in user. Session 0 (services and SYSTEM tasks), Server Core, the secure desktop (UAC prompts, the sign-in screen), a locked desktop and another user's session are not supported: observation, actions and capture there fail or return nothing.
Capability Table
| Group | Commands | Status on Windows |
|---|---|---|
| Observation | snapshot, find, get, is, screenshot |
Works. Surfaces are window, focused, a Chromium modal as sheet, and an open application menu as menu |
| Surfaces | list-surfaces |
Works. Lists window, focused and sheet per process, plus menu with item_count while a menu is open |
| Shell surfaces | open-system-surface |
Works for start-menu, taskbar, system-tray, system-tray-overflow and action-center, and returns the window snapshot --surface <kind> reads. quick-settings returns PLATFORM_NOT_SUPPORTED naming action-center |
| Ref interaction | click, right-click, type, set-value, clear, select, toggle, check, uncheck, expand, collapse, scroll, scroll-to |
Works, semantic in headless and --headed mode. right-click and type need --headed and return POLICY_DENIED headless |
| Multi-click and focus | double-click, triple-click, focus |
Works with global --headed only |
| Keyboard and mouse | press, hover, drag, mouse-click, mouse-move, mouse-wheel |
Works. Cursor-moving input needs --headed. First Contact covers press --app |
| Held input | key-down, key-up, mouse-down, mouse-up |
Fails closed on every platform with ACTION_NOT_SUPPORTED. A headless mouse-down or mouse-up returns POLICY_DENIED first |
| App and window | launch, close-app, list-windows, list-apps, focus-window, resize-window, move-window, minimize, maximize, restore |
Works. First Contact covers the name launch takes |
| Displays | list-displays |
Works |
| Clipboard | clipboard-get, clipboard-set, clipboard-clear |
Works; typed text and image content |
| Wait | wait |
Works for ms, --element, --window, --text, --menu, --menu-closed, --event and --notification |
| Notifications | list-notifications, dismiss-notification, dismiss-all-notifications, notification-action |
Works over the Action Center. Pass --headed when the center is closed |
| Cursor overlay | cursor-overlay |
Works. enable returns data.rendered: true only after the renderer acknowledges over its pipe. See references/shell-and-overlay.md |
| System | status, permissions, version, batch, skills, session, trace |
Works |
First Contact
- Quote every ref in PowerShell. PowerShell reads a bare
@tokenas its splatting operator and deletes the argument before the binary sees it, soset-value @s8f3k2p9:e1 hifailsINVALID_ARGS. Writeset-value '@s8f3k2p9:e1' hi. cmd.exe and bash need no quoting. - A window behind another window is drivable. A minimized one is not.
Every element of a minimized window reports
offscreenand ref actions fail. Runrestore --app <image>and snapshot again. Do not usefocus-windowby reflex: it steals the user's foreground. - No permission dialog exists.
permissionsreportsautomationasnot_required. Elevation boundaries are the only access control. - Chromium and Electron apps read thin before they settle. Pass a longer
--timeout-mstosnapshotinstead of concluding the tree is empty. - Blocked shortcuts.
alt+f4,win+l,win+d,alt+tab,win+r,win+x,win+e,ctrl+shift+escand their modifier supersets are refused without--force. In combos,cmdandmetaare the Windows key, someta+cis a shell shortcut. Writectrl+cto copy. typeneeds--headed. It is keystroke synthesis throughSendInput, so a strict-headlesstypereturnsPOLICY_DENIED. Useset-value, or pass--headed. It endsdelivered_unverified(verification_scope: "unavailable") when the field exposes no readable Text selection, and can verify when one is readable: confirm with a freshget.press --appwrites to the foreground queue with no per-
Câu hỏi thường gặp
Các phiên bản Windows nào được hỗ trợ?
Hướng dẫn nói Windows 10 phiên bản 1809 trở lên, hoặc Windows Server 2019 trở lên, trên x64 hoặc ARM64.
Vì sao trợ lý có thể thất bại ở một số cửa sổ?
Các màn hình bảo mật như hộp thoại UAC, màn hình đăng nhập và desktop bị khóa không được hỗ trợ, nên tự động hóa ở đó sẽ thất bại.
Trích dẫn có quan trọng trong PowerShell không?
Có. Tham chiếu phần tử phải được đặt trong dấu ngoặc, vì dấu @ trần bị PowerShell hiểu là toán tử.
Chi tiết
Mô tả gốc của tác giả
Windows platform guide for the agent-desktop CLI. Lists per command group what works on Windows and what refuses, the first-contact gotchas (PowerShell ref quoting, minimized windows, headed-only input), and where to find shell surfaces, notifications, the cursor overlay, UIPI elevation, Chromium/Electron settle behavior and troubleshooting. Triggers on: "windows desktop automation", "UIA tree", "automate Windows app", "agent-desktop on Windows", "elevated window input blocked", "E_ACCESSDENIED", or any Windows GUI interaction task.
repo: NanmiCoder/cc-haha
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #10916
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-desktop-ffi
15kGiúp lập trình viên gọi thư viện tự động hóa agent-desktop trực tiếp từ Python, Swift, Node, Go hoặc C++, không cần chạy dòng lệnh cho mỗi thao tác.
agent-desktop-linux
15kDạy agent cách điều khiển ứng dụng desktop Linux bằng agent-desktop, gồm những gì chạy trên X11 và Wayland và cách sửa lỗi chạy lần đầu thường gặp.
agent-desktop-macos
15kChỉ cho agent cách tự động hóa ứng dụng Mac, gồm cấp quyền cần thiết và làm việc với menu, hộp thoại cùng ứng dụng Chromium hoặc Electron.
agent-desktop
15kCho phép agent nhìn và điều khiển ứng dụng desktop trên Mac, Windows hoặc Linux bằng cách đọc cây trợ năng, nhấp, gõ và kiểm tra kết quả.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.