[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76XYPV4ZW6B8A9407VC9D5Y":3,"skill-same:01M76XYPV4ZW6B8A9407VC9D5Y":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M76XYPV4ZW6B8A9407VC9D5Y","agent-desktop",null,"Desktop automation via native OS accessibility trees using the agent-desktop CLI. Use when an AI agent needs to observe, interact with, or automate desktop applications (click buttons, fill forms, navigate menus, read UI state, toggle checkboxes, scroll, drag, type text, take screenshots, manage windows, use clipboard, manage notifications). Covers 54 commands across observation, interaction, keyboard\u002Fmouse, app lifecycle, notifications (macOS), clipboard, wait, and a `skills` command that prints these bundled docs straight from the binary. Triggers on: \"click button\", \"fill form\", \"open app\", \"read UI\", \"automate desktop\", \"accessibility tree\", \"snapshot app\", \"type into field\", \"navigate menu\", \"toggle checkbox\", \"take screenshot\", \"desktop automation\", \"agent-desktop\", or any desktop GUI interaction task. Supports the macOS Phase 1 adapter, with Windows and Linux planned against the same core contracts.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fagent-desktop\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: agent-desktop\nversion: 0.1.14\ntags: desktop-automation, accessibility, ai-agent, gui-automation, cli\nrequirements:\n  - agent-desktop\ndescription: >\n  Desktop automation via native OS accessibility trees using the agent-desktop CLI.\n  Use when an AI agent needs to observe, interact with, or automate desktop applications\n  (click buttons, fill forms, navigate menus, read UI state, toggle checkboxes, scroll,\n  drag, type text, take screenshots, manage windows, use clipboard, manage notifications).\n  Covers 54 commands across observation, interaction, keyboard\u002Fmouse, app lifecycle,\n  notifications (macOS), clipboard, wait, and a `skills` command that prints these\n  bundled docs straight from the binary.\n  Triggers on: \"click button\", \"fill form\", \"open app\", \"read UI\", \"automate desktop\",\n  \"accessibility tree\", \"snapshot app\", \"type into field\", \"navigate menu\", \"toggle checkbox\",\n  \"take screenshot\", \"desktop automation\", \"agent-desktop\", or any desktop GUI interaction task.\n  Supports the macOS Phase 1 adapter, with Windows and Linux planned against\n  the same core contracts.\n---\n\n# agent-desktop\n\nCLI tool enabling AI agents to observe and control desktop applications via native OS accessibility trees.\n\n**Core principle:** agent-desktop is NOT an AI agent. It is a tool that AI agents invoke. It outputs structured JSON with ref-based element identifiers. The observation-action loop lives in the calling agent.\n\n## Installation\n\n```bash\nnpm install -g agent-desktop\n# or\nbun install -g --trust agent-desktop\n```\n\nRequires macOS 12+ with Accessibility permission granted to your terminal. Screen Recording permission is also required for screenshots.\n\n## Reference Files\n\nDetailed documentation is split into focused reference files. Read them as needed:\n\n| Reference | Contents |\n|-----------|----------|\n| `references\u002Fcommands-observation.md` | snapshot, find, get, is, screenshot, list-surfaces — all flags, output examples |\n| `references\u002Fcommands-interaction.md` | click, type, set-value, select, toggle, scroll, drag, keyboard, mouse — choosing the right command |\n| `references\u002Fcommands-system.md` | launch, close, windows, clipboard, wait, batch, status, permissions, version |\n| `references\u002Fworkflows.md` | 12 common patterns: forms, menus, dialogs, scroll-find, drag-drop, async wait, anti-patterns |\n| `references\u002Fmacos.md` | macOS permissions\u002FTCC, AX API internals, smart activation chain, surfaces, Notification Center, troubleshooting |\n\n## The Observe-Act Loop (Progressive Skeleton Traversal)\n\nUse **progressive skeleton traversal** as the default approach. It reduces token consumption 78-96% for dense apps by exploring the UI in two phases: a shallow skeleton overview, then targeted drill-downs into regions of interest.\n\n```\n1. SKELETON → agent-desktop snapshot --skeleton --app \"App\" -i --compact\n   Parse the overview. Identify the region containing your target.\n   Regions show children_count (e.g., \"Sidebar\" with children_count: 42).\n   Named containers at truncation boundary have refs for drill-down.\n   Keep the returned snapshot_id.\n\n2. DRILL    → agent-desktop snapshot --root @e3 --snapshot \u003Csnapshot_id> -i --compact\n   Expand the target region. Now you see its interactive elements.\n\n3. ACT      → agent-desktop click @e12 --snapshot \u003Csnapshot_id>  (or type, select, toggle...)\n\n4. VERIFY   → agent-desktop snapshot --root @e3 --snapshot \u003Csnapshot_id> -i --compact\n   Re-drill the same region to confirm the state change.\n   Scoped invalidation: only @e3's subtree refs are replaced.\n\n5. REPEAT   → Continue drilling other regions or acting as needed.\n```\n\n**When to skip skeleton and use full snapshot instead:**\n- Simple apps with few elements (Finder, Calculator, TextEdit)\n- You already know the exact element name — use `find` instead\n- Surface snapshots (menus, sheets, alerts) — these are already focused\n\n**When skeleton shines:**\n- Dense Electron apps (Slack, VS Code, Discord, Notion)\n- Any app where full snapshot exceeds ~50 refs\n- Multi-region workflows (sidebar + main content + toolbar)\n\n## Ref System\n\n- Refs assigned depth-first: `@e1`, `@e2`, `@e3`...\n- Only interactive elements get refs: button, textfield, checkbox, link, menuitem, tab, slider, combobox, treeitem, cell\n- In skeleton mode, named\u002Fdescribed containers at truncation boundary also get refs (drill-down targets with empty `available_actions`)\n- Static text, groups, containers remain in tree for context but have no ref\n- Refs are deterministic within a snapshot but NOT stable across snapshots if UI changed\n- Every snapshot returns `snapshot_id`; ref-consuming commands accept `--snapshot \u003Csnapshot_id>`\n- `last_refmap.json` is only a latest-snapshot inspection artifact. The command path uses snapshot-scoped storage.\n- After any action that changes UI, re-drill the affected region or re-snapshot\n- **Scoped invalidation:** re-drilling `--root @e3` only replaces refs from @e3's previous drill — refs from other regions and the skeleton itself are preserved\n\n## JSON Output Contract\n\nEvery command returns a JSON envelope on stdout:\n\n**Success:** `{ \"version\": \"2.0\", \"ok\": true, \"command\": \"snapshot\", \"data\": { ... } }`\n**Error:** `{ \"version\": \"2.0\", \"ok\": false, \"command\": \"click\", \"error\": { \"code\": \"STALE_REF\", \"message\": \"...\", \"suggestion\": \"...\" } }`\n\nExit codes: `0` success, `1` structured error, `2` argument error.\n\n### Error Codes\n\n| Code | Meaning | Recovery |\n|------|---------|----------|\n| `PERM_DENIED` | Accessibility or Screen Recording permission not granted | Grant the named permission in System Settings |\n| `ELEMENT_NOT_FOUND` | Ref cannot be resolved against the live UI | Re-run snapshot, use fresh ref |\n| `APP_NOT_FOUND` | App not running | Launch it first |\n| `ACTION_FAILED` | AX action rejected | Try an explicit alternative command |\n| `ACTION_NOT_SUPPORTED` | Element can't do this | Use different command |\n| `STALE_REF` | Ref from old snapshot | Re-run snapshot |\n| `SNAPSHOT_NOT_FOUND` | Snapshot ID is missing or expired | Run `snapshot` again and use the returned ID |\n| `POLICY_DENIED` | A physical\u002Fheaded path was blocked | Use an explicit mouse\u002Ffocus\u002Fkeyboard command if physical interaction is intended |\n| `WINDOW_NOT_FOUND` | No matching window | Check app name, use list-windows |\n| `PLATFORM_NOT_SUPPORTED` | Adapter method not implemented on this platform | Use a supported platform adapter |\n| `TIMEOUT` | Wait condition not met | Increase --timeout |\n| `INVALID_ARGS` | Bad arguments | Check command syntax |\n| `NOTIFICATION_NOT_FOUND` | Notification index no longer exists | Re-run list-notifications |\n\n## Command Quick Reference (54 commands)\n\n### Observation\n```\nagent-desktop snapshot --skeleton --app \"App\" -i --compact  # Skeleton overview (preferred)\nagent-desktop snapshot --root @e3 -i --compact              # Drill into region\nagent-desktop snapshot --app \"App\" -i                       # Full tree (simple apps)\nagent-desktop snapshot --app \"App\" --surface menu -i        # Surface snapshot\nagent-desktop screenshot --app \"App\" out.png                # PNG screenshot\nagent-desktop find --app \"App\" --role button                # Search elements\nagent-desktop get @e1 --snapshot \u003Csnapshot_id> --property text       # Read element property\nagent-desktop is @e1 --snapshot \u003Csnapshot_id> --property enabled     # Check element state\nagent-desktop list-surfaces --app \"App\"                     # Available surfaces\n```\n\n### Interaction\n```\nagent-desktop click @e5 --snapshot \u003Csnapshot_id> # AX-first click, no cursor move by default\nagent-desktop double-click @e3                  # AXOpen; physical double-click uses mouse-click --count 2\nagent-desktop triple-click @e2                  # Physical triple-click uses mouse-click --count 3\nagent-desktop right-click @e5                   # Right-click; menu returned when verified\nagent-desktop type @e2 --snapshot \u003Csnapshot_id> \"hello\"  # Headless AX text insertion when supported\nagent-desktop set-value @e2 \"new value\"         # Set value directly\nagent-desktop clear @e2                         # Clear element value\nagent-desktop focus @e2                         # Set keyboard focus\nagent-desktop select @e4 \"Option B\"             # Select dropdown\u002Flist option\nagent-desktop toggle @e6                        # Toggle checkbox\u002Fswitch\nagent-desktop check @e6                         # Idempotent check\nagent-desktop uncheck @e6                       # Idempotent uncheck\nagent-desktop expand @e7                        # Expand disclosure\nagent-desktop collapse @e7                      # Collapse disclosure\nagent-desktop scroll @e1 --direction down       # Scroll element\nagent-desktop scroll-to @e8                     # Scroll into view\n```\n\n### Keyboard & Mouse\n```\nagent-desktop press cmd+c                       # Key combo\nagent-desktop press return --app \"App\"          # Targeted key press\nagent-desktop key-down shift                    # Hold key\nagent-desktop key-up shift                      # Release key\nagent-desktop hover @e5                         # Explicit cursor movement\nagent-desktop hover --xy 500,300                # Cursor to coordinates\nagent-desktop drag --from @e1 --to @e5          # Drag between elements\nagent-desktop mouse-click --xy 500,300          # Click at coordinates\nagent-desktop mouse-move --xy 100,200           # Move cursor\nagent-desktop mouse-down --xy 100,200           # Press mouse button\nagent-desktop mouse-up --xy 300,400             # Release mouse button\n```\n\n### App & Window\n```\nagent-desktop launch \"System Settings\"          # Launch and wait\nagent-desktop close-app \"TextEdit\"              # Quit gracefully\nagent-desktop close-app \"TextEdit\" --force      # Force kill\nagent-desktop list-windows --app \"Finder\"       # List windows\nagent-desktop list-apps                         # List running GUI apps\nagent-desktop focus-window --app \"Finder\"       # Bring to front\nagent-desktop resize-window --app \"App\" --width 800 --height 600\nagent-desktop move-window --app \"App\" --x 0 --y 0\nagent-desktop minimize --app \"App\"\nagent-desktop maximize --app \"App\"\nagent-desktop restore --app \"App\"\n```\n\n### Notifications\n```\nagent-desktop list-notifications                # List all notifications\nagent-desktop list-notifications --app \"Slack\"  # Filter by app\nagent-desktop list-notifications --text \"deploy\" --limit 5  # Filter by text\nagent-desktop dismiss-notification 1            # Dismiss by index\nagent-desktop dismiss-all-notifications         # Dismiss all\nagent-desktop dismiss-all-notifications --app \"Slack\"  # Dismiss all from app\nagent-desktop notification-action 1 \"Reply\" --expected-app Slack   # Click action (with NC reorder guard)\n```\n\n### Clipboard\n```\nagent-desktop clipboard-get                     # Read clipboard\nagent-desktop clipboard-set \"text\"              # Write to clipboard\nagent-desktop clipboard-clear                   # Clear clipboard\n```\n\n### Wait\n```\nagent-desktop wait 1000                         # Pause 1 second\nagent-desktop wait --element @e5 --snapshot \u003Csnapshot_id> --timeout 5000 # Wait for element\nagent-desktop wait --window \"Title\"             # Wait for window\nagent-desktop wait --text \"Done\" --app \"App\"    # Wait for text\nagent-desktop wait --menu --app \"App\"           # Wait for menu surface\nagent-desktop wait --menu-closed --app \"App\"    # Wait for menu dismissal\nagent-desktop wait --notification --app \"App\"   # Wait for new notification\n```\n\n### System\n```\nagent-desktop status                            # Health check\nagent-desktop permissions                       # Check permission\nagent-desktop permissions --request             # Trigger permission dialog\nagent-desktop version --json                    # Version info\nagent-desktop batch '[...]' --stop-on-error     # Batch uses the same typed command path as CLI\nagent-desktop skills                            # List bundled skill docs\nagent-desktop skills get desktop --full         # Load this skill + all references\n```\n\n## Key Principles for Agents\n\n1. **Skeleton first, drill second.** Start with `--skeleton -i --compact` for dense apps. Drill into regions with `--root @ref`. Full snapshot only for simple apps.\n2. **Use `-i --compact` flags.** Filters to interactive elements and collapses empty wrappers, minimizing tokens.\n3. **Refs are snapshot-scoped.** Keep `snapshot_id` for deterministic multi-step use; re-drill the affected region after any UI-changing action. Scoped invalidation keeps other refs intact.\n4. **Prefer refs over coordinates.** `click @e5` > `mouse-click --xy 500,300`.\n5. **Use `wait` for async UI.** After launch\u002Fdialog triggers, wait for expected state.\n6. **Check permissions first.** Run `permissions` on first use; screenshots also need Screen Recording.\n7. **Handle errors.** Parse `error.code` and follow `error.suggestion`.\n8. **Use `find` for targeted searches.** Faster than any snapshot when you know role\u002Fname.\n9. **Use surfaces for overlays.** `snapshot --surface menu` for menus, `--surface sheet` for dialogs. Never `--skeleton` for surfaces — they're already focused.\n10. **Batch for performance.** Multiple commands in one invocation.\n11. **Headless by default.** Ref actions use semantic AX paths and block silent focus stealing, cursor movement, keyboard synthesis, and pasteboard insertion. Use explicit `focus`, `press`, `hover`, `drag`, or `mouse-*` commands only when physical\u002Fheaded interaction is intended.\n","# agent-desktop\n\nCLI tool enabling AI agents to observe and control desktop applications via native OS accessibility trees.\n\n**Core principle:** agent-desktop is NOT an AI agent. It is a tool that AI agents invoke. It outputs structured JSON with ref-based element identifiers. The observation-action loop lives in the calling agent.\n\n## Installation\n\n```bash\nnpm install -g agent-desktop\n# or\nbun install -g --trust agent-desktop\n```\n\nRequires macOS 12+ with Accessibility permission granted to your terminal. Screen Recording permission is also required for screenshots.\n\n## Reference Files\n\nDetailed documentation is split into focused reference files. Read them as needed:\n\n| Reference | Contents |\n|-----------|----------|\n| `references\u002Fcommands-observation.md` | snapshot, find, get, is, screenshot, list-surfaces — all flags, output examples |\n| `references\u002Fcommands-interaction.md` | click, type, set-value, select, toggle, scroll, drag, keyboard, mouse — choosing the right command |\n| `references\u002Fcommands-system.md` | launch, close, windows, clipboard, wait, batch, status, permissions, version |\n| `references\u002Fworkflows.md` | 12 common patterns: forms, menus, dialogs, scroll-find, drag-drop, async wait, anti-patterns |\n| `references\u002Fmacos.md` | macOS permissions\u002FTCC, AX API internals, smart activation chain, surfaces, Notification Center, troubleshooting |\n\n## The Observe-Act Loop (Progressive Skeleton Traversal)\n\nUse **progressive skeleton traversal** as the default approach. It reduces token consumption 78-96% for dense apps by exploring the UI in two phases: a shallow skeleton overview, then targeted drill-downs into regions of interest.\n\n```\n1. SKELETON → agent-desktop snapshot --skeleton --app \"App\" -i --compact\n   Parse the overview. Identify the region containing your target.\n   Regions show children_count (e.g., \"Sidebar\" with children_count: 42).\n   Named containers at truncation boundary have refs for drill-down.\n   Keep the returned snapshot_id.\n\n2. DRILL    → agent-desktop snapshot --root @e3 --snapshot \u003Csnapshot_id> -i --compact\n   Expand the target region. Now you see its interactive elements.\n\n3. ACT      → agent-desktop click @e12 --snapshot \u003Csnapshot_id>  (or type, select, toggle...)\n\n4. VERIFY   → agent-desktop snapshot --root @e3 --snapshot \u003Csnapshot_id> -i --compact\n   Re-drill the same region to confirm the state change.\n   Scoped invalidation: only @e3's subtree refs are replaced.\n\n5. REPEAT   → Continue drilling other regions or acting as needed.\n```\n\n**When to skip skeleton and use full snapshot instead:**\n- Simple apps with few elements (Finder, Calculator, TextEdit)\n- You already know the exact element name — use `find` instead\n- Surface snapshots (menus, sheets, alerts) — these are already focused\n\n**When skeleton shines:**\n- Dense Electron apps (Slack, VS Code, Discord, Notion)\n- Any app where full snapshot exceeds ~50 refs\n- Multi-region workflows (sidebar + main content + toolbar)\n\n## Ref System\n\n- Refs assigned depth-first: `@e1`, `@e2`, `@e3`...\n- Only interactive elements get refs: button, textfield, checkbox, link, menuitem, tab, slider, combobox, treeitem, cell\n- In skeleton mode, named\u002Fdescribed containers at truncation boundary also get refs (drill-down targets with empty `available_actions`)\n- Static text, groups, containers remain in tree for context but have no ref\n- Refs are deterministic within a snapshot but NOT stable across snapshots if UI changed\n- Every snapshot returns `snapshot_id`; ref-consuming commands accept `--snapshot \u003Csnapshot_id>`\n- `last_refmap.json` is only a latest-snapshot inspection artifact. The command path uses snapshot-scoped storage.\n- After any action that changes UI, re-drill the affected region or re-snapshot\n- **Scoped invalidation:** re-drilling `--root @e3` only replaces refs from @e3's previous drill — refs from other regions and the skeleton itself are preserved\n\n## JSON Output Contract\n\nEvery command returns a JSON envelope on stdout:\n\n**Success:** `{ \"version\": \"2.0\", \"ok\": true, \"command\": \"snapshot\", \"data\": { ... } }`\n**Error:** `{ \"version\": \"2.0\", \"ok\": false, \"command\": \"click\", \"error\": { \"code\": \"STALE_REF\", \"message\": \"...\", \"suggestion\": \"...\" } }`\n\nExit codes: `0` success, `1` structured error, `2` argument error.\n\n### Error Codes\n\n| Code | Meaning | Recovery |\n|------|---------|----------|\n| `PERM_DENIED` | Accessibility or Screen Recording permission not granted | Grant the named permission in System Settings |\n| `ELEMENT_NOT_FOUND` | Ref cannot be resolved against the live UI | Re-run snapshot, use fresh ref |\n| `APP_NOT_FOUND` | App not running | Launch it first |\n| `ACTION_FAILED` | AX action rejected | Try an explicit alternative command |\n| `ACTION_NOT_SUPPORTED` | Element can't do this | Use different command |\n| `STALE_REF` | Ref from old snapshot | Re-run snapshot |\n| `SNAPSHOT_NOT_FOUND` | Snapshot ID is missing or expired | Run `snapshot` again and use the returned ID |\n| `POLICY_DENIED` | A physical\u002Fheaded path was blocked | Use an explicit mouse\u002Ffocus\u002Fkeyboard command if physical interaction is intended |\n| `WINDOW_NOT_FOUND` | No matching window | Check app name, use list-windows |\n| `PLATFORM_NOT_SUPPORTED` | Adapter method not implemented on this platform | Use a supported platform adapter |\n| `TIMEOUT` | Wait condition not met | Increase --timeout |\n| `INVALID_ARGS` | Bad arguments | Check command syntax |\n| `NOTIFICATION_NOT_FOUND` | Notification index no longer exists | Re-run list-notifications |\n\n## Command Quick Reference (54 commands)\n\n### Observation\n```\nagent-desktop snapshot --skeleton --app \"App\" -i --compact  # Skeleton overview (preferred)\nagent-desktop snapshot --root @e3 -i --compact              # Drill into region\nagent-desktop snapshot --app \"App\" -i                       # Full tree (simple apps)\nagent-desktop snapshot --app \"App\" --surface menu -i        # Surface snapshot\nagent-desktop screenshot --app \"App\" out.png                # PNG screenshot\nagent-desktop find --app \"App\" --role button                # Search elements\nagent-desktop get @e1 --snapshot \u003Csnapshot_id> --property text       # Read element property\nagent-desktop is @e1 --snapshot \u003Csnapshot_id> --property enabled     # Check element state\nagent-desktop list-surfaces --app \"App\"                     # Available surfaces\n```\n\n### Interaction\n```\nagent-desktop click @e5 --snapshot \u003Csnapshot_id> # AX-first click, no cursor move by default\nagent-desktop double-click @e3                  # AXOpen; physical double-click uses mouse-click --count 2\nagent-desktop triple-click @e2                  # Physical triple-click uses mouse-click --count 3\nagent-desktop right-click @e5                   # Right-click; menu returned when verified\nagent-desktop type @e2 --snapshot \u003Csnapshot_id> \"hello\"  # Headless AX text insertion when supported\nagent-desktop set-value @e2 \"new value\"         # Set value directly\nagent-desktop clear @e2                         # Clear element value\nagent-desktop focus @e2                         # Set keyboard focus\nagent-desktop select @e4 \"Option B\"             # Select dropdown\u002Flist option\nagent-desktop toggle @e6                        # Toggle checkbox\u002Fswitch\nagent-desktop check @e6                         # Idempotent check\nagent-desktop uncheck @e6                       # Idempotent uncheck\nagent-desktop expand @e7                        # Expand disclosure\nagent-desktop collapse @e7                      # Collapse disclosure\nagent-desktop scroll @e1 --direction down       # Scroll element\nagent-desktop scroll-to @e8                     # Scroll into view\n```\n\n### Keyboard & Mouse\n```\nagent-desktop press cmd+c                       # Key combo\nagent-desktop press return --app \"App\"          # Targeted key press\nagent-desktop key-down shift                    # Hold key\nagent-desktop key-up shift                      # Release key\nagent-desktop hover @e5                         # Explicit cursor movement\nagent-desktop hover --xy 500,300                # Cursor to coordinates\nagent-desktop drag --from @e1 --to @e5          # Drag between elements\nagent-desktop mouse-click --xy 500,300          # Click at coordinates\nagent-desktop mouse-move --xy 100,200           # Move cursor\nagent-desktop mouse-down --xy 100,200           # Press mouse button\nagent-desktop mouse-up --xy 300,400             # Release mouse button\n```\n\n### App & Window\n```\nagent-desktop launch \"System Settings\"          # Launch and wait\nagent-desktop close-app \"TextEdit\"              # Quit gracefully\nagent-desktop close-app \"TextEdit\" --force      # Force kill\nagent-desktop list-windows --app \"Finder\"       # List windows\nagent-desktop list-apps                         # List running GUI apps\nagent-desktop focus-window --app \"Finder\"       # Bring to front\nagent-desktop resize-window --app \"App\" --width 800 --height 600\nagent-desktop move-window --app \"App\" --x 0 --y 0\nagent-desktop minimize --app \"App\"\nagent-desktop maximize --app \"App\"\nagent-desktop restore --app \"App\"\n```\n\n### Notifications\n```\nagent-desktop list-notifications                # List all notifications\nagent-desktop list-notifications --app \"Slack\"  # Filter by app\nagent-desktop list-notifications --text \"deploy\" --limit 5  # Filter by text\nagent-desktop dismiss-notification 1            # Dismiss by index\nagent-desktop dismiss-all-notifications         # Dismiss all\nagent-desktop dismiss-all-notifications --app \"Slack\"  # Dismiss all from app\nagent-desktop notification-action 1 \"Reply\" --expected-app Slack   # Click action (with NC reorder guard)\n```\n\n### Clipboard\n```\nagent-desktop clipboard-get                     # Read clipboard\nagent-desktop clipboard-set \"text\"              # Write to clipboard\nagent-desktop clipboard-clear                   # Clear clipboard\n```\n\n### Wait\n```\nagent-desktop wait 1000                         # Pause 1 second\nagent-desktop wait --element @e5 --snapshot \u003Csnapshot_id> --timeout 5000 # Wait for element\nagent-desktop wait --window \"Title\"             # Wait for window\nagent-desktop wait --text \"Done\" --app \"App\"    # Wait for text\nagent-desktop wait --menu --app \"App\"           # Wait for menu surface\nagent-desktop wait --menu-closed --app \"App\"    # Wait for menu dismissal\nagent-desktop wait --notification --app \"App\"   # Wait for new notification\n```\n\n### System\n```\nagent-desktop status                            # Health check\nagent-desktop permissions                       # Check permission\nagent-desktop permissions --request             # Trigger permission dialog\nagent-desktop version --json                    # Version info\nagent-desktop batch '[...]' --stop-on-error     # Batch uses the same typed command path as CLI\nagent-desktop skills                            # List bundled skill docs\nagent-desktop skills get desktop --full         # Load this skill + all references\n```\n\n## Key Principles for Agents\n\n1. **Skeleton first, drill second.** Start with `--skeleton -i --compact` for dense apps. Drill into regions with `--root @ref`. Full snapshot only for simple apps.\n2. **Use `-i --compact` flags.** Filters to interactive elements and collapses empty wrappers, minimizing tokens.\n3. **Refs are snapshot-scoped.** Keep `snapshot_id` for deterministic multi-step use; re-drill the affected region after any UI-changing action. Scoped invalidation keeps other refs intact.\n4. **Prefer refs over coordinates.** `click @e5` > `mouse-click --xy 500,300`.\n5. **Use `wait` for async UI.** After launch\u002Fdialog triggers, wait for expected state.\n6. **Check permissions first.** Run `permissions` on first use; screenshots also need Screen Recording.\n7. **Handle errors.** Parse `error.code` and follow `error.suggestion`.\n8. **Use `find` for targeted searches.** Faster than any snapshot when you know role\u002Fname.\n9. **Use surfaces for overlays.** `snapshot --surface menu` for menus, `--surface sheet` for dialogs. Never `--skeleton` for surfaces — they're already focused.\n10. **Batch for performance.** Multiple commands in one invocation.\n11. **Headless by default.** Ref actions use semantic AX paths and block silent focus stealing, cursor movement, keyboard synthesis, and pasteboard insertion. Use explicit `focus`, `press`, `hover`, `drag`, or `mouse-*` commands only when physical\u002Fheaded interaction is intended.\n",{"name":5,"tags":24,"version":25,"description":7,"requirements":26},"desktop-automation, accessibility, ai-agent, gui-automation, cli","0.1.14",[5],"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fa\u002Fagent-desktop",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-desktop",{"tool":42,"command":43},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-desktop",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-desktop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fagent-desktop\u002FSKILL.md",true,[],[51,59,66,73,80,87],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":58},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":58},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":58},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":58},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":58},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":58},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]