hid-bridge

hid-bridge is a skill for Claude Code, Codex from PageMastr/AIID. It costs 110 tokens per session (1,927 once invoked), scanned A, original, MIT.

A Windows command-line tool that sends keyboard and mouse input to a focused app window and captures screenshots or short GIFs.

In plain words
What is it for?
Use it to focus a Windows window, press keys, type text, move or click the mouse, and record the resulting screen for testing desktop apps and games.
Why use it?
Reading source code does not show whether a desktop app or game actually responds correctly to user actions. It lets an agent operate the running program and inspect what happens.

Skill for Claude CodeCodex

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

Good fit Use it to focus a Windows window, press keys, type text, move or click the mouse, and record the resulting screen for testing desktop apps and games.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pagemastr/aiid/hid-bridge
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 PageMastr/AIID --skill hid-bridge
Clone the repo
git clone --depth 1 https://github.com/PageMastr/AIID

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 hid-bridge

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pagemastr/aiid/hid-bridge"><img src="https://agentmods.dev/badge/skills/pagemastr/aiid/hid-bridge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,927 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.00110 $0.01927
Opus 5 $0.00055 $0.00963
Sonnet 5 $0.00022 $0.00385
Haiku 4.5 $0.00011 $0.00193

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

Security

Grade A, and why

hid-bridge 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 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.

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.

skill/hid-bridge/SKILL.md · 159 lines

How it starts

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

HID Bridge

A single self-contained CLI (hidbridge.exe) that simulates keyboard and mouse input at the Windows SendInput level (the same input-stack layer real HID devices report through) and captures screenshots / short GIFs of a target window. Built so an agent can actually play a game or actually operate an app rather than just reading its source.

Binary: bin\hidbridge.exe (next to this file — self-contained, no .NET install required). Source and build instructions: https://github.com/PageMastr/AIID

Every command prints exactly one JSON line to stdout: {"ok": true/false, ...}. Always check ok before trusting the rest of a script.

Core workflow

  1. Find and focus the target window first. SendInput delivers events to whichever window currently has OS focus — it is not addressed by window handle. Any keyboard/mouse command will go to the wrong place (or nowhere useful) if the target window isn't focused.
    hidbridge.exe window focus <title-or-process-substring>
    
  2. Drive it with key/type/mouse commands.
  3. Look at what happened with screenshot, or capture a short clip with gif. Read the returned path with the Read tool — screenshots and GIFs are real image files, so you can literally see the game/app state, not just infer it from logs.

Re-run window focus if focus may have been lost (e.g. after alt-tabbing, or if a previous test spawned/killed a process).

Command reference

Window discovery

hidbridge.exe window list                      # all visible top-level windows
hidbridge.exe window find <substring>           # first match, no side effects
hidbridge.exe window focus <substring>           # bring to foreground + activate
hidbridge.exe window active                      # what currently has OS focus (debugging)
hidbridge.exe window rect <substring>            # client-area rect in screen coords (debugging)

Matches against both window title and process name, case-insensitive substring. window focus verifies the target actually became the foreground window (ok is false if something else grabbed focus first) — if that happens, just retry the focus call right before the input you're about to send.

Read the full file on GitHub · 159 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. 9d ago First seen · 159 lines · 110 tokens per session scan A 86510141379f

Subscribe to this mod's changes

hid-bridge is a skill published in the GitHub repository PageMastr/AIID (3 stars, last pushed 1mo ago), licensed MIT. It adds 110 tokens to every session and 1,927 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

tests-run

Execute Unity tests (EditMode or PlayMode) and return per-test results. Supports filtering by test assembly, namespace, class, and method. Refreshes the AssetDatabase first; defers execution across domain reloads if scripts changed. Precondition: every open scene must be saved — dirty scenes abort the run.

IvanMurzak/Unity-MCP · 68 tokens

godot-e2e

Write and run E2E (end-to-end) game tests using the godot-e2e framework. Python controls a live Godot game over TCP — Locator-based semantic queries, expect() auto-retry assertions, and engine log capture make failures self-diagnosing. Use this skill whenever you need to: Test actual gameplay: player movement…

valkor-ai/loom · 189 tokens

unity-agent-workflows

Use for AI-assisted Unity work that needs live repo discovery, project-derived routing, runtime-owner proof, runtime-visible output hard stops, runtime numeric proof for repeated visible-output failures, state-step guards, multi-agent scope ownership, modular C#/asmdef safety, UI/scene/visual asset gates, data-first…

hashgraph-online/awesome-codex-plugins · 146 tokens

gdunit-driver

Run gdUnit4 unit tests and parse results into structured output. Use this skill after writing or modifying code to verify correctness via unit tests, when diagnosing test failures, or when writing new test files. Triggers: "run tests", "test fails", "write a test", any gdUnit4/unit test mention. Supports both GDScript…

valkor-ai/loom · 84 tokens

sprite-gen

Generate clean 2D game sprites and animation atlases with a component-row pipeline: base identity, numeric sprite-request SSoT, per-state layout guides, image-gen row strips, chroma-key alpha cleanup, connected-component frame extraction, cell-based atlas composition, QA reports, and runtime manifest framelayout. Its…

aldegad/sprite-gen · 291 tokens