desktop-control
Advanced desktop automation with mouse, keyboard, and screen control
Skill by badmarsh
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/badmarsh-desktop-control
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
desktop-control- Description
- Advanced desktop automation with mouse, keyboard, and screen control
- License
- MIT
- Instructions
- 621 lines in SKILL.md Β· view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: missing
- body: 621 lines (spec recommends under 500)
Files (9)
- AI_AGENT_GUIDE.md
- QUICK_REFERENCE.md
- SKILL.md
- __init__.py
- _meta.json
- ai_agent.py
- demo.py
- prompt_context.md
- skill.toml
SKILL.md (first lines)
# Desktop Control Skill
**The most advanced desktop automation skill for OpenClaw.** Provides pixel-perfect mouse control, lightning-fast keyboard input, screen capture, window management, and clipboard operations.
## π― Features
### Mouse Control
- β
**Absolute positioning** - Move to exact coordinates
- β
**Relative movement** - Move from current position
- β
**Smooth movement** - Natural, human-like mouse paths
- β
**Click types** - Left, right, middle, double, triple clicks
- β
**Drag & drop** - Drag from point A to point B
- β
**Scroll** - Vertical and horizontal scrolling
- β
**Position tracking** - Get current mouse coordinates
### Keyboard Control
- β
**Text typing** - Fast, accurate text input
- β
**Hotkeys** - Execute keyboard shortcuts (Ctrl+C, Win+R, etc.)
- β
**Special keys** - Enter, Tab, Escape, Arrow keys, F-keys
- β
**Key combinations** - Multi-key press combinations
- β
**Hold & release** - Manual key state control
- β
**Typing speed** - Configurable WPM (instant to human-like)
### Screen Operations
- β
**Screenshot** - Capture entire screen or regions
- β
**Image recognition** - Find elements on screen (via OpenCV)
- β
**Color detection** - Get pixel colors at coordinates
- β
**Multi-monitor** - Support for multiple displays
### Window Management
- β
**Window list** - Get all open windows
- β
**Activate window** - Bring window to front
- β
**Window info** - Get position, size, title
- β
**Minimize/Maximize** - Control window states
### Safety Features
- β
**Failsafe** - Move mouse to corner to abort
- β
**Pause control** - Emergency stop mechanism
- β
**Approval mode** - Require confirmation for actions
- β
**Bounds checking** - Prevent out-of-screen operations
- β
**Logging** - Track all automation actions
---
## π Quick Start
### Installation
First, install required dependencies:
```bash
pip install pyautogui pillow opencv-python pygetwindow
```
### Basic Usage
```python
from skills.desktop_control import DesktopController
# Initialize controller
dc = DesktopController(failsafe=True)
# Mouse operations
dc.move_mouse(500, 300) # Move to coordinates
dc.click() # Left click at current position
dc.click(100, 200, button="right") # Right click at position
# Keyboard operations
dc.type_text("Hello from OpenClaw!")
dc.hotkey("ctrl", "c") # Copy
dc.press("enter")
# Screen operations
screenshot = dc.screenshot()
position = dc.get_mouse_position()
```
---
## π Complete API Reference
### Mouse Functions
#### `move_mouse(x, y, duration=0, smooth=True)`
Move mouse to absolute screen coordinates.
**Parameters:**
- `x` (int): X coordinate (pixels from left)
- `y` (int): Y coordinate (pixels from top)
- `duration` (float): Movement time in seconds (0 = instant, 0.5 = smooth)
- `smooth` (bool): Use bezier curve for natural movement
**Example:**
```python
# Instant movement
dc.move_mouse(1000, 500)
# Smooth 1-second movement
dc.move_mouse(1000, 500, duration=1.0)
```
#### `move_relative(x_offset, y_offset, duration=0)`
Move mouse relative to current position.
**Parameters:**
- `x_offset` (int): Pixels to move horizontally (positive = right)
- `y_offset` (int): Pixels to move vertically (positive = down)
- `duration` (float): Movement time in seconds
**Example:**
```python
# Move 100px right, 50px down
dc.move_relative(100, 50, duration=0.3)
```
#### `click(x=None, y=None, button='left', clicks=1, interval=0.1)`
Perform mouse click.
**Parameters:**From badmarsh/librefang, MIT.
More from badmarsh/librefang
- 0.479score
eric-deep-research-agent
badmarsh
Comprehensive research agent for in-depth investigation.
SkillCFreshness: CClaude Code +9 - 0.479score
agent-phone-call
badmarsh
Agent Phone Call gives every AI agent a phone number and the ability to get things done over the phone β finding contacts, making calls, and completing tasks.
SkillCFreshness: CClaude Code +9 - 0.474score
disarm-framework
badmarsh
DISARM v1.5 Tactics, Techniques, Procedures (TTP) taxonomy for FIMI investigation.
SkillCFreshness: CClaude Code +9 - 0.471score
disarm-skill
badmarsh
Maps disinformation behavioral tactics, techniques, and procedures (TTPs) using the DISARM framework (T0000-series).
SkillCFreshness: CClaude Code +9 - 0.459score
knowledge-digest
badmarsh
Converts textbooks or PDFs into personalized, multimodal interactive learning materials including handwritten notes, quiz webpages, slides, audio courses, andβ¦
SkillCFreshness: CClaude Code +9 - 0.456score
visual_verification
badmarsh
Extracts and verifies claims from visual modalities (images/video).
SkillCFreshness: CClaude Code +9 - 0.254score
cloudcraft
badmarsh
No description from the publisher yet.
SkillCFreshness: CClaude Code +9 - 0.251score
hallucination-audit
badmarsh
No description from the publisher yet.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- May 4, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/badmarsh/librefang
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from badmarsh
- 0.479score
agent-phone-call
badmarsh
Agent Phone Call gives every AI agent a phone number and the ability to get things done over the phone β finding contacts, making calls, and completing tasks.
SkillCFreshness: CClaude Code +9 - 0.479score
eric-deep-research-agent
badmarsh
Comprehensive research agent for in-depth investigation.
SkillCFreshness: CClaude Code +9 - 0.474score
disarm-framework
badmarsh
DISARM v1.5 Tactics, Techniques, Procedures (TTP) taxonomy for FIMI investigation.
SkillCFreshness: CClaude Code +9 - 0.471score
disarm-skill
badmarsh
Maps disinformation behavioral tactics, techniques, and procedures (TTPs) using the DISARM framework (T0000-series).
SkillCFreshness: CClaude Code +9 - 0.459score
knowledge-digest
badmarsh
Converts textbooks or PDFs into personalized, multimodal interactive learning materials including handwritten notes, quiz webpages, slides, audio courses, andβ¦
SkillCFreshness: CClaude Code +9 - 0.456score
visual_verification
badmarsh
Extracts and verifies claims from visual modalities (images/video).
SkillCFreshness: CClaude Code +9
Cite this page
desktop-control skill. Agent Mart. https://agentmart.dev/skills/badmarsh-desktop-control (last updated 2026-10-24)