agent-desktop
하는 일
이 스킬은 어시스턴트가 프로그램의 화면 구조를 읽고 버튼, 입력란, 메뉴에 작용해 데스크톱 프로그램을 조작하게 합니다. AI가 사용자를 대신해 앱을 쓰기를 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓데스크톱 앱에서 양식을 채우거나 버튼을 클릭하게 하고 싶을 때.
- ✓프로그램 화면에 무엇이 있는지 읽게 해야 할 때.
- ✓스크린샷을 찍거나, 창을 전환하거나, 앱을 열게 하고 싶을 때.
스킬 링크
https://github.com/NanmiCoder/cc-haha/blob/main/native/agent-desktop/skills/agent-desktop/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“메모 앱을 열고, 'Groceries'라는 제목의 새 메모를 만든 뒤 제 장보기 목록을 입력해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
어시스턴트는 앱의 접근성 트리를 읽고 JSON 결과를 돌려주는 명령줄 도구를 실행합니다. 요소 하나에 작용한 뒤, 그 영역을 다시 읽어 변화를 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
agent-desktop
agent-desktop is a CLI that lets an AI agent observe and operate desktop apps through the OS accessibility tree. It is a tool, not an agent. Every command prints one JSON envelope (ok, data or error). The observe, act and verify loop runs in you.
Shell syntax
Examples use a POSIX shell. In PowerShell, quote every ref ('@s8f3k2p9:e1'), because a bare @token is the splatting operator. Use $env:NAME = 'value' instead of export, and | ConvertFrom-Json instead of $(...) and jq. The Windows skill has the PowerShell forms.
First run
- Run
agent-desktop status. It reports the platform, permissions andsupported_surfaces. - Run
agent-desktop skills get platform. It loads the skill for the OS the binary runs on (macOS, Windows or Linux). - For flags and syntax, run
agent-desktop <command> --help. This skill does not repeat flag lists.
The loop
Use find when you know the role or exact name. Otherwise map the app first and drill into one region.
agent-desktop snapshot --skeleton --app "Notes" -i --compact # shallow map, children_count on cut branches
agent-desktop snapshot --root @s8f3k2p9:e3 -i --compact # drill into one region
agent-desktop click @s8f3k2p9:e12 # act on a qualified ref
agent-desktop snapshot --root @s8f3k2p9:e3 -i --compact # verify: re-read the same region
- A small app needs no skeleton. Take a full
snapshot -i. - Never skeleton a surface (
--surface menu,sheet,alert). A surface is already focused. - An action that opens a menu, sheet or alert lists it in
data.surfaces. Target that overlay next. - After an async step, use
wait(seecommands-system.md). A fixed sleep is a race.
Refs
- Output refs are qualified:
@<snapshot_id>:e<N>, for example@s8f3k2p9:e1. Pass them to later commands as they are. - Refs are valid for one snapshot. After any UI change, re-drill the affected region or take a new snapshot.
- Only addressable elements get refs. Static text and inert containers do not.
STALE_REF: the ref no longer matches the live UI. Take a fresh snapshot and use the new ref.AMBIGUOUS_TARGET: more than one live element matches. Narrow the target withfind --role --name --exactor--root, then use the new ref.SNAPSHOT_NOT_FOUND: the snapshot id expired. Snapshot again.
Delivery and retry
Action results carry data.disposition and errors carry error.disposition, each with delivery and retry. Observation commands such as snapshot have none on success; their errors, and every INVALID_ARGS refusal, carry not_delivered and retry: safe.
- Retry or substitute an action only when
disposition.retryissafe. Onlynot_deliveredis safe. - Any other delivery value means the action may have landed. A repeat can click, type or submit twice, and
togglecan undo itself. - On a result that is not safe, read the live state (
get,is, or a fresh snapshot) and decide from that.details.post_statehelps when present. - Branch on
error.codeanderror.disposition. Message and suggestion text can change. details.retryable: falsemeans waiting cannot change the outcome. Try a different approach.
Headless and headed
Ref actions are headless by default. They use semantic accessibility calls and do not take focus, move the cursor, synthesize keys or use the clipboard. If no semantic path exists, the action fails closed. Use the global --headed flag only when the user explicitly permits physical input, such as double-click, hover, drag, or focus. Never switch to headed mode to recover from a headless failure. Raw coordinates (--xy) never imply focus. Which actions need --headed differs by OS: read the platform skill.
References
Load one only when you need it: agent-desktop skills get desktop <reference>.
| Reference | Open it when |
|---|---|
commands-observation |
You need snapshot, find, get, is, screenshot, list-surfaces semantics, partial trees, or the --root rules |
commands-interaction |
You choose between click, type, set-value, select, toggle, scroll, press and mouse commands, or you debug an action error |
commands-system |
You launch or close apps, manage windows, use the clipboard, wait, batch, sessions, multi-agent cursors, tracing, or load skills |
workflows |
You want worked patterns (forms, menus, dialogs, waiting for a new window, scroll-find, drag) and th |
자주 묻는 질문
도구는 무엇을 돌려주나요?
각 명령은 성공 여부와 데이터 또는 오류를 담은 JSON 결과 하나를 출력합니다.
어시스턴트가 먼저 컴퓨터를 확인하나요?
네. 플랫폼, 권한, 지원되는 기능을 확인하기 위해 상태 명령을 먼저 실행합니다.
PowerShell에서 따옴표가 중요한가요?
네. 요소 참조는 작은따옴표로 감싸야 합니다. 따옴표 없는 @ 기호는 PowerShell에서 특별한 의미를 가지기 때문입니다.
상세 정보
작성자의 원본 설명
Operate desktop applications on macOS, Windows and Linux through native accessibility trees, using the agent-desktop CLI. Use when an AI agent must see or act on a desktop GUI: click buttons, fill forms, read UI state, navigate menus, toggle checkboxes, scroll, drag, type text, press shortcuts, take screenshots, manage windows, use the clipboard, launch or close apps, read notifications. Triggers on: "click button", "fill form", "open app", "read UI", "computer use", "operate desktop", "accessibility tree", "snapshot app", "type into field", "navigate menu", "toggle checkbox", "take screenshot
repo: NanmiCoder/cc-haha
인기도
- GitHub 스타
- 15k
- 순위
- #10917
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-desktop-ffi
15k개발자가 Python, Swift, Node, Go, C++에서 agent-desktop 자동화 라이브러리를 직접 호출하도록 돕습니다. 행동마다 명령줄 도구를 시작하지 않아도 됩니다.
agent-desktop-linux
15kagent-desktop으로 Linux 데스크톱 앱을 제어하는 방법을 에이전트에게 알려 줍니다. X11과 Wayland에서 무엇이 작동하는지, 처음 실행할 때의 흔한 해결법을 포함합니다.
agent-desktop-macos
15k에이전트가 Mac 앱을 자동화하는 방법을 보여 줍니다. 필요한 권한 허용, 메뉴와 대화상자, Chromium이나 Electron 앱 다루기를 포함합니다.
agent-desktop-windows
15k에이전트가 Windows 앱을 자동화하는 방법을 보여 줍니다. 작동하는 것, PowerShell 따옴표, 최소화된 창, 권한이 높은 앱의 한계를 다룹니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.