← スキル一覧に戻る
name: desktop-ops
description: Operate macOS desktop UI via the desktop-ops CLI using the snapshot/ref/action workflow. Use when an agent needs to read UI state with

desktop-ops
by tmyjoe
⭐ 0🍴 0📅 2026年1月14日
SKILL.md
name: desktop-ops
description: Operate macOS desktop UI via the desktop-ops CLI using the snapshot/ref/action workflow. Use when an agent needs to read UI state with desktop-ops snapshot --json, select refs, and execute click, set-value, focus, press, or run a recipe JSON.
Desktop Ops
Overview
Expose the current macOS UI as a JSON snapshot, then act on stable refs with single-step CLI commands. Keep logic, retries, and decisions in the agent.
Workflow (Snapshot -> Ref -> Action)
- Run
desktop-ops snapshot --json. - Parse the tree; choose a target by
role,name,value,actions, andenabled. - Use only the node
reffor actions. - Re-run
snapshotafter any UI change. - Record the same sequence as a recipe if you need replay.
Ref Rules
- Treat
refas stable only for the same UI state. - If a command returns
NotFoundorNotActionable, re-snapshot and pick a new ref. - Do not guess or synthesize refs.
Command Reference (v1)
Snapshot:
desktop-ops snapshot --json
Actions:
desktop-ops click <ref>
desktop-ops set-value <ref> <text>
desktop-ops focus <ref>
desktop-ops press <key>
Recipe:
desktop-ops run <recipe.json>
Snapshot Shape (minimum fields)
Each node includes:
{
"ref": "n12",
"role": "AXButton",
"name": "Save",
"value": null,
"enabled": true,
"actions": ["click"],
"children": []
}
Assume missing attributes are null.
Recipe Format
Use a JSON array of commands. Execute sequentially; stop on first error. Include snapshot only when you need a fresh state.
[
{ "cmd": "snapshot" },
{ "cmd": "click", "ref": "n12" },
{ "cmd": "set_value", "ref": "n15", "value": "hello" },
{ "cmd": "press", "key": "Enter" }
]
Output and Errors
When --json is set, expect:
{ "success": true, "data": { ... } }
On error:
{ "success": false, "error": "NotFound", "message": "ref n12 not found" }
Handle errors in the agent; do not retry inside desktop-ops.
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です