desktop-control-zh

desktop-control-zh is a skill for Claude Code, Codex from L-LesterYu/OpenClaw-hot-skills-zh. It costs 33 tokens per session (4,254 once invoked), scanned A, original, MIT.

A desktop automation tool for controlling the mouse, keyboard, screen, windows, and clipboard. It can work with exact screen positions, screenshots, image matching, and multiple monitors.

In plain words
What is it for?
Use it to click, drag, type, press shortcuts, take screenshots, find screen elements, inspect or change windows, and read pixel colors.
Why use it?
It helps automate tasks that normally require someone to interact with visible desktop applications. Safety controls can stop or limit unwanted actions.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to click, drag, type, press shortcuts, take screenshots, find screen elements, inspect or change windows, and read pixel colors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/l-lesteryu/openclaw-hot-skills-zh/desktop-control-zh
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add L-LesterYu/OpenClaw-hot-skills-zh --skill desktop-control-zh
Clone the repo
git clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for desktop-control-zh

README.md
[![agentmods](https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/desktop-control-zh/github.svg)](https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/desktop-control-zh)
Your own site
<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/desktop-control-zh"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/desktop-control-zh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for desktop-control-zh

Your own site · 80×15
<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/desktop-control-zh"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/desktop-control-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,254 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.04254
Opus 5 $0.00016 $0.02127
Sonnet 5 $0.00007 $0.00851
Haiku 4.5 $0.00003 $0.00425

Measured 12d ago against content hash 153df09a7ee9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

desktop-control-zh scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__init__.py, ai_agent.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/desktop-control-zh/SKILL.md · 624 lines

How it starts

The opening of the file, as written. The whole thing — 624 lines — stays where its author put it; the contents beside it link to each section on GitHub.

桌面控制技能

OpenClaw 最先进的桌面自动化技能。 提供像素级精确的鼠标控制、闪电般的键盘输入、屏幕截图、窗口管理和剪贴板操作。

🎯 功能特性

鼠标控制

  • 绝对定位 - 移动到精确坐标
  • 相对移动 - 从当前位置移动
  • 平滑移动 - 自然、拟人的鼠标路径
  • 点击类型 - 左键、右键、中键、双击、三击
  • 拖放操作 - 从 A 点拖动到 B 点
  • 滚动 - 垂直和水平滚动
  • 位置追踪 - 获取当前鼠标坐标

键盘控制

  • 文本输入 - 快速、准确的文本输入
  • 快捷键 - 执行键盘快捷键(Ctrl+C、Win+R 等)
  • 特殊按键 - Enter、Tab、Escape、方向键、F 键
  • 组合键 - 多键同时按下
  • 按住与释放 - 手动控制按键状态
  • 输入速度 - 可配置的 WPM(从瞬间到拟人化)

屏幕操作

  • 截图 - 捕获整个屏幕或指定区域
  • 图像识别 - 在屏幕上查找元素(通过 OpenCV)
  • 颜色检测 - 获取指定坐标的像素颜色
  • 多显示器 - 支持多个显示器

窗口管理

  • 窗口列表 - 获取所有打开的窗口
  • 激活窗口 - 将窗口置于前台
  • 窗口信息 - 获取位置、大小、标题
  • 最小化/最大化 - 控制窗口状态

安全特性

  • 故障保护 - 将鼠标移到角落以中止
  • 暂停控制 - 紧急停止机制
  • 批准模式 - 操作前需要确认
  • 边界检查 - 防止超出屏幕的操作
  • 日志记录 - 追踪所有自动化操作

🚀 快速开始

安装

首先,安装所需的依赖:

pip install pyautogui pillow opencv-python pygetwindow

基本使用

from skills.desktop_control import DesktopController

# 初始化控制器
dc = DesktopController(failsafe=True)

# 鼠标操作
dc.move_mouse(500, 300)  # 移动到坐标
dc.click()  # 在当前位置左键点击
dc.click(100, 200, button="right")  # 在指定位置右键点击

# 键盘操作
dc.type_text("Hello from OpenClaw!")
dc.hotkey("ctrl", "c")  # 复制
dc.press("enter")

# 屏幕操作
screenshot = dc.screenshot()
position = dc.get_mouse_position()

📋 完整 API 参考

鼠标函数

move_mouse(x, y, duration=0, smooth=True)

将鼠标移动到绝对屏幕坐标。

参数:

  • x (int): X 坐标(距离左边的像素数)
  • y (int): Y 坐标(距离顶部的像素数)
  • duration (float): 移动时间(秒)(0 = 瞬间,0.5 = 平滑)
  • smooth (bool): 使用贝塞尔曲线进行自然移动

示例:

# 瞬间移动
dc.move_mouse(1000, 500)

# 平滑的 1 秒移动
dc.move_mouse(1000, 500, duration=1.0)
move_relative(x_offset, y_offset, duration=0)

相对于当前位置移动鼠标。

参数:

  • x_offset (int): 水平移动像素(正数 = 向右)
  • y_offset (int): 垂直移动像素(正数 = 向下)
  • duration (float): 移动时间(秒)

示例:

# 向右移动 100px,向下移动 50px
dc.move_relative(100, 50, duration=0.3)
click(x=None, y=None, button='left', clicks=1, interval=0.1)

执行鼠标点击。

Read the full file on GitHub · 624 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 624 lines · 33 tokens per session scan A 153df09a7ee9

Subscribe to this mod's changes

desktop-control-zh is a skill published in the GitHub repository L-LesterYu/OpenClaw-hot-skills-zh (54 stars, last pushed 5mo ago), licensed MIT. It adds 33 tokens to every session and 4,254 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

azure-messaging-webpubsub-java

Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.

microsoft/skills · 43 tokens

google-safe-browsing

Prevent and fix Google Safe Browsing "Dangerous site" flags. Use when launching a public web app, buying/picking a domain, building a login or signup page, or when any site shows a red "Dangerous site" / "Deceptive site" warning in Chrome, Brave, Safari, Firefox, or Edge. Triggers on "dangerous site", "deceptive…

davidondrej/skills · 105 tokens