microsoft/powertoys/ui-tests-local-vm
Claude Code and agent skill by microsoft/powertoys
- vendor
Checking that the SKILL.md file is still in the repository.
Run PowerToys UITest.Next suites in persistent Hyper-V VMs over PowerShell Direct. Validate full default and constrained suites on Windows 10 and Windows 11, plus applicable ARM64 guests, then automatically hand implementation tasks to ui-tests-pipeline-ci for commit/push and CI validation. Local green is not end-to-end completion. Use for agentic UI-test iteration, reusable standard-user desktops, payload staging, evidence export, VM customization, clean baselines, or hosts without nested virtualization. Keywords: Hyper-V, local VM, virtual machine, PowerShell Direct, Copy-VMFile, VMBus, checkpoint, unattend, autounattend, ISO, Windows 10 LTSC, Windows 11, ARM64, Windows on ARM, UI tests, UITest.Next, winappcli, TRX, CI handoff.
Install
npx vskill@latest install microsoft/powertoys/ui-tests-local-vmSKILL.md
The same SKILL.md was published earlier as microsoft/powertoys/ui-tests-local-vm.
Local VM UI testing
Run PowerToys .Next UI tests in a persistent, interactive Windows VM while keeping product and test execution off the host. Use this skill as the execution complement to ui-tests-migration. Restore the baseline checkpoint or recreate the guest when clean-profile behavior must be validated.
The guest is a Hyper-V virtual machine. Nothing runs nested, so the same scaffold works on x64 and on Windows on ARM, where nested virtualization is unavailable to any Linux-hosted emulator.
The local correctness gate passes when the full suite is green on Windows 10 and on Windows 11, in two separate VMs. Run Windows 10 Enterprise LTSC 2021 first for the fastest feedback, then run the same unfiltered suite on Windows 11. Differences in the shell, compositor, theming, and timing break tests that contain nothing Windows 11-specific, and those are exactly the failures worth catching locally instead of in CI. On a Windows on ARM host, Windows 11 ARM64 is the only practical guest; run it with -Platform ARM64 and get the Windows 10 half from an x64 host.
Start guests with the default resource profile: 4 vCPUs and 8 GB RAM. Get the target suite fully green before lowering resources with the Constrained profile (1 vCPU and 4 GB RAM).
For create, migrate, or stabilize tasks, complete both profiles and then automatically invoke ui-tests-pipeline-ci: pass its access preflight, commit and push the scoped changes, queue CI, and remain attached until terminal validation. Do not mark the task complete at local green or wait for another user request to publish/run CI. Respect explicit local-only/no-push/no-CI scope and the Microsoft FTE/access gates. Local execution or VM setup alone does not authorize publication. See the pipeline skill for the shared completion and blocker rules.
How the host reaches the guest
| Concern | Mechanism | |
|---|---|---|
| Control channel | PowerShell Direct over VMBus. No listener, port, certificate, or firewall rule in the guest. | |
| Bulk payload | Copy-VMFile over the Guest Service Interface, ~82 MB/s. The session copy is a fallback and stalls on archives near a gigabyte. | |
| Exchange | Guest-local C:\PowerToysUiTestExchange\<name>, mirrored by the controller. The host never shares a folder with the guest. | |
| Host privilege | Hyper-V access: an elevated shell, or an account in the local Hyper-V Administrators group. Creating a guest additionally requires real elevation. | |
| Console | scripts/Get-VmConsoleImage.ps1 renders the framebuffer to PNG, so an agent can read boot and desktop state without VMConnect. |
When to use this skill
Use it when asked to:
- Create or migrate UI tests and iterate repeatedly without reprovisioning Windows each run.
- Validate Explorer, hotkey, WebView2, shell-extension, foreground, or composed-visual behavior in a
real interactive desktop.
- Run tests as a true standard user while retaining a separate administrator control channel.
- Reuse unchanged PowerToys, winappcli, and .NET payloads and refresh only changed archives.
- Keep a reproducible local VM baseline with optional .NET 10, WebView2, diagnostics, or
msvsmon. - Collect durable
status.json, TRX, transcripts, logs, screenshots, and failure attachments. - Compare revisions in one stable VM before confirming the result from a restored checkpoint.
Do not treat a persistent VM as proof of clean-profile behavior. Caches, registrations, settings, and first-run state survive between runs. Restore the baseline checkpoint or recreate the VM when those are the behavior under test.
Relationship to other UI-test skills
| Skill | Owns | |
|---|---|---|
ui-tests-migration | Test design, project scaffolding, framework APIs, assertions, lifecycle, and CI stability. | |
ui-tests-local-vm | Fast persistent-VM setup, deployment, interactive execution, evidence export, and iteration. | |
ui-tests-pipeline-ci | Required post-local commit/push, access preflight, scoped CI, and terminal sign-off for implementation tasks. |
Do not modify stabilized tests merely to make the local VM green. First prove that the suite executes, produces assertion-bearing TRX, and has a useful success rate. Classify environment-specific failures separately unless the task explicitly asks for stabilization.
Guest OS policy
- Two guests, two full suites. Windows 10 Enterprise LTSC 2021 (build 19044/21H2, newer than the
Windows 10 20H2 baseline) and Windows 11. Both must be fully green before the local gate passes. LTSC is not available through Fido; -Source Fido -Windows 10 automates Microsoft's official mobile-user-agent ISO page and is the practical public default. The public ISO/MCT images are too old for .NET 10 CET, so Setup Dynamic Update must bring Win10 to 1904x.5007+ before the baseline. Use licensed Microsoft subscription media for LTSC when available, and always record the edition, ISO hash, and installed full build (references/setup.md §3).
- Windows 10 runs first: it is the faster loop and surfaces most defects. Windows 11 then runs the
same suite, unfiltered - not only the tests that look Windows 11-specific. A test with no Windows 11 content can still fail there, which is the whole reason for the second pass.
- Narrow filters belong to iteration and diagnosis. They are never the evidence for the Windows 11
pass.
- Give each OS its own VM name,
vm.config.psd1, VHDX, checkpoints, and exchange. Never upgrade or
repurpose the Windows 10 guest into the Windows 11 guest; the two baselines must stay independent.
- Surfaces that exist only on Windows 11, such as the tier-1 Explorer context menu, need no special
handling: the full Windows 11 run already covers them.
- On a Windows on ARM host, use a Windows 11 ARM64 guest with
-Platform ARM64. Hyper-V does not
emulate a foreign architecture, so that host cannot supply the Windows 10 x64 pass - run it on an x64 host and report both.
- A Windows 11 host requirement does not make Windows 11 the first guest target.
-Platformis not cosmetic: it flows to the guest as theplatformenvironment variable, names
visual baselines, and marks the run as pipeline-like. Use only x64Win10, x64Win11, or ARM64.
Required reads
Read only what the task needs:
- references/setup.md - host requirements, scaffolding, media acquisition,
unattended guest creation, credentials, standard-user desktop, and checkpoint baselines.
- references/agentic-loop.md - payload contract, controller usage,
focused-to-suite iteration, evidence, verdicts, and reset strategy.
- references/customization.md - persistent image customization,
.NET 10, WebView2, msvsmon, resource profiles, and golden-baseline guidance.
- references/troubleshooting.md - guest creation, PowerShell Direct,
interactive session, scheduled-task, focus, timeout, and export failures.
for any shell-extension module** (context menu, preview/thumbnail handler). Why unsigned CI PR builds cannot register a sparse MSIX (0% on CI), classic (registry-COM, signing-free) vs modern (sparse-MSIX) surfaces, Debug vs Release/NDEBUG gating, runtime detection, and reproducing CI's classic scenario on a local signed VM.
- ui-tests-migration - required whenever test code or framework
behavior is being created, migrated, or stabilized.
Default agentic cycle
The CI continuation applies to implementation tasks; explicit local-only and setup-only tasks stop at their requested local outcome.
Create and maintain this task list:
Quick start
Host setup is a one-time, human-only step: Hyper-V group membership, the DPAPI guest credential, and guest creation all need elevation or a password. Check it before anything else - this needs no elevation and changes nothing:
If it reports IsReady=false, stop and ask the user to run the elevated command it prints (see references/setup.md §0). Otherwise scaffold the VM directory outside the repository:
The scaffold and its shared exchange can live on any volume, including a Dev Drive. Only the VHDX and VM configuration paths, set separately in vm.config.psd1, should point at NTFS.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 29 Sep 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/ui-tests-local-vm/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/microsoft/powertoys/ui-tests-local-vm)