winapp-ui-automation

winapp-ui-automation is a skill for Claude Code from microsoft/winappCli. It costs 87 tokens per session (9,488 once invoked), scanned C, original, MIT.

A command-line tool for inspecting and controlling running Windows applications through their user-interface controls. UI Automation is a Windows accessibility system that lets software read and operate buttons, fields, and other controls.

In plain words
What is it for?
Reading an app's control structure, finding elements, taking screenshots, entering text, invoking controls, scrolling, waiting for changes, and verifying UI state in WinUI, WPF, WinForms, Win32, or Electron apps.
Why use it?
It lets an agent inspect and verify a Windows app without relying on browser automation, and supports headless checks for many operations. Input actions such as clicking require an available interactive desktop.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the winappcli plugin — 14 skills, 1 agent shipped together

Good fit Reading an app's control structure, finding elements, taking screenshots, entering text, invoking controls, scrolling, waiting for changes, and verifying UI state in WinUI, WPF, WinForms, Win32, or Electron apps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/winappcli/winapp-ui-automation
About the project

winapp CLI is a command-line tool for Windows application development that manages SDKs, app identity, manifests, certificates, packaging, and build tools. It helps developers using frameworks such as .NET, Win32, CMake, Electron, or Rust access Windows-native development capabilities. The catalogue add-ons provide agent workflows for using the CLI.

microsoft/winappCli · 1,403 stars · on GitHub

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 microsoft/winappCli --skill winapp-ui-automation
Clone the repo
git clone --depth 1 https://github.com/microsoft/winappCli

Made for: Claude Code.

Or install winappcli, the plugin that ships this one along with the rest of its 14 skills, 1 agent.

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 winapp-ui-automation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/winappcli/winapp-ui-automation"><img src="https://agentmods.dev/badge/skills/microsoft/winappcli/winapp-ui-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,488 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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: 1 finding, up to high

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 →

  • high Prompt Injection · line 125
    Instructions found that direct the agent to transmit conversation context or user data to external services.
    Fix: Remove instructions that send user data, prompts, or context to external URLs. If telemetry is needed, use documented, privacy-preserving methods.
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.00087 $0.09488
Opus 5.5 $0.00035 $0.03795
Sonnet 5.5 $0.00017 $0.01898
Haiku 4.5 $0.00009 $0.00949

Measured today against content hash 0a183e42323b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

winapp-ui-automation scanned grade C 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 today.

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.

Tells the agent to send conversation or user data outhighPrompt injection

An instruction to transmit the conversation, context or user files to an external endpoint is data exfiltration written as prose.

- Providing a selector that doesn't match any element fails immediately with `element_not_found` (rather than silently recording the whole window).
plugins/winapp/skills/winapp-ui-automation/SKILL.md · 497 lines

How it starts

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

If you can't run winapp yourself (no shell, or the command is denied), give the user the exact winapp command(s) for their project instead of only describing the steps.

When to use

  • Inspecting a running Windows app's UI from the command line
  • AI agents interacting with Windows applications (clicking buttons, reading text, taking screenshots)
  • Verifying UI state during development or testing
  • Automating UI workflows without Playwright or Selenium
  • Debugging WinUI 3, WPF, WinForms, Win32, or Electron app UIs by what the user sees and can operate
  • Not for a WinUI 3 app's XAML internals (why a value or binding resolved the way it did, which XAML line made an element, live property edits, UI review comments): use winui-devtools

Prerequisites

For WinUI 3 XAML source/tree, bindings or dependency-property diagnosis and edits, use the winui-devtools skill and winapp devtools. It requires an attached target or explicit authorization to inject with --attach; a PID alone is not consent. An AutomationId works as a selector in both tools; generated slugs do not transfer to DevTools. Continue using winapp ui for cross-framework actions, screenshots, waits and accessibility.

To measure WinUI work while driving a scenario, use the winapp-performance skill to bracket UI actions with capture markers.

  • For UIA mode (any app): No setup needed — works with any running Windows app
  • For input-injecting verbs (click, hover, drag, touch, pen, scroll --wheel/--wheel-horizontal, send-keys --via send-input): an unlocked, interactive desktop with the target window foregroundable. On a locked/secure desktop they fail fast with no_interactive_desktop. The UIA-pattern verbs (inspect, search, get-*, wait-for, set-value, invoke, scroll --direction/--to) are headless/locked-session friendly — prefer them in CI.
  • screenshot is not in that group: it always takes an exclusive turn, so it queues behind other UI workflows, and capture can need a usable interactive desktop — the engine restores the target if it is minimized, and falls back to foregrounding it when frame capture is unavailable or --capture-screen is used.
  • --capture-screen needs exactly one window. -w <hwnd> gives it one: that window's screen region, including anything visibly on top of it. If -a matches several top-level or owned windows the command fails with invalid_arguments before capturing; run winapp ui list-windows -a <app> and retry with -w <hwnd>.
  • If other UI workflows may run at the same time, set one workflow id per logical workflow (see below). Nothing breaks without it, but your commands will not be recognized as belonging together.

Read the full file on GitHub · 497 lines

Files

What ships with it

2 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. today Changed · +4 lines 0a183e42323b
  2. 12d ago Changed 0b809e670613
  3. 26d ago Changed · -35 lines 39f3d8ef2090
  4. 1mo ago Changed · +4 lines b57357576879
  5. 1mo ago Changed · +8 lines · +13 tokens per session 0755f9aca3a8
  6. 1mo ago Changed · +15 lines f029a5e8c08c
  7. 1mo ago Changed · +4 lines 137c65400f1c
  8. 1mo ago Changed · +3 lines ed72eede16ef
  9. 1mo ago Changed · +1 lines 97ae9825c942
  10. 1mo ago First seen · 493 lines · 74 tokens per session scan C be35a6cdb9cb

Subscribe to this mod's changes

winapp-ui-automation is a skill published in the GitHub repository microsoft/winappCli (1,403 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 9,488 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (tells the agent to send conversation or user data out). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

winapp-ui-automation compared with skills from other repositories

winapp-ui-automation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
winapp-ui-automationmicrosoft/winappCliSkill1.4ktodayMITC87Claude Code
brand-identityericrisco/rsc-harnessSkill6825d agoMITA83Claude Code, Codex
portpilotm4cd4r4/PortPilotSkill20yesterdayMITA66Claude Code
noteflow-cliyagoid/noteflowSkill113d agoGPL-3.0D70Claude Code, Codex
feishuHmbown/CodeWhaleSkill41kyesterdayMITA33Claude Code, Codex
interviewHmbown/CodeWhaleSkill41kyesterdayMITA40Claude Code, Codex
recipe-create-meet-spacegoogleworkspace/cliSkill33k5d agoApache-2.0A18Claude Code, Codex