[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BBFD592Y8B7YRSXDGWS7J":3,"skill-same:01M69BBFD592Y8B7YRSXDGWS7J":229},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":59,"linkOnly":60,"markdownContent":61,"markdownBody":62,"frontMatter":63,"refName":64,"commitSha":65,"skillDirectory":66,"forksCount":67,"repositoryHtmlUrl":68,"repositoryHomepageUrl":17,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M69BBFD592Y8B7YRSXDGWS7J","ui-tests-local-vm","Hyper-V 虚拟机 UI 测试","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\u002Fpush 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.","通过 PowerShell Direct 在持久化 Hyper-V 虚拟机中运行 PowerToys UITest.Next 测试套件。在 Windows 10 和 Windows 11 上验证完整的默认套件与受限套件，以及适用的 ARM64 客户机，然后自动将实现任务交给 ui-tests-pipeline-ci 进行提交 \u002F 推送和 CI 验证。本地通过不等于端到端完成。适用于智能体驱动的 UI 测试迭代、可复用的标准用户桌面、载荷准备、证据导出、虚拟机定制、干净基线，或不支持嵌套虚拟化的宿主机。关键词：Hyper-V、本地虚拟机、虚拟机、PowerShell Direct、Copy-VMFile、VMBus、检查点、unattend、autounattend、ISO、Windows 10 LTSC、Windows 11、ARM64、Windows on ARM、UI 测试、UITest.Next、winappcli、TRX、CI 交接。","microsoft\u002FPowerToys","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BB0G8W7E0BMJRDE4NW1BD",140979,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58],"tests","local","ui tests local vm","vm","ui","ci","hosts","hand","iso","end","iteration","green","next","clean","default","pipeline","powershell","handoff","windows 11","windows 10","powertoys","run","tasks","windows","validate","commit","test","agentic","2026-11-10 10:12:30",false,"---\nname: ui-tests-local-vm\ndescription: \"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\u002Fpush 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.\"\nlicense: MIT\n---\n\n# Local VM UI testing\n\nRun PowerToys `.Next` UI tests in a persistent, interactive Windows VM while keeping product and test\nexecution off the host. Use this skill as the execution complement to\n[ui-tests-migration](..\u002Fui-tests-migration\u002FSKILL.md). Restore the baseline checkpoint or recreate the\nguest when clean-profile behavior must be validated.\n\nThe guest is a Hyper-V virtual machine. Nothing runs nested, so the same scaffold works on x64 and on\nWindows on ARM, where nested virtualization is unavailable to any Linux-hosted emulator.\n\nThe local correctness gate passes when the **full** suite is green on Windows 10 **and** on\nWindows 11, in two separate VMs. Run Windows 10 Enterprise LTSC 2021 first for the fastest\nfeedback, then run the same unfiltered suite on Windows 11. Differences in the shell, compositor,\ntheming, and timing break tests that contain nothing Windows 11-specific, and those are exactly\nthe failures worth catching locally instead of in CI. On a Windows on ARM host, Windows 11 ARM64\nis the only practical guest; run it with `-Platform ARM64` and get the Windows 10 half from an x64 host.\n\nStart guests with the default resource profile: 4 vCPUs and 8 GB RAM. Get the target suite fully\ngreen before lowering resources with the `Constrained` profile (1 vCPU and 4 GB RAM).\n\nFor **create, migrate, or stabilize** tasks, complete both profiles and then automatically invoke\n[ui-tests-pipeline-ci](..\u002Fui-tests-pipeline-ci\u002FSKILL.md): pass its access preflight, commit and push\nthe scoped changes, queue CI, and remain attached until terminal validation. **Do not mark the task\ncomplete at local green or wait for another user request to publish\u002Frun CI.** Respect explicit\nlocal-only\u002Fno-push\u002Fno-CI scope and the Microsoft FTE\u002Faccess gates. Local execution or VM setup alone\ndoes not authorize publication. See the pipeline skill for the shared completion and blocker rules.\n\n## How the host reaches the guest\n\n| Concern | Mechanism |\n|---|---|\n| Control channel | PowerShell Direct over VMBus. No listener, port, certificate, or firewall rule in the guest. |\n| Bulk payload | `Copy-VMFile` over the Guest Service Interface, ~82 MB\u002Fs. The session copy is a fallback and stalls on archives near a gigabyte. |\n| Exchange | Guest-local `C:\\PowerToysUiTestExchange\\\u003Cname>`, mirrored by the controller. The host never shares a folder with the guest. |\n| 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. |\n| Console | `scripts\u002FGet-VmConsoleImage.ps1` renders the framebuffer to PNG, so an agent can read boot and desktop state without VMConnect. |\n\n## When to use this skill\n\nUse it when asked to:\n\n- Create or migrate UI tests and iterate repeatedly without reprovisioning Windows each run.\n- Validate Explorer, hotkey, WebView2, shell-extension, foreground, or composed-visual behavior in a\n  real interactive desktop.\n- Run tests as a true standard user while retaining a separate administrator control channel.\n- Reuse unchanged PowerToys, winappcli, and .NET payloads and refresh only changed archives.\n- Keep a reproducible local VM baseline with optional .NET 10, WebView2, diagnostics, or `msvsmon`.\n- Collect durable `status.json`, TRX, transcripts, logs, screenshots, and failure attachments.\n- Compare revisions in one stable VM before confirming the result from a restored checkpoint.\n\nDo not treat a persistent VM as proof of clean-profile behavior. Caches, registrations, settings, and\nfirst-run state survive between runs. Restore the baseline checkpoint or recreate the VM when those\nare the behavior under test.\n\n## Relationship to other UI-test skills\n\n| Skill | Owns |\n|---|---|\n| `ui-tests-migration` | Test design, project scaffolding, framework APIs, assertions, lifecycle, and CI stability. |\n| `ui-tests-local-vm` | Fast persistent-VM setup, deployment, interactive execution, evidence export, and iteration. |\n| `ui-tests-pipeline-ci` | Required post-local commit\u002Fpush, access preflight, scoped CI, and terminal sign-off for implementation tasks. |\n\nDo not modify stabilized tests merely to make the local VM green. First prove that the suite executes,\nproduces assertion-bearing TRX, and has a useful success rate. Classify environment-specific failures\nseparately unless the task explicitly asks for stabilization.\n\n## Guest OS policy\n\n- Two guests, two full suites. Windows 10 Enterprise LTSC 2021 (build 19044\u002F21H2, newer than the\n  Windows 10 20H2 baseline) and Windows 11. Both must be fully green before the local gate passes.\n  LTSC is not available through Fido; `-Source Fido -Windows 10` automates Microsoft's official\n  mobile-user-agent ISO page and is the practical public default. The public ISO\u002FMCT images are too\n  old for .NET 10 CET, so Setup Dynamic Update must bring Win10 to 1904x.5007+ before the baseline.\n  Use licensed Microsoft subscription media for LTSC when available, and always record the edition,\n  ISO hash, and installed full build ([references\u002Fsetup.md §3](references\u002Fsetup.md#3-get-windows-media)).\n- Windows 10 runs first: it is the faster loop and surfaces most defects. Windows 11 then runs the\n  **same** suite, unfiltered - not only the tests that look Windows 11-specific. A test with no\n  Windows 11 content can still fail there, which is the whole reason for the second pass.\n- Narrow filters belong to iteration and diagnosis. They are never the evidence for the Windows 11\n  pass.\n- Give each OS its own VM name, `vm.config.psd1`, VHDX, checkpoints, and exchange. Never upgrade or\n  repurpose the Windows 10 guest into the Windows 11 guest; the two baselines must stay independent.\n- Surfaces that exist only on Windows 11, such as the tier-1 Explorer context menu, need no special\n  handling: the full Windows 11 run already covers them.\n- On a Windows on ARM host, use a Windows 11 ARM64 guest with `-Platform ARM64`. Hyper-V does not\n  emulate a foreign architecture, so that host cannot supply the Windows 10 x64 pass - run it on an\n  x64 host and report both.\n- A Windows 11 host requirement does not make Windows 11 the first guest target.\n- `-Platform` is not cosmetic: it flows to the guest as the `platform` environment variable, names\n  visual baselines, and marks the run as pipeline-like. Use only `x64Win10`, `x64Win11`, or `ARM64`.\n\n## Required reads\n\nRead only what the task needs:\n\n1. [references\u002Fsetup.md](references\u002Fsetup.md) - host requirements, scaffolding, media acquisition,\n   unattended guest creation, credentials, standard-user desktop, and checkpoint baselines.\n2. [references\u002Fagentic-loop.md](references\u002Fagentic-loop.md) - payload contract, controller usage,\n   focused-to-suite iteration, evidence, verdicts, and reset strategy.\n3. [references\u002Fcustomization.md](references\u002Fcustomization.md) - persistent image customization,\n   .NET 10, WebView2, `msvsmon`, resource profiles, and golden-baseline guidance.\n4. [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) - guest creation, PowerShell Direct,\n   interactive session, scheduled-task, focus, timeout, and export failures.\n5. [references\u002Fshell-extensions-and-signing.md](references\u002Fshell-extensions-and-signing.md) - **read\n   for any shell-extension module** (context menu, preview\u002Fthumbnail handler). Why unsigned CI PR\n   builds cannot register a sparse MSIX (0% on CI), classic (registry-COM, signing-free) vs modern\n   (sparse-MSIX) surfaces, Debug vs Release\u002F`NDEBUG` gating, runtime detection, and reproducing CI's\n   classic scenario on a local signed VM.\n6. [ui-tests-migration](..\u002Fui-tests-migration\u002FSKILL.md) - required whenever test code or framework\n   behavior is being created, migrated, or stabilized.\n\n## Default agentic cycle\n\n```mermaid\nflowchart LR\n    A[Design or edit test] --> B[Host build]\n    B --> C[Package changed payload]\n    C --> D[Start or reuse VM]\n    D --> E[Probe standard-user desktop]\n    E --> F[Run focused test]\n    F --> G[Export status TRX evidence]\n    G --> H{Need test change?}\n    H -- Yes --> A\n    H -- No --> I[Run full suite on Win10]\n    I --> J[Run same full suite on Win11]\n    J --> K{Both fully green?}\n    K -- No --> A\n    K -- Yes --> L[Full constrained suites on both OSes]\n    L --> M{Local matrix green?}\n    M -- No --> A\n    M -- Yes --> N[Clean-profile confirmation when required]\n    N --> O[ui-tests-pipeline-ci: preflight, commit, push]\n    O --> P[Scoped CI and synchronous terminal validation]\n```\n\nThe CI continuation applies to implementation tasks; explicit local-only and setup-only tasks stop\nat their requested local outcome.\n\nCreate and maintain this task list:\n\n```markdown\n- [ ] 0. Verify host setup FIRST: `Initialize-LocalVmHost.ps1 -VmRoot \u003Croot> -CheckOnly`. If it reports\n        IsReady=false, STOP and ask the user to run the elevated command it prints - Hyper-V group\n        membership, the DPAPI credential, and guest creation all need a human. Never autopilot past it\n- [ ] 1. Read ui-tests-migration guidance for the target test surface\n- [ ] 1a. Read the target module's dev docs — `doc\u002Fdevdocs\u002Fmodules\u002F\u003Cmodule>.md` (search `doc\u002Fdevdocs\u002F`,\n        including `common\u002F`, if the exact file is missing) — for development-cycle gotchas such as\n        Release\u002F`NDEBUG` registration gating, signed sparse-MSIX context menus, and Explorer restarts,\n        so a module's registration\u002Fdeployment requirements do not surface as opaque test failures.\n        For shell-extension modules also read references\u002Fshell-extensions-and-signing.md.\n- [ ] 2. Scaffold or verify the local VM - references\u002Fsetup.md\n- [ ] 3. Build product and test projects on the host to exit code 0\n- [ ] 4. Package a lean exchange and verify archive hashes\n- [ ] 5. Run the controller with -PlanOnly and inspect its request\u002Fplan\n- [ ] 6. Probe the non-admin interactive desktop before test execution\n- [ ] 7. Run one focused test synchronously; keep the agent turn attached, read the controller\n  result's `.Failed` array (non-passed tests + first error line) instead of re-parsing TRX, and\n  use `scripts\u002FInvoke-GuestScript.ps1` for guest-state inspection\n- [ ] 8. Diagnose the first controlling failure without weakening assertions\n- [ ] 9. Rebuild and rerun with -ReuseStagedPayload\n- [ ] 10. Widen to the full module suite on Windows 10 and report pass rate\u002Froot-cause groups\n- [ ] 11. Run the same full suite in the Windows 11 VM; both must be green before the local gate passes\n- [ ] 12. Restore the baseline checkpoint for clean-profile confirmation when required\n- [ ] 13. Run the full Constrained suite on both OSes; preserve default and constrained evidence\n- [ ] 14. For implementation tasks, invoke ui-tests-pipeline-ci without another user prompt, pass\n        access preflight, commit\u002Fpush task-owned changes, and record the exact branch\u002FSHA\n- [ ] 15. Queue scoped CI and wait synchronously for verified terminal results; local green alone\n        cannot complete the task unless the user explicitly requested local-only scope\n```\n\n## Quick start\n\nHost setup is a one-time, **human-only** step: Hyper-V group membership, the DPAPI guest credential,\nand guest creation all need elevation or a password. Check it before anything else - this needs no\nelevation and changes nothing:\n\n```pwsh\npwsh .github\\skills\\ui-tests-local-vm\\scripts\\Initialize-LocalVmHost.ps1 -VmRoot X:\\PowerToysUiTestVm -CheckOnly\n```\n\nIf it reports `IsReady=false`, stop and ask the user to run the elevated command it prints (see\n[references\u002Fsetup.md §0](references\u002Fsetup.md#0-human-only-host-setup-one-command)). Otherwise scaffold\nthe VM directory outside the repository:\n\n```pwsh\npwsh .github\\skills\\ui-tests-local-vm\\scripts\\Initialize-LocalVm.ps1 `\n  -DestinationRoot X:\\PowerToysUiTestVm\n```\n\nThe scaffold and its `shared` exchange can live on any volume, including a Dev Drive. Only the VHDX\nand VM configuration paths, set separately in `vm.config.psd1`, should point at NTFS.\n\nFollow [references\u002Fsetup.md](references\u002Fsetup.md) to write the untracked `vm.config.psd1`, save the\nadministrator credential with Windows DPAPI, obtain install media, and create the guest with\n`New-UiTestVm.ps1`. Then stage the archives described in\n[references\u002Fagentic-loop.md](references\u002Fagentic-loop.md) and run:\n\n```pwsh\npwsh .github\\skills\\ui-tests-local-vm\\scripts\\Invoke-LocalVmUiTest.ps1 `\n  -VmName PowerToysUiTest-Win10 `\n  -VmRoot X:\\PowerToysUiTestVm `\n  -ExchangeRoot X:\\PowerToysUiTestVm\\shared\\PowerToysUiTests\\MyModule `\n  -TestExecutable MyModule.UITests.Next.exe `\n  -Filter 'Name=MyModule.FocusedTest' `\n  -Platform x64Win10 `\n  -BuildLabel (git rev-parse HEAD) `\n  -SuiteTimeout 15m `\n  -TimeoutMinutes 25 `\n  -ReuseStagedPayload\n```\n\nThe controller starts the VM if needed, requests automatic host sleep prevention, verifies the\ninteractive standard-user desktop, dispatches the guest runner, and waits synchronously for matching\n`status.json`. It reports whether sleep prevention succeeded, fails early if the guest task never\nstarts or exits without status, summarizes TRX, and leaves the persistent VM running by default.\n\n## Non-negotiable rules\n\n- Complete host setup before anything else and **never autopilot around it**. Hyper-V group\n  membership, the DPAPI guest credential, and guest creation are human-only: two need elevation that\n  no tool call can approve, one needs a password that must never reach a model.\n  `Initialize-LocalVmHost.ps1` performs all three; agents run it `-CheckOnly`, and on\n  `IsReady=false` report `BLOCKED`, print the elevated command it emits, and wait. Do not ask for a\n  password, do not substitute a weaker channel, do not proceed on a partial setup.\n  `Invoke-LocalVmUiTest.ps1` enforces the same check.\n- Keep the guest's VHDX and VM configuration on NTFS. On this project's host, keeping them on a Dev\n  Drive wedged the VM management service twice - `vmms` at 0% CPU, even `Get-VM` hanging, host reboot\n  to recover - and moving to NTFS fixed it. This is an observation on one host, not a property of\n  ReFS: Hyper-V on plain ReFS is supported, so `-AllowReFsVolume` overrides the default refusal. The\n  scaffold and the exchange are unaffected and run fine on a Dev Drive.\n- Build on the host; run PowerToys and tests only in the VM when host execution is prohibited.\n- Invoke every focused, full-suite, and constrained controller run synchronously. Keep the active\n  agent turn attached until the controller returns matching status\u002FTRX evidence; never background\n  the controller or end the turn while it runs.\n- Complete the local correctness gate with two green full suites: Windows 10 and Windows 11, in\n  separate VMs. Windows 10 runs first for speed; Windows 11 runs the same unfiltered suite, never a\n  Win11-only subset. Narrow filters are for iteration, not for sign-off. On a Windows on ARM host\n  the ARM64 Windows 11 guest covers the Windows 11 half and the Windows 10 half needs an x64 host.\n- Establish a fully green correctness baseline with the default (4 vCPU \u002F 8 GB) resources before\n  running the same tests under `Constrained` (1 vCPU \u002F 4 GB) resources.\n- For implementation tasks, require both resource profiles and the subsequent pipeline handoff.\n  Report unavailable publication\u002FCI prerequisites as blocked, not as full validation success.\n- Keep VM files and writable exchange folders outside the repository.\n- Keep the guest's default inbound network posture. The control channel does not need connectivity,\n  so do not enable remoting, open ports, or attach the guest to a routable network for test dispatch.\n- Use a DPAPI-protected credential file. Never put credentials in prompts, scripts, request JSON,\n  unattend files kept after install, source control, or command-line arguments.\n- Run UI tests in an already logged-on standard-user desktop, never in session 0 or as `SYSTEM`.\n- Keep a separate administrator account only for VM control and scheduled-task registration.\n- Verify user, token integrity, Explorer presence, session ID, and display size before tests.\n- Run product\u002Ftests from guest-local storage under `C:\\PowerToysUiTestRun`.\n- Use PowerShell 7 for interactive probe\u002Ftest scheduled tasks. PowerShell Direct and OEM bootstrap\n  remain PS5.1-compatible by design; do not enable a remoting endpoint merely to use PS7.\n- Reuse payloads by per-component hashes; refresh only changed tests\u002Fproduct\u002Ftools.\n- Preserve assertions and visual thresholds. Classify VM-specific failures from evidence.\n- Always parse TRX and require `total > 0` plus `executed == total`. A process exit code alone cannot\n  distinguish assertions, skipped\u002Finconclusive tests, zero tests, timeout, or infrastructure failure.\n- Keep the VM after normal runs for iteration. Stop it explicitly when idle; delete its VHDX only for\n  an intentional baseline reset.\n- The controller requests automatic host sleep prevention and reports `HostSleepPrevented`; failure\n  is a warning. It cannot override manual sleep, lid-close policy, reboot, shutdown, or power loss.\n- Final clean-profile claims require a restored baseline checkpoint or a recreated guest. Restore with\n  `Reset-LocalVm.ps1 -Restore`.\n","# Local VM UI testing\n\nRun PowerToys `.Next` UI tests in a persistent, interactive Windows VM while keeping product and test\nexecution off the host. Use this skill as the execution complement to\n[ui-tests-migration](..\u002Fui-tests-migration\u002FSKILL.md). Restore the baseline checkpoint or recreate the\nguest when clean-profile behavior must be validated.\n\nThe guest is a Hyper-V virtual machine. Nothing runs nested, so the same scaffold works on x64 and on\nWindows on ARM, where nested virtualization is unavailable to any Linux-hosted emulator.\n\nThe local correctness gate passes when the **full** suite is green on Windows 10 **and** on\nWindows 11, in two separate VMs. Run Windows 10 Enterprise LTSC 2021 first for the fastest\nfeedback, then run the same unfiltered suite on Windows 11. Differences in the shell, compositor,\ntheming, and timing break tests that contain nothing Windows 11-specific, and those are exactly\nthe failures worth catching locally instead of in CI. On a Windows on ARM host, Windows 11 ARM64\nis the only practical guest; run it with `-Platform ARM64` and get the Windows 10 half from an x64 host.\n\nStart guests with the default resource profile: 4 vCPUs and 8 GB RAM. Get the target suite fully\ngreen before lowering resources with the `Constrained` profile (1 vCPU and 4 GB RAM).\n\nFor **create, migrate, or stabilize** tasks, complete both profiles and then automatically invoke\n[ui-tests-pipeline-ci](..\u002Fui-tests-pipeline-ci\u002FSKILL.md): pass its access preflight, commit and push\nthe scoped changes, queue CI, and remain attached until terminal validation. **Do not mark the task\ncomplete at local green or wait for another user request to publish\u002Frun CI.** Respect explicit\nlocal-only\u002Fno-push\u002Fno-CI scope and the Microsoft FTE\u002Faccess gates. Local execution or VM setup alone\ndoes not authorize publication. See the pipeline skill for the shared completion and blocker rules.\n\n## How the host reaches the guest\n\n| Concern | Mechanism |\n|---|---|\n| Control channel | PowerShell Direct over VMBus. No listener, port, certificate, or firewall rule in the guest. |\n| Bulk payload | `Copy-VMFile` over the Guest Service Interface, ~82 MB\u002Fs. The session copy is a fallback and stalls on archives near a gigabyte. |\n| Exchange | Guest-local `C:\\PowerToysUiTestExchange\\\u003Cname>`, mirrored by the controller. The host never shares a folder with the guest. |\n| 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. |\n| Console | `scripts\u002FGet-VmConsoleImage.ps1` renders the framebuffer to PNG, so an agent can read boot and desktop state without VMConnect. |\n\n## When to use this skill\n\nUse it when asked to:\n\n- Create or migrate UI tests and iterate repeatedly without reprovisioning Windows each run.\n- Validate Explorer, hotkey, WebView2, shell-extension, foreground, or composed-visual behavior in a\n  real interactive desktop.\n- Run tests as a true standard user while retaining a separate administrator control channel.\n- Reuse unchanged PowerToys, winappcli, and .NET payloads and refresh only changed archives.\n- Keep a reproducible local VM baseline with optional .NET 10, WebView2, diagnostics, or `msvsmon`.\n- Collect durable `status.json`, TRX, transcripts, logs, screenshots, and failure attachments.\n- Compare revisions in one stable VM before confirming the result from a restored checkpoint.\n\nDo not treat a persistent VM as proof of clean-profile behavior. Caches, registrations, settings, and\nfirst-run state survive between runs. Restore the baseline checkpoint or recreate the VM when those\nare the behavior under test.\n\n## Relationship to other UI-test skills\n\n| Skill | Owns |\n|---|---|\n| `ui-tests-migration` | Test design, project scaffolding, framework APIs, assertions, lifecycle, and CI stability. |\n| `ui-tests-local-vm` | Fast persistent-VM setup, deployment, interactive execution, evidence export, and iteration. |\n| `ui-tests-pipeline-ci` | Required post-local commit\u002Fpush, access preflight, scoped CI, and terminal sign-off for implementation tasks. |\n\nDo not modify stabilized tests merely to make the local VM green. First prove that the suite executes,\nproduces assertion-bearing TRX, and has a useful success rate. Classify environment-specific failures\nseparately unless the task explicitly asks for stabilization.\n\n## Guest OS policy\n\n- Two guests, two full suites. Windows 10 Enterprise LTSC 2021 (build 19044\u002F21H2, newer than the\n  Windows 10 20H2 baseline) and Windows 11. Both must be fully green before the local gate passes.\n  LTSC is not available through Fido; `-Source Fido -Windows 10` automates Microsoft's official\n  mobile-user-agent ISO page and is the practical public default. The public ISO\u002FMCT images are too\n  old for .NET 10 CET, so Setup Dynamic Update must bring Win10 to 1904x.5007+ before the baseline.\n  Use licensed Microsoft subscription media for LTSC when available, and always record the edition,\n  ISO hash, and installed full build ([references\u002Fsetup.md §3](references\u002Fsetup.md#3-get-windows-media)).\n- Windows 10 runs first: it is the faster loop and surfaces most defects. Windows 11 then runs the\n  **same** suite, unfiltered - not only the tests that look Windows 11-specific. A test with no\n  Windows 11 content can still fail there, which is the whole reason for the second pass.\n- Narrow filters belong to iteration and diagnosis. They are never the evidence for the Windows 11\n  pass.\n- Give each OS its own VM name, `vm.config.psd1`, VHDX, checkpoints, and exchange. Never upgrade or\n  repurpose the Windows 10 guest into the Windows 11 guest; the two baselines must stay independent.\n- Surfaces that exist only on Windows 11, such as the tier-1 Explorer context menu, need no special\n  handling: the full Windows 11 run already covers them.\n- On a Windows on ARM host, use a Windows 11 ARM64 guest with `-Platform ARM64`. Hyper-V does not\n  emulate a foreign architecture, so that host cannot supply the Windows 10 x64 pass - run it on an\n  x64 host and report both.\n- A Windows 11 host requirement does not make Windows 11 the first guest target.\n- `-Platform` is not cosmetic: it flows to the guest as the `platform` environment variable, names\n  visual baselines, and marks the run as pipeline-like. Use only `x64Win10`, `x64Win11`, or `ARM64`.\n\n## Required reads\n\nRead only what the task needs:\n\n1. [references\u002Fsetup.md](references\u002Fsetup.md) - host requirements, scaffolding, media acquisition,\n   unattended guest creation, credentials, standard-user desktop, and checkpoint baselines.\n2. [references\u002Fagentic-loop.md](references\u002Fagentic-loop.md) - payload contract, controller usage,\n   focused-to-suite iteration, evidence, verdicts, and reset strategy.\n3. [references\u002Fcustomization.md](references\u002Fcustomization.md) - persistent image customization,\n   .NET 10, WebView2, `msvsmon`, resource profiles, and golden-baseline guidance.\n4. [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) - guest creation, PowerShell Direct,\n   interactive session, scheduled-task, focus, timeout, and export failures.\n5. [references\u002Fshell-extensions-and-signing.md](references\u002Fshell-extensions-and-signing.md) - **read\n   for any shell-extension module** (context menu, preview\u002Fthumbnail handler). Why unsigned CI PR\n   builds cannot register a sparse MSIX (0% on CI), classic (registry-COM, signing-free) vs modern\n   (sparse-MSIX) surfaces, Debug vs Release\u002F`NDEBUG` gating, runtime detection, and reproducing CI's\n   classic scenario on a local signed VM.\n6. [ui-tests-migration](..\u002Fui-tests-migration\u002FSKILL.md) - required whenever test code or framework\n   behavior is being created, migrated, or stabilized.\n\n## Default agentic cycle\n\n```mermaid\nflowchart LR\n    A[Design or edit test] --> B[Host build]\n    B --> C[Package changed payload]\n    C --> D[Start or reuse VM]\n    D --> E[Probe standard-user desktop]\n    E --> F[Run focused test]\n    F --> G[Export status TRX evidence]\n    G --> H{Need test change?}\n    H -- Yes --> A\n    H -- No --> I[Run full suite on Win10]\n    I --> J[Run same full suite on Win11]\n    J --> K{Both fully green?}\n    K -- No --> A\n    K -- Yes --> L[Full constrained suites on both OSes]\n    L --> M{Local matrix green?}\n    M -- No --> A\n    M -- Yes --> N[Clean-profile confirmation when required]\n    N --> O[ui-tests-pipeline-ci: preflight, commit, push]\n    O --> P[Scoped CI and synchronous terminal validation]\n```\n\nThe CI continuation applies to implementation tasks; explicit local-only and setup-only tasks stop\nat their requested local outcome.\n\nCreate and maintain this task list:\n\n```markdown\n- [ ] 0. Verify host setup FIRST: `Initialize-LocalVmHost.ps1 -VmRoot \u003Croot> -CheckOnly`. If it reports\n        IsReady=false, STOP and ask the user to run the elevated command it prints - Hyper-V group\n        membership, the DPAPI credential, and guest creation all need a human. Never autopilot past it\n- [ ] 1. Read ui-tests-migration guidance for the target test surface\n- [ ] 1a. Read the target module's dev docs — `doc\u002Fdevdocs\u002Fmodules\u002F\u003Cmodule>.md` (search `doc\u002Fdevdocs\u002F`,\n        including `common\u002F`, if the exact file is missing) — for development-cycle gotchas such as\n        Release\u002F`NDEBUG` registration gating, signed sparse-MSIX context menus, and Explorer restarts,\n        so a module's registration\u002Fdeployment requirements do not surface as opaque test failures.\n        For shell-extension modules also read references\u002Fshell-extensions-and-signing.md.\n- [ ] 2. Scaffold or verify the local VM - references\u002Fsetup.md\n- [ ] 3. Build product and test projects on the host to exit code 0\n- [ ] 4. Package a lean exchange and verify archive hashes\n- [ ] 5. Run the controller with -PlanOnly and inspect its request\u002Fplan\n- [ ] 6. Probe the non-admin interactive desktop before test execution\n- [ ] 7. Run one focused test synchronously; keep the agent turn attached, read the controller\n  result's `.Failed` array (non-passed tests + first error line) instead of re-parsing TRX, and\n  use `scripts\u002FInvoke-GuestScript.ps1` for guest-state inspection\n- [ ] 8. Diagnose the first controlling failure without weakening assertions\n- [ ] 9. Rebuild and rerun with -ReuseStagedPayload\n- [ ] 10. Widen to the full module suite on Windows 10 and report pass rate\u002Froot-cause groups\n- [ ] 11. Run the same full suite in the Windows 11 VM; both must be green before the local gate passes\n- [ ] 12. Restore the baseline checkpoint for clean-profile confirmation when required\n- [ ] 13. Run the full Constrained suite on both OSes; preserve default and constrained evidence\n- [ ] 14. For implementation tasks, invoke ui-tests-pipeline-ci without another user prompt, pass\n        access preflight, commit\u002Fpush task-owned changes, and record the exact branch\u002FSHA\n- [ ] 15. Queue scoped CI and wait synchronously for verified terminal results; local green alone\n        cannot complete the task unless the user explicitly requested local-only scope\n```\n\n## Quick start\n\nHost setup is a one-time, **human-only** step: Hyper-V group membership, the DPAPI guest credential,\nand guest creation all need elevation or a password. Check it before anything else - this needs no\nelevation and changes nothing:\n\n```pwsh\npwsh .github\\skills\\ui-tests-local-vm\\scripts\\Initialize-LocalVmHost.ps1 -VmRoot X:\\PowerToysUiTestVm -CheckOnly\n```\n\nIf it reports `IsReady=false`, stop and ask the user to run the elevated command it prints (see\n[references\u002Fsetup.md §0](references\u002Fsetup.md#0-human-only-host-setup-one-command)). Otherwise scaffold\nthe VM directory outside the repository:\n\n```pwsh\npwsh .github\\skills\\ui-tests-local-vm\\scripts\\Initialize-LocalVm.ps1 `\n  -DestinationRoot X:\\PowerToysUiTestVm\n```\n\nThe scaffold and its `shared` exchange can live on any volume, including a Dev Drive. Only the VHDX\nand VM configuration paths, set separately in `vm.config.psd1`, should point at NTFS.\n\nFollow [references\u002Fsetup.md](references\u002Fsetup.md) to write the untracked `vm.config.psd1`, save the\nadministrator credential with Windows DPAPI, obtain install media, and create the guest with\n`New-UiTestVm.ps1`. Then stage the archives described in\n[references\u002Fagentic-loop.md](references\u002Fagentic-loop.md) and run:\n\n```pwsh\npwsh .github\\skills\\ui-tests-local-vm\\scripts\\Invoke-LocalVmUiTest.ps1 `\n  -VmName PowerToysUiTest-Win10 `\n  -VmRoot X:\\PowerToysUiTestVm `\n  -ExchangeRoot X:\\PowerToysUiTestVm\\shared\\PowerToysUiTests\\MyModule `\n  -TestExecutable MyModule.UITests.Next.exe `\n  -Filter 'Name=MyModule.FocusedTest' `\n  -Platform x64Win10 `\n  -BuildLabel (git rev-parse HEAD) `\n  -SuiteTimeout 15m `\n  -TimeoutMinutes 25 `\n  -ReuseStagedPayload\n```\n\nThe controller starts the VM if needed, requests automatic host sleep prevention, verifies the\ninteractive standard-user desktop, dispatches the guest runner, and waits synchronously for matching\n`status.json`. It reports whether sleep prevention succeeded, fails early if the guest task never\nstarts or exits without status, summarizes TRX, and leaves the persistent VM running by default.\n\n## Non-negotiable rules\n\n- Complete host setup before anything else and **never autopilot around it**. Hyper-V group\n  membership, the DPAPI guest credential, and guest creation are human-only: two need elevation that\n  no tool call can approve, one needs a password that must never reach a model.\n  `Initialize-LocalVmHost.ps1` performs all three; agents run it `-CheckOnly`, and on\n  `IsReady=false` report `BLOCKED`, print the elevated command it emits, and wait. Do not ask for a\n  password, do not substitute a weaker channel, do not proceed on a partial setup.\n  `Invoke-LocalVmUiTest.ps1` enforces the same check.\n- Keep the guest's VHDX and VM configuration on NTFS. On this project's host, keeping them on a Dev\n  Drive wedged the VM management service twice - `vmms` at 0% CPU, even `Get-VM` hanging, host reboot\n  to recover - and moving to NTFS fixed it. This is an observation on one host, not a property of\n  ReFS: Hyper-V on plain ReFS is supported, so `-AllowReFsVolume` overrides the default refusal. The\n  scaffold and the exchange are unaffected and run fine on a Dev Drive.\n- Build on the host; run PowerToys and tests only in the VM when host execution is prohibited.\n- Invoke every focused, full-suite, and constrained controller run synchronously. Keep the active\n  agent turn attached until the controller returns matching status\u002FTRX evidence; never background\n  the controller or end the turn while it runs.\n- Complete the local correctness gate with two green full suites: Windows 10 and Windows 11, in\n  separate VMs. Windows 10 runs first for speed; Windows 11 runs the same unfiltered suite, never a\n  Win11-only subset. Narrow filters are for iteration, not for sign-off. On a Windows on ARM host\n  the ARM64 Windows 11 guest covers the Windows 11 half and the Windows 10 half needs an x64 host.\n- Establish a fully green correctness baseline with the default (4 vCPU \u002F 8 GB) resources before\n  running the same tests under `Constrained` (1 vCPU \u002F 4 GB) resources.\n- For implementation tasks, require both resource profiles and the subsequent pipeline handoff.\n  Report unavailable publication\u002FCI prerequisites as blocked, not as full validation success.\n- Keep VM files and writable exchange folders outside the repository.\n- Keep the guest's default inbound network posture. The control channel does not need connectivity,\n  so do not enable remoting, open ports, or attach the guest to a routable network for test dispatch.\n- Use a DPAPI-protected credential file. Never put credentials in prompts, scripts, request JSON,\n  unattend files kept after install, source control, or command-line arguments.\n- Run UI tests in an already logged-on standard-user desktop, never in session 0 or as `SYSTEM`.\n- Keep a separate administrator account only for VM control and scheduled-task registration.\n- Verify user, token integrity, Explorer presence, session ID, and display size before tests.\n- Run product\u002Ftests from guest-local storage under `C:\\PowerToysUiTestRun`.\n- Use PowerShell 7 for interactive probe\u002Ftest scheduled tasks. PowerShell Direct and OEM bootstrap\n  remain PS5.1-compatible by design; do not enable a remoting endpoint merely to use PS7.\n- Reuse payloads by per-component hashes; refresh only changed tests\u002Fproduct\u002Ftools.\n- Preserve assertions and visual thresholds. Classify VM-specific failures from evidence.\n- Always parse TRX and require `total > 0` plus `executed == total`. A process exit code alone cannot\n  distinguish assertions, skipped\u002Finconclusive tests, zero tests, timeout, or infrastructure failure.\n- Keep the VM after normal runs for iteration. Stop it explicitly when idle; delete its VHDX only for\n  an intentional baseline reset.\n- The controller requests automatic host sleep prevention and reports `HostSleepPrevented`; failure\n  is a warning. It cannot override manual sleep, lid-close policy, reboot, shutdown, or power loss.\n- Final clean-profile claims require a restored baseline checkpoint or a recreated guest. Restore with\n  `Reset-LocalVm.ps1 -Restore`.\n",{"name":5,"license":16,"description":7},"main","5ce7acee5356814f1fbd8e8b8fd27b95c11a6def",".github\u002Fskills\u002Fui-tests-local-vm",8740,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-15 01:04:53",{"source":9,"skillName":5,"commands":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add microsoft\u002FPowerToys --skill ui-tests-local-vm",{"tool":79,"command":80},"bunx","bunx skills add microsoft\u002FPowerToys --skill ui-tests-local-vm",{"tool":82,"command":83},"pnpm","pnpm dlx skills add microsoft\u002FPowerToys --skill ui-tests-local-vm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002FSKILL.md",true,[87,93,97,101,105,109,113,117,121,125,129,133,139,143,147,151,155,159,163,167,171,175,179,183,187,191,197,201,205,209,213,217,221,225],{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"dispositions.md","REFERENCE","参考文档",1225,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-issue\u002Fskills\u002Fstale-sweep\u002Fdispositions.md",{"path":94,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":95,"sourceHtmlUrl":96},"failure-modes.md",943,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-issue\u002Fskills\u002Fstale-sweep\u002Ffailure-modes.md",{"path":98,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":99,"sourceHtmlUrl":100},"item-failure-budget.md",2107,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-issue\u002Fskills\u002Fstale-sweep\u002Fitem-failure-budget.md",{"path":102,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":103,"sourceHtmlUrl":104},"link-form.md",1261,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-issue\u002Fskills\u002Fstale-sweep\u002Flink-form.md",{"path":106,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":107,"sourceHtmlUrl":108},"per-issue-activity.md",1342,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-issue\u002Fskills\u002Fstale-sweep\u002Fper-issue-activity.md",{"path":110,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":111,"sourceHtmlUrl":112},"posting-and-close.md",4020,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-issue\u002Fskills\u002Fstale-sweep\u002Fposting-and-close.md",{"path":114,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fagentic-loop.md",11353,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Freferences\u002Fagentic-loop.md",{"path":118,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fcustomization.md",7745,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Freferences\u002Fcustomization.md",{"path":122,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Fsetup.md",24333,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Freferences\u002Fsetup.md",{"path":126,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fshell-extensions-and-signing.md",12880,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Freferences\u002Fshell-extensions-and-signing.md",{"path":130,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Ftroubleshooting.md",13814,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Freferences\u002Ftroubleshooting.md",{"path":134,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":137,"sourceHtmlUrl":138},"scripts\u002FGet-VmConsoleImage.ps1","SCRIPT","脚本",3737,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Fscripts\u002FGet-VmConsoleImage.ps1",{"path":140,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":141,"sourceHtmlUrl":142},"scripts\u002FGet-WindowsMedia.ps1",7322,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Fscripts\u002FGet-WindowsMedia.ps1",{"path":144,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":145,"sourceHtmlUrl":146},"scripts\u002FInitialize-LocalVm.ps1",2955,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Fscripts\u002FInitialize-LocalVm.ps1",{"path":148,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":149,"sourceHtmlUrl":150},"scripts\u002FInitialize-LocalVmHost.ps1",20573,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Fscripts\u002FInitialize-LocalVmHost.ps1",{"path":152,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":153,"sourceHtmlUrl":154},"scripts\u002FInvoke-GuestScript.ps1",2557,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Fscripts\u002FInvoke-GuestScript.ps1",{"path":156,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":157,"sourceHtmlUrl":158},"scripts\u002FInvoke-LocalVmUiTest.ps1",35734,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Fscripts\u002FInvoke-LocalVmUiTest.ps1",{"path":160,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":161,"sourceHtmlUrl":162},"scripts\u002FLocalVmGuest.psm1",15676,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Fscripts\u002FLocalVmGuest.psm1",{"path":164,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":165,"sourceHtmlUrl":166},"scripts\u002FUpdate-LocalVmGuest.ps1",7108,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Fscripts\u002FUpdate-LocalVmGuest.ps1",{"path":168,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":169,"sourceHtmlUrl":170},"security-screening.md",693,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-issue\u002Fskills\u002Fstale-sweep\u002Fsecurity-screening.md",{"path":172,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":173,"sourceHtmlUrl":174},"templates\u002Foem\u002FProvision-UiTestVm.ps1",9084,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Foem\u002FProvision-UiTestVm.ps1",{"path":176,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":177,"sourceHtmlUrl":178},"templates\u002Foem\u002FSet-GuestResolution.ps1",3913,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Foem\u002FSet-GuestResolution.ps1",{"path":180,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":181,"sourceHtmlUrl":182},"templates\u002Foem\u002FSet-UiTestAdminPasswordPolicy.ps1",2194,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Foem\u002FSet-UiTestAdminPasswordPolicy.ps1",{"path":184,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":185,"sourceHtmlUrl":186},"templates\u002Foem\u002FSet-UiTestAutoLogon.ps1",6878,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Foem\u002FSet-UiTestAutoLogon.ps1",{"path":188,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":189,"sourceHtmlUrl":190},"templates\u002Frun-ui-tests.ps1",20075,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Frun-ui-tests.ps1",{"path":192,"resourceType":193,"resourceTypeDesc":194,"sizeBytes":195,"sourceHtmlUrl":196},"templates\u002Fvm\u002F.gitignore","OTHER","其他",51,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Fvm\u002F.gitignore",{"path":198,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":199,"sourceHtmlUrl":200},"templates\u002Fvm\u002FNew-UiTestVm.ps1",26949,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Fvm\u002FNew-UiTestVm.ps1",{"path":202,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":203,"sourceHtmlUrl":204},"templates\u002Fvm\u002FReset-LocalVm.ps1",3531,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Fvm\u002FReset-LocalVm.ps1",{"path":206,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":207,"sourceHtmlUrl":208},"templates\u002Fvm\u002FStart-LocalVm.ps1",6663,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Fvm\u002FStart-LocalVm.ps1",{"path":210,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":211,"sourceHtmlUrl":212},"templates\u002Fvm\u002FStop-LocalVm.ps1",2845,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Fvm\u002FStop-LocalVm.ps1",{"path":214,"resourceType":193,"resourceTypeDesc":194,"sizeBytes":215,"sourceHtmlUrl":216},"templates\u002Fvm\u002Funattend\u002Fautounattend.xml.template",8853,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Fvm\u002Funattend\u002Fautounattend.xml.template",{"path":218,"resourceType":193,"resourceTypeDesc":194,"sizeBytes":219,"sourceHtmlUrl":220},"templates\u002Fvm\u002Fvm.config.example.psd1",1612,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftemplates\u002Fvm\u002Fvm.config.example.psd1",{"path":222,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":223,"sourceHtmlUrl":224},"tests\u002FAdminPasswordPolicy.Tests.ps1",16124,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftests\u002FAdminPasswordPolicy.Tests.ps1",{"path":226,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":227,"sourceHtmlUrl":228},"tests\u002FInteractiveTask.Tests.ps1",4437,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-local-vm\u002Ftests\u002FInteractiveTask.Tests.ps1",[230,266,295,333,362,391],{"skillNo":231,"name":232,"nameZh":233,"description":234,"descriptionZh":235,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":236,"sourceHtmlUrl":237,"categories":238,"keywords":245,"publishedAt":59},"01M69BBVFWFXVP5T0QRVHVC764","winmd-api-search","Windows 桌面 API 检索","Find and explore Windows desktop APIs. Use when building features that need platform capabilities — camera, file access, notifications, UI controls, AI\u002FML, sensors, networking, etc. Discovers the right API for a task and retrieves full type details (methods, properties, events, enumeration values).","查找并探索 Windows 桌面 API。当构建需要平台能力的功能时使用——相机、文件访问、通知、UI 控件、AI\u002FML、传感器、网络等。为任务找到合适的 API，并检索完整的类型详情（方法、属性、事件、枚举值）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwinmd-api-search\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwinmd-api-search\u002FSKILL.md",[239,242],{"categoryNo":240,"categoryName":241,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":243,"categoryName":244,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[246,247,248,249,54,250,251,252,253,35,254,255,256,257,258,259,260,261,262,263,264,265],"winmd api search","search","api","file access","ml","desktop","networking","capabilities","notifications","explore","access","camera","methods","full","platform","events","controls","for","features","when",{"skillNo":267,"name":268,"nameZh":269,"description":270,"descriptionZh":271,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":272,"licenseFileUrl":273,"sourceHtmlUrl":274,"categories":275,"keywords":278,"publishedAt":59},"01M69BBM5F427YJB53DV40WFEV","ui-tests-migration","PowerToys UI 测试迁移与稳定化","Create, migrate, and stabilize PowerToys UI tests with Microsoft.PowerToys.UITest.Next and winappcli, through local VM success, commit\u002Fpush, and CI validation. Use for ports, new UITest projects, flaky CI tests, persistent Hyper-V validation, Settings IPC authentication\u002Ftest signing, Explorer\u002FShell selection, preview handlers, thumbnail providers, hotkey activation, stateful process lifecycle, composed WinUI\u002FWebView visual baselines, or foreground failures. Covers APIs, scaffolding, test design, diagnostics, and the required handoff to ui-tests-pipeline-ci. Keywords: UI test, UITests, UITestAutomation.Next, winappcli, WinAppDriver, Selenium, Settings IPC, not-microsoft-signed, Authenticode, local VM, Hyper-V, checkpoint, migrate, flaky, CI stability, Explorer, Shell extension, WebView2.","使用 Microsoft.PowerToys.UITest.Next 和 winappcli 创建、迁移并稳定 PowerToys UI 测试，直至本地虚拟机（VM）测试通过、提交\u002F推送（commit\u002Fpush）并完成 CI 验证。适用于移植、新建 UITest 项目、CI 中不稳定的（flaky）测试、持久化的 Hyper-V 验证、Settings IPC 身份验证\u002F测试签名、Explorer\u002FShell 选择、预览处理程序、缩略图提供程序、热键激活、有状态进程生命周期、组合的 WinUI\u002FWebView 视觉基线，或前台失败等问题。涵盖 API、脚手架搭建、测试设计、诊断，以及必须移交给 ui-tests-pipeline-ci 的交接流程。关键词：UI test、UITests、UITestAutomation.Next、winappcli、WinAppDriver、Selenium、Settings IPC、not-microsoft-signed、Authenticode、local VM、Hyper-V、checkpoint、migrate、flaky、CI stability、Explorer、Shell extension、WebView2。","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-migration\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fui-tests-migration\u002FSKILL.md",[276,277],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[279,35,280,31,281,48,282,57,10,56,283,284,51,285,286,36,46,287,288,289,290,291,292,32,293,294],"ui tests migration","migration","design","stability","diagnostics","create","authentication","selenium","migrate","projects","ports","selection","scaffolding","preview","stateful","new",{"skillNo":296,"name":297,"nameZh":298,"description":299,"descriptionZh":300,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":272,"licenseFileUrl":301,"sourceHtmlUrl":302,"categories":303,"keywords":308,"publishedAt":59},"01M69BBAKBN3RB0YF8CDV5TTAS","release-note-generation","PowerToys发布说明生成","Toolkit for generating PowerToys stable or preview release notes from GitHub milestones, commit ranges, or Azure DevOps release-candidate builds. Prepare draft preview releases with three-component GitHub tags while preserving four-component build and asset versions. Use when asked to create release notes, summarize milestone PRs, generate changelog, prepare a draft preview release, calculate PR deltas across main and stable, update release documentation, manage PR milestones, or prepare and validate release assets.","一个工具包，用于从 GitHub 里程碑（milestones）、提交范围（commit ranges）或 Azure DevOps 发布候选构建生成 PowerToys 稳定版或预览版的发布说明。可准备带有三段式 GitHub 标签的预览版草稿，同时保留四段式的构建版本和资源版本。当被要求创建发布说明、总结里程碑 PR、生成变更日志、准备预览版草稿、计算 main 与 stable 分支之间的 PR 差异、更新发布文档、管理 PR 里程碑，或准备和验证发布资源时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frelease-note-generation\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frelease-note-generation\u002FSKILL.md",[304,305],{"categoryNo":243,"categoryName":244,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":306,"categoryName":307,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[309,310,311,312,313,314,315,316,56,55,317,318,319,320,321,322,323,324,325,284,326,327,51,328,64,329,292,330,331,332,265],"release note generation","release","release note","generation","note","summarize","github","component","azure devops","prepare","documentation","create release","notes","azure","pr","release notes","toolkit","generate","update","deltas","milestone","across","milestones","candidate",{"skillNo":334,"name":335,"nameZh":336,"description":337,"descriptionZh":338,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":272,"licenseFileUrl":339,"sourceHtmlUrl":340,"categories":341,"keywords":344,"publishedAt":59},"01M69BB4235609E12GSMJTZWPT","powertoys-verification","PowerToys 端到端验证","Verify PowerToys behavior end-to-end with the winapp CLI across two scenarios: (A) a module's release checklist against the installed build; (B) PR validation — derive each PR's checklist from its description + diff, then drive it against the installed build (a merged\u002Fshipped PR, or a whole release\u002Fhotfix set) or by building + sideloading the module when the PR isn't in the build yet (unmerged or not-yet-released). Drive each item via UIA invoke \u002F Named Events \u002F settings.json edits \u002F clipboard \u002F GPO \u002F SendInput, and emit a structured PASS \u002F FAIL \u002F BLOCKED verdict per item with evidence (FAIL distinguishes product defects from stale\u002Fambiguous checklist items). Use when asked to verify a module checklist, validate a PR, sign off a release\u002Fhotfix's PRs, or QA installed\u002Fsideloaded PowerToys bits. Combines generic winapp ui mechanics (references\u002Fwinapp-ui-testing.md) with PT-specific recipes, per-scenario playbooks (references\u002Fscenarios\u002F), and the helper .ps1 files shipped with this skill.","使用 winapp CLI 端到端验证 PowerToys 行为，覆盖两个场景：(A) 将模块的发布清单与已安装构建进行核对；(B) PR 验证——根据每个 PR 的描述＋diff 推导其清单，然后针对已安装构建（已合并／已发布的 PR，或整个发布／hotfix 集）执行验证；若该 PR 尚未进入构建（未合并或尚未发布），则通过构建＋sideload 模块来执行。通过 UIA invoke／Named Events／settings.json 编辑／剪贴板／GPO／SendInput 驱动每一项，并针对每一项输出结构化的 PASS／FAIL／BLOCKED 结论及证据（其中 FAIL 会区分产品缺陷与过时／模糊的清单项）。当被要求验证模块清单、验证 PR、签署发布／hotfix 的 PR，或对已安装／sideload 的 PowerToys 构建进行 QA 时使用。它结合了通用 winapp UI 机制（references\u002Fwinapp-ui-testing.md）与 PowerToys 专属方法、各场景的 playbook（references\u002Fscenarios\u002F），以及随本技能附带的 .ps1 辅助文件。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpowertoys-verification\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpowertoys-verification\u002FSKILL.md",[342,343],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[51,345,346,347,348,55,323,310,35,349,350,351,352,353,354,355,356,261,357,358,359,360,361],"powertoys verification","verification","testing","cli","use","clipboard","files","build","scenario","module","recipes","verdict","release checklist","winapp cli","pt","prs","invoke",{"skillNo":363,"name":364,"nameZh":365,"description":366,"descriptionZh":367,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":368,"categories":369,"keywords":372,"publishedAt":59},"01M69BCCP7VKNARGZP6VSSW1PV","publish-extension","命令面板扩展发布","Publish your Command Palette extension to the Microsoft Store or WinGet. Use when asked to publish, distribute, release, deploy to store, create MSIX packages, submit to WinGet, set up CI\u002FCD for releases, or automate builds with GitHub Actions.","将你的命令面板（Command Palette）扩展发布到 Microsoft Store 或 WinGet。当用户要求发布、分发、发行、部署到商店、创建 MSIX 包、提交到 WinGet、配置发布用 CI\u002FCD，或使用 GitHub Actions 自动化构建时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002Fsrc\u002Fmodules\u002Fcmdpal\u002FExtensionTemplate\u002FTemplateCmdPalExtension\u002F.github\u002Fskills\u002Fpublish-extension\u002FSKILL.md",[370,371],{"categoryNo":243,"categoryName":244,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":306,"categoryName":307,"taxonomyType":28,"taxonomyTypeDesc":29},[373,374,375,315,10,376,377,378,284,379,310,380,36,381,382,383,384,385,386,387,388,389,390,265],"publish extension","publish","extension","msix","deploy","packages","command palette","actions","github actions","SET","automate","command","up","releases","distribute","submit","palette","CI\u002FCD",{"skillNo":392,"name":393,"nameZh":394,"description":395,"descriptionZh":396,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":397,"categories":398,"keywords":403,"publishedAt":59},"01M69BCAEPE3W6QZF2RTZ9Q28C","add-fallback-commands","命令面板兜底搜索命令","Add fallback commands to your Command Palette extension for catch-all search behavior. Use when asked to add search functionality, query matching, direct input handling, calculator-style evaluation, URL opening, command execution, or results that appear when no other extension matches. Used by 14 of 20 built-in extensions.","为你的 Command Palette 扩展添加兜底命令，以实现通用（catch-all）搜索行为。当被要求添加搜索功能、查询匹配、直接输入处理、计算器式求值、URL 打开、命令执行，或在其他扩展都不匹配时显示结果时使用。20 个内置扩展中有 14 个使用了该功能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FPowerToys\u002Fblob\u002Fmain\u002Fsrc\u002Fmodules\u002Fcmdpal\u002FExtensionTemplate\u002FTemplateCmdPalExtension\u002F.github\u002Fskills\u002Fadd-fallback-commands\u002FSKILL.md",[399,400],{"categoryNo":243,"categoryName":244,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":401,"categoryName":402,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[404,405,406,407,379,247,408,409,410,411,384,349,412,413,389,414,415,263,416,417,265],"add fallback commands","fallback","commands","add","Evaluation","execution","calculator","direct","query","input","URL","extensions","catch","input handling"]