xdotool

xdotool is a skill for Claude Code, Codex from malue-ai/dazee-small. It costs 24 tokens per session (478 once invoked), scanned B, original, MIT.

A Linux desktop automation tool that controls windows, keyboard input, and mouse actions. It works with X11, the display system used by some Linux desktops.

In plain words
What is it for?
Use it to find, activate, move, resize, minimize, or maximize windows, and to simulate typing, key presses, mouse movement, and clicks.
Why use it?
It removes repetitive manual clicking and typing in supported desktop applications. It can also arrange windows or wait for a window to appear.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find, activate, move, resize, minimize, or maximize windows, and to simulate typing, key presses, mouse movement, and clicks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malue-ai/dazee-small/xdotool
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 malue-ai/dazee-small --skill xdotool
Clone the repo
git clone --depth 1 https://github.com/malue-ai/dazee-small

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 xdotool

README.md
[![agentmods](https://agentmods.dev/badge/skills/malue-ai/dazee-small/xdotool/github.svg)](https://agentmods.dev/skills/malue-ai/dazee-small/xdotool)
Your own site
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/xdotool"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/xdotool/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 xdotool

Your own site · 80×15
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/xdotool"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/xdotool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 478 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00024 $0.00478
Opus 5 $0.00012 $0.00239
Sonnet 5 $0.00005 $0.00096
Haiku 4.5 $0.00002 $0.00048

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

Security

Grade B, and why

xdotool scanned grade B with 1 finding 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 9d ago.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install xdotool
instances/xiaodazi/skills/xdotool/SKILL.md · 90 lines

What it actually says

Linux UI 自动化

使用 xdotool 控制 Linux 桌面窗口和输入。

安装

# Debian/Ubuntu
sudo apt install xdotool

# Fedora
sudo dnf install xdotool

# Arch
sudo pacman -S xdotool

命令参考

窗口管理

# 获取当前活动窗口
xdotool getactivewindow getwindowname

# 按名称查找窗口
xdotool search --name "Firefox"

# 激活窗口
xdotool windowactivate $(xdotool search --name "Firefox" | head -1)

# 最小化/最大化
xdotool windowminimize $(xdotool getactivewindow)

# 移动和调整大小
xdotool windowmove --sync $(xdotool getactivewindow) 100 100
xdotool windowsize --sync $(xdotool getactivewindow) 1200 800

键盘输入

# 输入文本
xdotool type "Hello World"

# 按键
xdotool key Return
xdotool key ctrl+c
xdotool key ctrl+shift+t
xdotool key super

鼠标操作

# 移动鼠标
xdotool mousemove 500 300

# 点击
xdotool click 1  # 左键
xdotool click 3  # 右键

# 移动并点击
xdotool mousemove 500 300 click 1

等待

# 等待窗口出现
xdotool search --sync --name "Save"

注意

  • 仅支持 X11,Wayland 下需要用 ydotool 替代
  • 某些应用可能不响应 xdotool 的键盘输入
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. 9d ago First seen · 90 lines · 24 tokens per session scan B 4681344d8f59

Subscribe to this mod's changes

xdotool is a skill published in the GitHub repository malue-ai/dazee-small (36 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 478 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories