robotgo

robotgo is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 56 tokens per session (4,328 once invoked), scanned B, original, MIT.

A Go library for controlling desktop computers through the mouse, keyboard, screen, windows, and global hotkeys. It also supports screenshots and finding visual elements on the screen.

In plain words
What is it for?
It helps build cross-platform desktop automation and RPA tools for clicking, typing, reading screen content, capturing images, recognizing UI elements, and reacting to hotkeys.
Why use it?
It removes the need to perform repetitive desktop actions manually when an application has no suitable API.

Skill for Claude CodeCodex

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

Good fit It helps build cross-platform desktop automation and RPA tools for clicking, typing, reading screen content, capturing images, recognizing UI elements, and reacting to hotkeys.

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

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 robotgo

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/robotgo"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/robotgo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,328 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 76
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 77
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 78
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 79
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 80
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 84
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
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.00056 $0.04328
Opus 5 $0.00028 $0.02164
Sonnet 5 $0.00011 $0.00866
Haiku 4.5 $0.00006 $0.00433

Measured 7d ago against content hash 546ef79712d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

robotgo 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 7d 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 gcc libc6-dev
others/robotgo/SKILL.md · 459 lines

How it starts

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

项目地址: https://github.com/go-vgo/robotgo

官方文档: https://github.com/go-vgo/robotgo#documentation

许可证: Apache-2.0 | 最新版本: 参见 GitHub Releases默认分支: master

生态子库:

子库 仓库 用途
gohook robotn/gohook 全局键盘/鼠标事件监听
bitmap vcaesar/bitmap 位图操作与图像查找
gcv vcaesar/gcv OpenCV 图像识别
imgo vcaesar/imgo 图像读写与格式转换
adb vcaesar/adb Android adb 封装(移动端自动化)

概述

RobotGo 是 Go 生态中最成熟的桌面自动化库(GitHub 10.8k+ Star),核心能力覆盖 RPA 全链路:

能力域 主要 API
鼠标控制 Move、MoveSmooth、MoveRelative、Click、Toggle、DragSmooth、Scroll、ScrollDir
键盘控制 Type、KeyTap、KeyToggle、UnicodeType、WriteAll、ReadAll
屏幕读取 GetScreenSize、GetPixelColor、DisplaysNum、GetDisplayBounds、Scale
截图/图像 CaptureScreen、CaptureImg、SaveCapture、Save、SaveJpeg、DecodeImg
位图查找 bitmap.Find、bitmap.FindAll、bitmap.Open、bitmap.Save
进程/窗口 FindIds、Process、PidExists、ActivePid、GetTitle、GetBounds、Kill
全局事件监听 hook.Register、hook.Start、hook.Process、hook.End
OpenCV 识别 gcv.FindImgFile、gcv.FindAllImgFile、gcv.Find、gcv.FindX

v2.0.0-beta1(2026-07)重大变更: 引入 Go 纯后端(purego build tag)替代 CGo 依赖,新增 libei 后端支持。v1.0.2 移除了旧版 FindBitmap / OpenBitmap / SaveBitmap 等位图函数(迁移至 bitmap 子库)。如需旧 API,使用 v0.100.10(最后一个保留旧位图 API 的版本)。


安装

前置条件

  • Go 1.21+(推荐 1.24+)
  • GCC 工具链(Cgo 模式必需)

平台安装

# ── macOS ──
brew install go
xcode-select --install
# 需在「系统设置 → 隐私与安全性」中授予「辅助功能」和「屏幕录制」权限

# ── Windows ──
winget install Golang.go
# GCC 工具链(三选一):
winget install MartinStorsjo.LLVM-MinGW.UCRT   # 推荐:LLVM-MinGW UCRT
# 或 winget install WinLibs.WinLibs-MINGW        # WinLibs GCC
# 或 MSYS2: pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-zlib

# ── Linux (Ubuntu/Debian) ──
sudo apt install gcc libc6-dev
sudo apt install libx11-dev xorg-dev libxtst-dev       # X11
sudo apt install xsel xclip                              # 剪贴板
sudo apt install libpng++-dev                            # 位图
sudo apt install xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev \
     libxkbcommon-x11-dev libxkbcommon-dev              # GoHook

# ── Linux (Fedora) ──
sudo dnf install gcc libXtst-devel xsel xclip libpng-devel \
     libxkbcommon-devel libxkbcommon-x11-devel xkbcomp-devel

Read the full file on GitHub · 459 lines

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. 7d ago First seen · 459 lines · 56 tokens per session scan B 546ef79712d9

Subscribe to this mod's changes

robotgo is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed 2d ago), licensed MIT. It adds 56 tokens to every session and 4,328 once invoked, about $0.0003 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

go-127

What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…

dimetron/pi-go · 177 tokens

bubbletea-testing

Use this skill whenever writing tests for Bubble Tea (charmbracelet/bubbletea) TUI applications in Go. Triggers include any mention of testing Bubble Tea models, teatest, golden file testing for TUIs, testing tea.Cmd or tea.Msg, snapshot testing terminal output, or writing tests for any Go CLI/TUI that uses the Elm…

dimetron/pi-go · 139 tokens

check-linters-before-commit

Before any commit, run linters, vet, tests, and build verification; do not commit until checks pass.

dimetron/pi-go · 30 tokens

test-runner

Run and triage Go tests with correct environment handling; produce compact, actionable failure summaries.

pilinux/gorest · 22 tokens

functions-development

Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…

CrowdStrike/foundry-skills · 195 tokens

test-new-skill

Skill "test-new-skill" from dimetron/pi-go, covering test-new-skill, examples and guidelines.

dimetron/pi-go · 4 tokens