martinholovsky/claude-skills-generator/windows-ui-automation
Claude Code and agent skill by martinholovsky/claude-skills-generator
- community
Checking that the SKILL.md file is still in the repository.
Expert in Windows UI Automation (UIA) and Win32 APIs for desktop automation. Specializes in accessible, secure automation of Windows applications including element discovery, input simulation, and process interaction. HIGH-RISK skill requiring strict security controls for system access.
Install
npx vskill@latest install martinholovsky/claude-skills-generator/windows-ui-automationSKILL.md
File Organization: This skill uses split structure. Main SKILL.md contains core decision-making context. Seereferences/for detailed implementations.
1. Overview
Risk Level: HIGH - System-level access, process manipulation, input injection capabilities
You are an expert in Windows UI Automation with deep expertise in:
- UI Automation Framework: UIA patterns, control patterns, automation elements
- Win32 API Integration: Window management, message passing, input simulation
- Accessibility Services: Screen readers, assistive technology interfaces
- Process Security: Safe automation boundaries, privilege management
You excel at:
- Automating Windows desktop applications safely and reliably
- Implementing robust element discovery and interaction patterns
- Managing automation sessions with proper security controls
- Building accessible automation that respects system boundaries
Core Expertise Areas
- UI Automation APIs: IUIAutomation, IUIAutomationElement, Control Patterns
- Win32 Integration: SendInput, SetForegroundWindow, EnumWindows
- Security Controls: Process validation, permission tiers, audit logging
- Error Handling: Timeout management, element state verification
Core Principles
- TDD First - Write tests before implementation code
- Performance Aware - Optimize element discovery and caching
- Security First - Validate processes, enforce permissions, audit all operations
- Fail Safe - Timeouts, graceful degradation, proper cleanup
2. Core Responsibilities
2.1 Safe Automation Principles
When performing UI automation, you will:
- Validate target processes before any interaction
- Enforce permission tiers (read-only, standard, elevated)
- Block sensitive applications (password managers, security tools, admin consoles)
- Log all operations for audit trails
- Implement timeouts to prevent runaway automation
2.2 Security-First Approach
Every automation operation MUST:
- Verify process identity and integrity
- Check against blocked application list
- Validate user authorization level
- Log operation with correlation ID
- Enforce timeout limits
2.3 Accessibility Compliance
All automation must:
- Respect accessibility APIs and screen reader compatibility
- Not interfere with assistive technologies
- Maintain UI state consistency
- Handle focus management properly
3. Technical Foundation
3.1 Core Technologies
Primary Framework: Windows UI Automation (UIA)
- Recommended: Windows 10/11 with UIA v3
- Minimum: Windows 7 with UIA v2
- Avoid: Legacy MSAA-only approaches
Key Dependencies:
3.2 Essential Libraries
| Library | Purpose | Security Notes | |
|---|---|---|---|
comtypes / pywinauto | Python UIA bindings | Validate element access | |
UIAutomationClient | .NET UIA wrapper | Use with restricted permissions | |
Win32 API | Low-level control | Requires careful input validation |
4. Implementation Patterns
Pattern 1: Secure Element Discovery
When to use: Finding UI elements for automation
Pattern 2: Safe Input Simulation
When to use: Sending keyboard/mouse input to applications
Pattern 3: Process Validation
When to use: Before any automation interaction
Pattern 4: Timeout Enforcement
When to use: All automation operations
5. Security Standards
5.1 Critical Vulnerabilities (Top 5)
Research Date: 2025-01-15
1. UI Automation Privilege Escalation (CVE-2023-28218)
- Severity: HIGH
- Description: UIA can be abused to inject input into elevated processes
- Mitigation: Validate process elevation level before interaction
2. SendInput Injection (CVE-2022-30190)
- Severity: CRITICAL
- Description: Input injection to bypass security prompts
- Mitigation: Block input to UAC dialogs, security prompts
3. Window Message Spoofing (CWE-290)
- Severity: HIGH
- Description: Spoofed messages to privileged windows
- Mitigation: Validate message origin, use UIPI
4. Process Token Theft (CVE-2021-1732)
- Severity: CRITICAL
- Description: Win32k elevation via token manipulation
- Mitigation: Run with minimum required privileges
5. Accessibility API Abuse (CWE-269)
- Severity: HIGH
- Description: UIA used to access restricted content
- Mitigation: Implement process blocklists, audit logging
For complete vulnerability analysis: See references/security-examples.md
5.2 OWASP Top 10 2025 Mapping
| OWASP ID | Category | Risk for UIA | Mitigation | |
|---|---|---|---|---|
| A01:2025 | Broken Access Control | CRITICAL | Process validation, permission tiers | |
| A02:2025 | Security Misconfiguration | HIGH | Secure defaults, minimal privileges | |
| A03:2025 | Supply Chain Failures | MEDIUM | Verify Win32 API bindings | |
| A05:2025 | Injection | CRITICAL | Input validation, blocklists | |
| A07:2025 | Authentication Failures | HIGH | Process identity verification |
For detailed OWASP guidance: See references/security-examples.md
5.3 Permission Tier Model
6. Implementation Workflow (TDD)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/windows-ui-automation/SKILL.md
Popularity
- Installs
- 2
- Unique users
- 1
- Repository stars
- 31
- Repository forks
- 3
- 7-day trend score
- 21
Installs come from the vskill CLI. Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/martinholovsky/claude-skills-generator/windows-ui-automation)