Skip to content
Back to skills

Desktop Automator

ASecurity

Enables desktop and GUI automation on Windows

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 16, 2026
ai-agentspythongoshell

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned October 16, 2026

npx -y skills add Osama-Alzahrani-UQU/OmniAgentic --skill desktop-automator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Desktop Automator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Desktop Automator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/osama-alzahrani-uqu-desktop-automator/badge)](https://www.skillsdirectory.com/skills/osama-alzahrani-uqu-desktop-automator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: desktop-automator
description: Enables desktop and GUI automation on Windows
---
# Desktop Automator Skill

You are equipped with the **Desktop Automator** capability, enabling you to inspect the user's desktop, understand UI elements visually, and execute mouse/keyboard interactions safely on Windows.

## Core Interaction Loop (Observe -> Ground -> Act -> Verify)

Always follow this 4-step loop for every desktop interaction:

### 1. Observe (Screen Capture)
Capture the current screen state before taking any action:
```powershell
python C:/Users/goldl/.gemini/config/skills/desktop-automator/scripts/screen_capture.py
```
- The script outputs the path to the saved screenshot (PNG) and screen dimensions in JSON.
- Use `view_file` to view the image. Antigravity natively supports viewing images, allowing you to visually locate buttons, text fields, icons, and menus.

### 2. Ground (Coordinate Calculation)
- Identify the target UI element on the screenshot.
- Note the coordinate `(x, y)` of the center of the element.
- See [dpi_and_coordinates.md](./references/dpi_and_coordinates.md) for handling Windows DPI scaling if the captured image dimensions differ from the logical screen resolution.

### 3. Act (Execute Interaction)
Use `desktop_action.py` to perform the intended action:
- **Click**:
  ```powershell
  python C:/Users/goldl/.gemini/config/skills/desktop-automator/scripts/desktop_action.py click --x <X> --y <Y>
  ```
- **Double Click**:
  ```powershell
  python C:/Users/goldl/.gemini/config/skills/desktop-automator/scripts/desktop_action.py double-click --x <X> --y <Y>
  ```
- **Right Click**:
  ```powershell
  python C:/Users/goldl/.gemini/config/skills/desktop-automator/scripts/desktop_action.py right-click --x <X> --y <Y>
  ```
- **Type Text**:
  ```powershell
  python C:/Users/goldl/.gemini/config/skills/desktop-automator/scripts/desktop_action.py type --text "your text here"
  ```
- **Hotkey**:
  ```powershell
  python C:/Users/goldl/.gemini/config/skills/desktop-automator/scripts/desktop_action.py hotkey --keys "ctrl,s"
  ```
- **Drag & Drop**:
  ```powershell
  python C:/Users/goldl/.gemini/config/skills/desktop-automator/scripts/desktop_action.py drag --start-x <X1> --start-y <Y1> --end-x <X2> --end-y <Y2>
  ```
- **Scroll**:
  ```powershell
  python C:/Users/goldl/.gemini/config/skills/desktop-automator/scripts/desktop_action.py scroll --clicks -300
  ```

### 4. Verify
- Always capture a new screenshot after performing an action to verify that the UI updated as expected.
- If the expected change did not happen, diagnose the cause (e.g., window was not in focus, coordinates slightly off, loading delay) rather than blindly repeating the same action.

---

## freedom & Emergency Protocols

- **PyAutoGUI FailSafe**: Moving the mouse manually to the top-left corner `(0, 0)` will trigger an immediate emergency stop.
- **Sensitive Operations**: Never click confirmation dialogs for destructive actions (e.g. deleting files, formatting, purchasing) without explicit user confirmation.
- Read [freedom_and_failsafe.md](./references/freedom_and_failsafe.md) for complete details.

Files in this skill

  • SKILL.md3.1 KB
  • references/dpi_and_coordinates.md2.3 KB
  • references/safety_and_failsafe.md74 B
  • scripts/desktop_action.py4.7 KB
  • scripts/requirements.txt52 B
  • scripts/screen_capture.py5.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.