/plugin-windows-mcp:windows-automation-best-practicesfrom plugin-windows-mcp
This skill should be used when the user asks about "Windows automation best practices", "reliable automation", "automation performance", "error handling in automation", "automation workflow design", "Windows MCP tips", "troubleshooting automation", "automation strategy", or needs guidance on designing robust, efficient, and maintainable Windows automation workflows.
Ships in plugin-windows-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill provides principles and patterns for building reliable, efficient, and maintainable Windows automation workflows using Windows MCP tools.
When a task can be accomplished via command line, use the Shell tool instead of GUI automation.
Why: Shell commands are faster, more reliable, and less affected by UI changes.
| Task | GUI Approach (Fragile) | CLI Approach (Preferred) |
|---|---|---|
| Create a folder | File Explorer + right-click + New Folder | Shell("New-Item -ItemType Directory -Path 'C:\\Folder'") |
| Copy files | File Explorer drag-and-drop | Shell("Copy-Item 'source' 'dest'") |
| Check disk space | Open This PC, read labels | Shell("Get-CimInstance Win32_LogicalDisk") |
| Install software | Download + click installer | Shell("winget install AppName") |
Use GUI only when: no CLI alternative exists, visual verification is essential, or the task inherently requires visual interaction.
Every GUI interaction should follow this cycle:
Snapshot to identify the current state and target elementsScreenshot to confirm the action produced the expected resultNever chain multiple actions without verifying intermediate results, especially for critical operations.
Use the cheapest observation tool that provides sufficient information:
Screenshot when only a visual check is needed (fast)Snapshot when element IDs or coordinates are needed (slower)Snapshot(use_dom=True) only when DOM content is specifically required (slowest)Avoid long, arbitrary Wait() calls. Instead:
# Bad: arbitrary long wait
App(launch "Word") -> Wait(5)
# Good: short wait + verification loop
App(launch "Word") -> Wait(1.5) -> Screenshot -> check if loaded
Recommended wait times:
When an action does not produce the expected result:
Snapshot to understand the current stateAction1 -> Verify1 -> Action2 -> Verify2 -> Action3 -> Verify3
Best for critical workflows where each step must succeed.
Snapshot -> identify all targets
MultiSelect or MultiEdit -> batch action
Verify result
Best for repetitive tasks on multiple items.
Source: Scrape/Clipboard/Snapshot -> extract data
Transform: process data
Output: Clipboard/Type/Shell -> deliver results
Best for data extraction and transfer workflows.
Setup: Launch/switch apps -> arrange windows
Work: interact with each app in sequence
Cleanup: close temporary apps, save results
Best for multi-application workflows.
MultiSelect/MultiEdit over repeated Click/TypeScreenshot for verification, Snapshot only when element IDs are neededShortcut("ctrl+s") is faster than navigating File > SaveScreenshot instead of over-waitingSnapshot(use_dom=True) is the most expensive operation| Pitfall | Solution |
|---|---|
| Clicking without Snapshot first | Always Snapshot to get current coordinates |
| Typing into wrong field | Click the target field first to ensure focus |
| Stale coordinates after scroll/resize | Re-Snapshot after any content change |
| Long waits "just in case" | Use short waits + verification |
| Ignoring failed actions | Always verify with Screenshot after actions |
| Using GUI when CLI works | Check if Shell can accomplish the task first |
| Not handling dialogs | Snapshot to detect unexpected popups |
| Hardcoding coordinates | Use Snapshot element IDs when possible |
-Force flagsANONYMIZED_TELEMETRY=false to disable data collectionTool returns no response:
uvx windows-mcp)Click hits wrong target:
App does not launch:
Shell("where appname")Shell command fails:
Snapshot shows no elements:
Wait(1) and retryuse_dom=True for web-based applicationsFor detailed troubleshooting and advanced automation patterns:
references/troubleshooting.md — Comprehensive troubleshooting guide, error recovery patterns, and environment setup verificationWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mustafaakben/plugin-windows-mcp --plugin plugin-windows-mcp7 skills in this plugin
/app-and-window-managementApp and Window ManagementThis skill should be used when the user asks to "launch an application", "open a program", "resize a window", "move a window", "switch between windows", "arrange windows", "minimize or maximize a window", "close an application", "manage desktop layout", or needs to control application windows on Windows using the App tool./screen-interactionScreen Interaction with Windows MCPThis skill should be used when the user asks to "click a button", "type text", "scroll a page", "move the mouse", "press a keyboard shortcut", "interact with GUI elements", "automate mouse clicks", "fill in a text field", "use keyboard shortcuts on Windows", or needs to perform any direct screen interaction using Windows MCP tools./system-operationsWindows System OperationsThis skill should be used when the user asks to "run a PowerShell command", "execute a shell command", "list processes", "kill a process", "modify the registry", "send a notification", "check system info", "manage Windows services", "automate system tasks", or needs to perform system-level operations on Windows using Shell, Process, Registry, or Notification tools./visual-captureVisual Capture and AnalysisThis skill should be used when the user asks to "take a screenshot", "capture the screen", "identify elements on screen", "get a snapshot", "extract DOM content", "find interactive elements", "analyze screen state", "what is on the screen", or needs to observe and analyze the current Windows desktop state using Screenshot or Snapshot tools./web-and-data-operationsWeb and Data OperationsThis skill should be used when the user asks to "scrape a webpage", "extract web content", "read the clipboard", "write to clipboard", "copy and paste", "select multiple files", "batch select items", "fill multiple form fields", "multi-edit", or needs to extract data from web pages, manage clipboard content, or perform bulk selection and input operations on Windows./windows-mcp-overviewWindows MCP OverviewThis skill should be used when the user asks "what Windows MCP tools are available", "how to automate Windows", "which Windows tool should I use", "Windows MCP overview", "list Windows MCP capabilities", "what can Windows MCP do", "get started with Windows automation", or needs guidance on selecting the right Windows-MCP tool for a task.Other plugins' skills for the same job