powertoys-verification
Skill142k starsChanged 39 days agoMITView on GitHub
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/shipped PR, or a whole release/hotfix 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 / Named Events / settings.json edits / clipboard / GPO / SendInput, and emit a structured PASS / FAIL / BLOCKED verdict per item with evidence (FAIL distinguishes product defects from stale/ambiguous checklist items). Use when asked to verify a module checklist, validate a PR, sign off a release/hotfix's PRs, or QA installed/sideloaded PowerToys bits. Combines generic winapp ui mechanics (references/winapp-ui-testing.md) with PT-specific recipes, per-scenario playbooks (references/scenarios/), and the helper .ps1 files shipped with this skill.
Trending
More talk lately.about the whole repository
Who's talking about microsoft/PowerToys
- A Hacker News story“Fancy Zones, a tiling window manager”Hacker News · Sep 6, 2019 · 507 points
- A Hacker News story“PowerToys: Windows system utilities to maximize productivity”Hacker News · Sep 5, 2019 · 343 points
- A Hacker News story“PowerToys – Windows system utilities to maximize productivity”Hacker News · May 7, 2019 · 82 points
- snowie2000/mactype“Generic Subpixel Algorithm for Triangular-Structure QD-OLEDs / Pentile / WOLED / Others”GitHub · Apr 20, 2023 · 42 reactions
- A Hacker News story“PowerToys Release 0.70 with Mouse Without Borders and PowerToys Peek”Hacker News · May 24, 2023 · 41 points
The biggest 5 of 111 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 111
Talked about on GitHub, Bluesky and Hacker News (111 times).
On GitHub · 42
- Apr 20, 2023Generic Subpixel Algorithm for Triangular-Structure QD-OLEDs / Pentile / WOLED / Others — snowie2000/mactype42 reactions · 32 comments
- Oct 10, 2023Option to disable subpixel rendering on Windows instead of having to use CLI argument — microsoft/vscode28 reactions · 11 comments
- Mar 31, 2020Powertoys — QL-Win/QuickLook23 reactions · 2 comments
- May 18, 2021Obsolete due to MS PowerToys — tibold/svg-explorer-extension16 reactions · 11 comments
- Apr 30, 2026No results since vscode 1.118 — taooceros/Flow.Plugin.VSCodeWorkspace10 reactions · 4 comments
37 more on GitHub
- Jan 28, 2026(powertoys) 0.97.1's download URL is incorrect — mkevenaar/chocolatey-packages9 reactions · 1 comment
- Oct 13, 2023Tracking issue for DSC Resources — microsoft/winget-cli8 reactions
- Apr 20, 2022Question: When will InfoBadge be available in WinUI3? — microsoft/microsoft-ui-xaml8 reactions · 2 comments
- Apr 8, 2026Suggested fix for Windows host 1.4.6 breaks text input from iOS and Android (Resulted in modifier keys general fix) — rustdesk/rustdesk5 reactions · 38 comments
- Oct 17, 2026Remove version: Microsoft.PowerToys version 0.102.2862.0 — microsoft/winget-pkgs2 reactions · 9 comments
- Jun 11, 2026powertoys@0.100.0: Fix runtime issues by copying required files in the installer script — ScoopInstaller/Extras2 reactions · 3 comments
- Dec 6, 2023DwmGetColorizationParameters fallback in case of failure #593 — lepoco/wpfui2 reactions · 1 comment
- Dec 13, 2022Implement IFileDropResult to support drag&drop of results — lin-ycv/EverythingPowerToys2 reactions
- Sep 29, 2021add other localization resources — Flow-Launcher/Flow.Plugin.WindowsSettings2 reactions · 1 comment
- Apr 27, 2026[codex] Add low memory mode for supported utilities — Michaelihc/PowerToys1 reaction · 3 comments
- Feb 14, 2026Adds Microsoft PowerToys to Tools section — phoboslab/qoi1 reaction
- Jan 30, 2026PowerToys: Correct Typo in chocolateyinstall.ps1 $url64 Value — mkevenaar/chocolatey-packages1 reaction · 3 comments
- Oct 30, 2025[PowerToys Awake] Clarify lock screen behavior, add security considerations — MicrosoftDocs/windows-dev-docs1 reaction · 5 comments
- Oct 28, 2025[PowerToys] Shortcut Guide V2 docs — MicrosoftDocs/windows-dev-docs1 reaction · 15 comments
- Feb 21, 2025Update InvokeTestingPlatformTask to prefer running Exe over `dotnet exec dll` — microsoft/testfx1 reaction · 9 comments
- Feb 11, 2025Add Extensions page to Settings UI — microsoft/terminal1 reaction · 9 comments
- Jan 7, 2025Remove workaround that's not needed anymore — MicrosoftDocs/windows-dev-docs1 reaction · 9 comments
- Dec 18, 2024chore: configure Dependabot for GitHub Actions updates — microsoft/markitdown1 reaction · 1 comment
- Aug 5, 2024Updated Awake settings — MicrosoftDocs/windows-dev-docs1 reaction · 3 comments
- Jul 15, 2024Update PowerToys script to newer tag — mkevenaar/chocolatey-packages1 reaction · 5 comments
- Jul 15, 2024powertoys@0.82.1: Fix for the tag change — ScoopInstaller/Extras1 reaction · 3 comments
- May 14, 2024PowerToys PowerRename random values feature docs — MicrosoftDocs/windows-dev-docs1 reaction · 4 comments
- May 2, 2024Create similarIssues.yml which automatically comments with similar issues on the repo — dotnet/maui1 reaction · 4 comments
- Jan 25, 2024Update copyright year and copyright string — microsoft/WinUI-Gallery1 reaction · 2 comments
- Jan 22, 2024Add PowerToys Text Extractor — dynobo/normcap1 reaction · 2 comments
- Nov 21, 2023Implement FREETYPE_CUSTOM_GEOMETRY environment variable for unusual subpixel formats — rennr/freetype1 reaction · 15 comments
- Nov 13, 2023PowerToys Run for 0.75.1 requires Plugin ID in Main — bostrot/PowerToysRunPluginWinget1 reaction · 6 comments
- Aug 31, 2023[PowerToys][FindMyMouse] Add new activation methods — MicrosoftDocs/windows-dev-docs1 reaction · 2 comments
- Jun 4, 2023[Peek] Update docs to reflect new navigation keys — MicrosoftDocs/windows-dev-docs1 reaction · 6 comments
- May 15, 2023[PowerToys] Add Peek docs — MicrosoftDocs/windows-dev-docs1 reaction · 9 comments
- Apr 5, 2023[SettingsControls] Accessibility improvements — CommunityToolkit/Labs-Windows1 reaction · 2 comments
- Dec 30, 2022Use localized name for shell link programs — Flow-Launcher/Flow.Launcher1 reaction · 7 comments
- Dec 11, 2022Update quick-accent.md — MicrosoftDocs/windows-dev-docs1 reaction · 3 comments
- Oct 22, 2022[Program Plugin] Fix program UID and other bugs — Flow-Launcher/Flow.Launcher1 reaction · 4 comments
- Sep 30, 2022PowerToys text improvements — MicrosoftDocs/windows-dev-docs1 reaction · 12 comments
- Jul 23, 2022[PowerToys] Docs update for activation command change — MicrosoftDocs/windows-dev-docs1 reaction · 10 comments
- Jun 23, 2022v0.59.0 added support for arm — MicrosoftDocs/windows-dev-docs1 reaction · 1 comment
On Bluesky · 41
- Jan 22, 2026Hot tip: Turns out you can disable the Copilot button on the keyboard with the keyboard remapping tool (map it onto the left-ctrl button… — @keithng.bsky.social14 likes and reposts · 2 replies
- Sep 7, 2023برای استخراج متن از تصویر در ویندوز Microsoft PowerToys رو از گیتهاب دانلود و نصب کنید. github.com/microsoft/Po... وارد تنظیمات اون بشید… — @yetanotheruserhere.bsky.social9 likes and reposts
- Jan 8, 2025So, let me get this straight. Microsoft (yes, actually them) developed an OPEN SOURCE addon for Windows that adds a bunch of use of useful… — @dzaladan.eurosky.social5 likes and reposts
- Aug 12, 2023https://learn.microsoft.com/en-us/windows/powertoys/ — @starsetbyte.lol5 likes and reposts · 2 replies
- Jan 6, 2026📦 microsoft / PowerToys ⭐ 127,159 (+46) 🗒 C# Microsoft PowerToys is a collection of utilities that help you customize Windows and… — @github-trending.bsky.social4 likes and reposts
36 more on Bluesky
- May 16, 2025📦 microsoft / PowerToys ⭐ 118,571 (+41) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social3 likes and reposts
- May 7, 2025Microsoft... Faut les sucer en chantant "Microsoft est le plus grand contributeur du libre au monde, Microsoft est beau, Microsoft est… — @zurbo.fr3 likes and reposts · 1 reply
- Mar 23, 2025powertoys fancyzones, get that shit fixed up github.com/microsoft/Po... — @ket.bsky.social3 likes and reposts · 1 reply
- Jan 7, 2025If you're a Windows user, this bundle of efficiency gadgets from @microsoft.com should be definitely on your radar!… — @jankabatek.com3 likes and reposts
- Dec 19, 2024📦 microsoft / PowerToys ⭐ 112,455 (+71) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social3 likes and reposts
- Jan 11, 2024📦 microsoft / PowerToys ⭐ 100,904 (+86) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social3 likes and reposts
- Nov 22, 20232. download Windows PowerToys and find the Text Extractor module. The default keybind Win-Shift-T lets you select text directly from your… — @meganox.myatproto.social3 likes and reposts · 2 replies
- Oct 31, 2023Why?! 😶 Why haven't I installed MS PowerToys sooner? 😒 Love them! 😍 — @ferociousbyte.dev3 likes and reposts · 1 reply
- Dec 12, 2025github.com/microsoft/Po... learn.microsoft.com/en-us/window... indeed, it does! have some relevant links :) — @auralyn.northsky.social2 likes and reposts
- Oct 17, 2025📦 microsoft / PowerToys ⭐ 124,453 (+79) 🗒 C# Microsoft PowerToys is a collection of utilities that help you customize Windows and… — @github-trending.bsky.social2 likes and reposts
- Jul 29, 2025📦 microsoft / PowerToys ⭐ 121,315 (+82) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social2 likes and reposts
- Mar 10, 2025PowerToys has some useful tools too github.com/microsoft/Po... — @emeraldfox.gay2 likes and reposts
- Mar 6, 2025📦 microsoft / PowerToys ⭐ 115,374 (+62) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social2 likes and reposts
- Jan 28, 2025You rang? PowerToys: github.com/microsoft/Po... AI Dev Gallery: github.com/microsoft/AI... — @baldbeardedbuilder.com2 likes and reposts · 2 replies
- Jan 14, 2025It's free, open source, and developed by Microsoft. github.com/microsoft/Po... — @crossmod.bsky.social2 likes and reposts
- Sep 5, 2024📦 microsoft / PowerToys ⭐ 108,627 (+60) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social2 likes and reposts
- Nov 13, 2026🚀 GitHub Intelligence Drop gstack (TypeScript • 🟢) ⭐ 141.5K → https://github.com/garrytan/gstack PowerToys (C • 🟢) ⭐ 141K →… — @githubfeed.bsky.social1 likes and repost
- Sep 11, 2026Power Display within PowerToys would probably work for ya - github.com/microsoft/Po... — @siberionhusky.bsky.social1 likes and repost
- Jun 12, 2026I just starred microsoft/PowerToys on GitHub: https://github.com/microsoft/PowerToys — @chiefgyk3d.com1 likes and repost
- Apr 1, 2026I really find the Mouse Without Borders tool (part of github.com/microsoft/Po...) super useful. There's a few rough edges for features I'd… — @david.gardiner.net.au1 likes and repost · 1 reply
- Jan 31, 2026📦 microsoft / PowerToys ⭐ 128,642 (+61) 🗒 C# Microsoft PowerToys is a collection of utilities that help you customize Windows and… — @github-trending.bsky.social1 likes and repost
- Nov 9, 2025And last but not least, in fact very important, is powertoy, and the command palette github.com/microsoft/Po... — @vnphanquang.com1 likes and repost
- Sep 17, 20251. FlipFlip by StarrHelixx github.com/ififfy/flipf... For studying art REFs 2. PureRef www.pureref.com 2. Draw-IO www.drawio.com —… — @mireu9999.bsky.social1 likes and repost · 1 reply
- May 21, 2025📦 microsoft / PowerToys ⭐ 118,951 (+95) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social1 likes and repost
- Feb 16, 2025GitHub: github.com/microsoft/Po... — @rand0mbits.bsky.social1 likes and repost
- Feb 3, 2025microsoft power toys has a window manager that lets you do exactly that - set custom zones for each display… — @lucyluuu.me1 likes and repost · 1 reply
- Dec 22, 2024Two must haves on every new Windows laptop I have github.com/microsoft/Po... Powertools and www.voidtools.com Everything Pretty much lets… — @nathanbeddoe.com1 likes and repost
- Sep 23, 2024Github, too github.com/microsoft/Po... — @obol.bsky.social1 likes and repost
- Sep 16, 2024https://github.com/microsoft/PowerToys Interesting — @yee.nu1 likes and repost
- Mar 17, 2024Años buscando cómo cambiar el mapa de caracteres de mi teclado en Windows y resulta que existía esto publicado por el propio Microsoft.… — @jmbeas.es1 likes and repost · 1 reply
- Sep 29, 2023📦 microsoft / PowerToys ⭐ 95,738 (+58) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social1 likes and repost
- Sep 4, 2023Favorite productivity tools that I use daily: 1) PowerToys - github.com/microsoft/Po... - fancy zones, text extractor, and more 2) Beeftext… — @drewmaust.bsky.social1 likes and repost
- Oct 18, 2025Ny Powertoys (om du ikke bruker det, get it!) har nå fått Light Switch og Peek! Light Switch endrer automatisk light/dark mode basert på… — @visn.es0 likes and reposts · 1 reply
- Sep 4, 2025📦 microsoft / PowerToys ⭐ 122,846 (+52) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social0 likes and reposts · 1 reply
- Aug 21, 2025I discovered that PowerToys for Windows is a thing. * Spotlight-like search with Alt+Space; * Caffeine-like app to prevent the PC from… — @andrey.nering.dev0 likes and reposts · 1 reply
- Aug 12, 2025Eine Auswahl der Tools: https://github.com/memstechtips/WIMUtil https://github.com/memstechtips/UnattendedWinstall… — @sebastianlaube.layer8.space.ap.brid.gy0 likes and reposts · 1 reply
On Hacker News · 28
- Sep 6, 2019Fancy Zones, a tiling window manager507 points · 163 comments
- Sep 5, 2019PowerToys: Windows system utilities to maximize productivity343 points · 126 comments
- May 7, 2019PowerToys – Windows system utilities to maximize productivity82 points · 29 comments
- May 24, 2023PowerToys Release 0.70 with Mouse Without Borders and PowerToys Peek41 points · 12 comments
- May 3, 2025PowerToys – Windows system utilities to maximize productivity10 points · 2 comments
23 more on Hacker News
- Oct 29, 2020Microsoft PowerToys – Color Picker7 points
- Feb 21, 2021PowerToys6 points
- May 8, 2019Microsoft PowerToys for Windows 106 points · 2 comments
- May 21, 2025The Windows efficiency toolkit open-sourced by Microsoft5 points · 1 comment
- Apr 30, 2020Microsoft PowerToys v0.17.05 points
- May 29, 2023A plea to Microsoft: Subpixel text rendering for WRGB stripe and RGB triangular4 points
- Nov 3, 2023Microsoft PowerToys: utilities for tuning and streamlining Windows experience3 points · 1 comment
- Nov 3, 2022Release v0.64.0 · Microsoft/PowerToys3 points
- Jan 10, 2022PowerToys: Utilities to tune and streamline Windows for greater productivity3 points
- Nov 1, 2021Microsoft PowerToys3 points
- Oct 9, 2025PowerToys has detected an app Always On Top message · Issue #309732 points
- Oct 30, 2023PowerToys: Windows system utilities to maximize productivity2 points
- Feb 9, 2023PowerToys Quick Accent adds the ability to type en and em dashes2 points · 1 comment
- Aug 23, 2020Microsoft PowerToys for Windows 102 points · 1 comment
- Aug 2, 2020Microsoft PowerToys2 points
- May 19, 2020PowerToys v0.18.02 points
- Oct 1, 2023Powertoys bug #2701: [New setting] Check for updates automatically (on/off)1 point
- Nov 3, 2022PowerToys: Windows system utilities to maximize productivity1 point
- May 28, 2021MS PowerToys is a set of utilities for power users to tune their Windows 101 point · 1 comment
- Jun 24, 2020PowerToys Keyboard Manager1 point
- May 30, 2020Windows PowerToys Run1 point
- Oct 29, 2019Microsoft Powertoys v0.12.01 point
- May 8, 2019Microsoft Reboots PowerToys for Windows 101 point
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/.github/copilot-instructions.mdCopilot instructions
- release-note-generationSkill
- ui-tests-local-vmSkill
- ui-tests-migrationSkill
- ui-tests-pipeline-ciSkill
- winmd-api-searchSkill
- wpf-to-winui3-migrationSkill
- add-adaptive-card-formSkill
- add-dock-bandSkill
- add-extension-settingsSkill
- add-fallback-commandsSkill
- publish-extensionSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use this skill whenever you need to verify PowerToys behavior with the winapp CLI and emit a structured PASS / FAIL / BLOCKED verdict with …
- Distinctive: line 95
Every checklist item boils down to ONE of three intents.
- Distinctive: line 219
If your module has NO profile yet:
- Very specific: line 222
After finishing the verification, create the profile using the template in references/modules/README.md so the next agent benefits from …
- Distinctive: line 253
When done, run state hygiene cleanup, write the report including the §G retrospective, archive the workspace (Step 7), and exit.
- Distinctive: line 294
Do NOT chain multiple modules in one report (Scenario A) — one module per run.
- Very specific: line 295
Do NOT mark an item BLOCKED without a concrete, named obstacle (see §3 and references/pre-flight.md §Hard rules).
- Distinctive: line 296
Do NOT invent steps for a VAGUE checklist item — if the spec is too ambiguous to judge, that is FAIL (cause=checklist), not a guess.
- Very specific: line 297
All other rules (foreground guard, always restore mutated state, etc.) live in references/pre-flight.md §Hard rules — follow them.
- Very specific: line 311
winapp ui list-windowsline wrapping: when window titles or process names are long, output may wrap a single window's HWND <id>: … - Very specific: line 331
If you find another gap during verification, update this skill (add a recipe) AND consider proposing the addition to …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to use this skill
Use this skill whenever you need to verify PowerToys behavior with the winapp CLI and emit a structured PASS / FAIL / BLOCKED verdict with evidence (UIA enumeration, log line, settings.json diff, screenshot, etc.). It runs in two scenarios that share the same drive techniques, helpers, taxonomy and report format — and differ only on what the checklist is and what bits you test:
| Scenario | Trigger | Checklist source | Bits under test |
| A — Module checklist | "verify all <Module> items", "sign off Color Picker" | Supplied file (references/release-checklist/<module>.md) | Installed shipped artifact (read-only) |
| B — PR validation | "validate PR #N" (open or merged), "build it and test the fix", "verify the PRs in this release/hotfix", "sign off 0.X.Y" | Derived from each PR's description + diff | Installed shipped artifact if the code is already in the build; build + sideload if it isn't (unmerged / not-yet-released) |
Step 0 for every run — pick the scenario. Read
references/scenarios/index.md(the router + the "bits under test" contract + the verdict-vocabulary mapping), then read the one matching scenario doc (references/scenarios/{module-checklist,pr-validation}.md). For B, also resolve the bits sub-decision ("is the PR's code in the build under test?") before driving. ThisSKILL.mdis the shared engine (drive techniques, helpers, taxonomy, pitfalls) common to both.
Each item produces a PASS / FAIL / BLOCKED verdict with evidence. For A the checklist is supplied; for B you derive it from the PR(s). The skill is the how — independent of any specific checklist.
Required reads (in order)
references/scenarios/index.md— read FIRST: the scenario router (A/B), the "bits under test" contract (installed-and-immutable, vs build-and-sideload for a PR whose code isn't in the build under test), and the verdict-vocabulary mapping. Then read the one matching scenario doc:references/scenarios/module-checklist.md(A) ·pr-validation.md(B).references/winapp-ui-testing.md— the prerequisite UIA mechanics doc (winapp ui verbs, scripted batch testing, file pickers, accessibility audits, screenshots, click-vs-invoke, PostMessage, SendInput cb=40, stunted-UIA recovery, settings-mutation safety contract). Read this first — this skill assumes you know its content and only adds PT-specific extensions.- This
SKILL.md— the shared engine: the 3-bucket drive-technique selector (Step 2), classification taxonomy, critical pitfalls, helper-script catalog. references/modules/<module>.mdIF IT EXISTS — per-module entry-paths, item-by-item recipes, common BLOCKED traps, fixture lists, source citations. Always checkreferences/modules/first. If no profile exists, fall back to this SKILL.md and create one after you finish (template inreferences/modules/README.md).references/explorer-context-menu-flow.mdIF your module registers an Explorer right-click entry (PowerRename, File Locksmith, Image Resizer, New+, Preview Pane, RegistryPreview) — shared synthetic-right-click + UIA-invoke + multi-file-selection flow + module-caption table. Helper:scripts/pt-explorer-contextmenu.ps1.references/pre-flight.md— pre-flight checks, bootstrap snippet, state-hygiene cleanup, final wrap-up, hard rules.references/reporting-format.md— per-item table template, top-of-report summary, step-table rules, anti-patterns, worked example.references/environment-setup.md— RDP/sleep/screensaver/session-attachment gotchas. Cite in BLK-ENV verdicts.references/release-checklist/<module>.md— SCENARIO A ONLY — the supplied checklist for the module under test (one file per module; seereferences/release-checklist/index.md). Each item carries[ADMIN: …]+[CLARITY: …]metadata. This file IS the set of items to verify. For B the checklist is derived from the PR(s) instead (see the scenario doc).
Helper scripts shipped with this skill
| File | Purpose |
scripts/pt-shared-events.ps1 | Invoke-PtSharedEvent, Test-PtSharedEvent, Get-PtSharedEventCatalog — 56-entry friendly-name map for PT Named Events (CmdPal.Show, AOT.Pin, PowerLauncher.Invoke, LightSwitch.Toggle, ZoomIt.Draw, ...). The deterministic, foreground-free, UIPI-immune way to trigger a module. |
scripts/pt-sendinput-chord.ps1 | Send-PtChord, Wait-PtHotkeyAccepted — last-resort SendInput hotkey injection with the cb=40 fix. Use only when the module has no Named Event and the hotkey itself is the test subject. |
scripts/pt-foreground-guard.ps1 | Test-PtForeground, Force-PtForeground, Assert-PtForegroundOrAbort — guard helpers to ensure target window IS foreground before SendInput, so keys don't leak to caller's terminal. |
scripts/pt-cmdpal-recycle.ps1 | Reset-CmdPalAppX, Reset-CmdPalToHome, Test-CmdPalDegraded, Invoke-CmdPalQuery — CmdPal-specific lifecycle (handles TextChanged-broken state, BackButton navigation, AppX recycle). |
scripts/pt-admin-probe.ps1 | Test-PtAdmin, Test-ProcessElevated, Test-PtRunnerAdmin — TokenElevation probes to verify your session and the PT runner have the right elevation for the test. |
scripts/pt-clipboard-diff.ps1 | Get-PtClipboardFormats, Compare-PtClipboardFormatDiff, Set-PtClipboardRich — multi-format clipboard inspection for Advanced Paste tests. |
scripts/pt-explorer-com.ps1 | Get-PtExplorerWindows, Open-PtExplorerAtPath, Select-PtExplorerFiles, Invoke-PtPeekWithExplorerSelection, Test-PtInteractiveDesktop — drive Explorer via Shell COM to set up multi-file selections, then trigger Peek/FZ/PowerRename/Image Resizer/Workspaces via their hotkeys. Use this for Peek L706-L709, L719-L720 and any test that needs an Explorer file selection. |
scripts/pt-explorer-contextmenu.ps1 | Test-PtDesktopInteractive, Open-PtExplorerContextMenu, Open-PtBackgroundContextMenu, Invoke-PtContextMenuItem, Get-PtContextMenuItems — open Win11's real context menu coordinate-free (COM-select the file → focus it → Shift+F10; coordinate right-click only as fallback), then UIA-invoke a menu item by name. Canonical user-flow path for File Locksmith / Image Resizer / PowerRename / New+ menu-presence + launch tests — prefer selecting a file (Open-PtExplorerContextMenu -FileName) over the background menu; open one menu per fresh window; assert menu TYPE + focus, not module presence. Needs an unlocked interactive desktop. See references/explorer-context-menu-flow.md for the full write-up, stability notes, and per-module captions. |
scripts/pt-shell-verbs.ps1 | Get-PtShellVerbs, Invoke-PtShellVerb, Reset-PtShellComCache — enumerate + invoke CLASSIC HKCR shell verbs via Shell.Application COM. NOT for PT context-menu modules on Win11 (PT registers via IExplorerCommand, not classic — use pt-explorer-contextmenu.ps1 for those). Useful for non-PT verbs (Open/Edit/Send-to/third-party) and as a negative check that PT verbs are NOT classic-shadowed. |
scripts/pt-state.ps1 | Get-PtSettings, Get-PtModuleSettings, Get-CmdPalSettings, Get-PtRunnerLogTail, Test-PtModuleEnabled, Test-PtModuleProcess, Restart-PtRunner, Backup-PtModuleSettings, Restore-PtModuleSettings — common state checks. |
scripts/pt-nonelevated.ps1 | Start-PtNonElevated, Invoke-PtNonElevatedCapture — launch an exe at Medium IL (non-elevated) from an elevated agent shell via a one-shot RunLevel Limited scheduled task. Required for elevation-visibility tests (a non-elevated module must NOT see higher-integrity processes; e.g. File Locksmith L649/L650). Verify the result with Test-ProcessElevated. |
Dot-source them all at once in your bootstrap (the Get-ChildItem loop loads every helper — see Step 1 — Bootstrap):
$skill = '<this skill folder>' # the folder containing SKILL.md, e.g. <PT-repo>\.github\skills\powertoys-verification
Get-ChildItem "$skill\scripts" -Filter '*.ps1' | ForEach-Object { . $_.FullName }Step 1 — Bootstrap
$module = 'AdvancedPaste' # or 'CmdPal', 'FZ', 'Peek', ...
# Work out of %TEMP% during the run (keeps screenshots/scratch off OneDrive); move to the
# sign-off archive at the very end (see Step 7).
$workspace = "$env:TEMP\verify-$module-$(Get-Date -Format yyyyMMdd-HHmmss)"
New-Item -ItemType Directory -Path $workspace, "$workspace\artifacts" -Force | Out-Null
$report = "$workspace\verify-$module.md"
# Dot-source helpers
$skill = '<this skill folder>' # set once at top of your script (the folder containing SKILL.md)
Get-ChildItem "$skill\scripts" -Filter '*.ps1' | ForEach-Object { . $_.FullName }
# Verify environment
"=== Environment ===" | Tee-Object $report -Append
"IsAdmin: $(Test-PtAdmin)" | Tee-Object $report -Append
$rn = Test-PtRunnerAdmin
"PT runner: PID=$($rn.Pid) Elevated=$($rn.Elevated)" | Tee-Object $report -Append
# The checklist source depends on the scenario (see references/scenarios/):
# A - read the supplied references/release-checklist/<module>.md
# B - derive 1-3 items from each PR's `gh pr view/diff`; then drive the installed bits, OR
# build+sideload if the code isn't in the build under test (pr-validation.md)
# Then iterate the items (see Step 6 - Verifier loop).Step 2 — Drive techniques
Every checklist item boils down to ONE of three intents. Pick the bucket from the verb in the item, then use the best technique inside it. Stop at the first technique that works.
| Intent | Verb-cues in the checklist item | Bucket |
| Change a setting | "default is X", "setting persists", "is enabled/disabled by default", "value Y is accepted" | §2.A |
| Interact with a UI element | "click X", "toggle X", "type into Y", "X button is visible", "selecting Z does W" | §2.B |
| Trigger a module action | "pressing hotkey X opens Y", "module launches", "Z happens when invoked" | §2.C |
§2.A — Change a setting (single technique)
Edit the JSON file the module reads, wait for the file-watcher debounce, assert, then restore from backup. Zero external tools.
$bk = Backup-PtModuleSettings -ModuleDir AdvancedPaste
try {
$j = Get-PtModuleSettings -ModuleDir AdvancedPaste
$j.properties.IsAdvancedAIEnabled.value = $false
$j | ConvertTo-Json -Depth 12 | Set-Content "$env:LOCALAPPDATA\Microsoft\PowerToys\AdvancedPaste\settings.json"
Start-Sleep -Seconds 4 # debounce — runner re-reads via file-watcher
# ... assertion ...
} finally {
Restore-PtModuleSettings -ModuleDir AdvancedPaste -BackupPath $bk
}For shell-extension modules (PowerRename, File Locksmith, Image Resizer, New+) edit the module-owned file under
%LOCALAPPDATA%\Microsoft\PowerToys\<Module>\, thenRestart-PtRunner(and on stubborn handlers, restart Explorer). See pitfall #12 below.If you need to flip the enabled bit for a whole module, debounce isn't enough — call
Restart-PtRunnerafter the write.
§2.B — Interact with a UI element (2 techniques, most-reliable first)
B1. UIA invoke / set-value — always try first
winapp ui invoke 'SubmitButton' -a PowerToys.Settings
winapp ui set-value 'QueryTextBox' '=2+3*4' -a PowerToys.PowerLauncher
Start-Sleep -Milliseconds 600
winapp ui inspect -a PowerToys.PowerLauncher --depth 7 -i 2>$nullInvoke goes through UIA InvokePattern COM IPC — no foreground steal, no UIPI. See references/winapp-ui-testing.md §CRITICAL — invoke vs click.
B2. PostMessage WM_KEYDOWN/CHAR — when UIA can't reach the target
For elevated targets, AppX windows with stunted UIA trees, or keystrokes that UIA set-value can't dispatch (arrow-key ListView nav, Enter to commit). See references/winapp-ui-testing.md §CRITICAL — Keystroke input that bypasses UIPI (PostMessage). Esc is often filtered by WinUI 3 raw-input hook — use BackButton invoke instead.
§2.C — Trigger a module action (2 techniques, most-reliable first)
| C1 Named Event | C2 SendInput chord | |
| Proves | The action fires (the path downstream of the hotkey). Not that the chord is bound. | The full path: real keys → runner hook → action. The only method that proves the chord binding itself. |
| Robustness | Highest — no foreground, no input desktop, UIPI-immune; works headless / RDP-minimized. | Lowest — needs an attached input desktop (else BLK-ENV), steals foreground, can't inject OS-reserved chords (Win+L / Win+Tab). |
| Precondition | Owning module process is running (the event only exists while it is). | Attached input desktop + foreground. |
Pick by what the item asserts: for "does action Y happen" use C1; for "pressing chord X triggers Y" or "the rebind takes effect", C1 is insufficient (it bypasses the chord) — use C2, or C1 plus a runner-log line proving the chord was accepted.
C1. Named Event signal — preferred
Invoke-PtSharedEvent -Name 'CmdPal.Show' # opens CmdPal without keyboard
Invoke-PtSharedEvent -Name 'AOT.Pin' # pins foreground window via AOT
Invoke-PtSharedEvent -Name 'PowerLauncher.Invoke' # opens PT Run
Invoke-PtSharedEvent -Name 'LightSwitch.Toggle' # toggles theme
Get-PtSharedEventCatalog | Format-Table # full listNo synthetic input — it's a SetEvent on the kernel event the module waits on, the same downstream path the runner's hotkey handler signals. Verify the side effect via UIA (winapp ui list-windows -a <module>), a log line (Get-PtRunnerLogTail), or settings.json diff (Get-PtModuleSettings). The event only exists while the owning process runs, so Test-PtSharedEvent doubles as an "is the module alive" check.
C2. SendInput chord — last resort / chord-binding verification
Real synthetic keys. Loud (steals foreground) and fragile, but the only way to prove the activation chord is actually bound. The runner's global keyboard hook catches the chord regardless of focus, so the precondition is just an attached input desktop (pitfall #7; on a detached desktop SendInput returns ACCESS_DENIED and the keys vanish → mark BLK-ENV).
# Precondition: input desktop attached? 0 = detached → don't bother sending, mark BLK-ENV (pitfall #7)
if ([PtFg]::GetForegroundWindow() -eq [IntPtr]::Zero) { throw 'No input desktop — BLK-ENV (pitfall #7)' }
Send-PtChord -Mods 0x5B,0x10 -Key 0x43 # Win+Shift+C → Color Picker (cb=40 fix is inside the helper)
$line = Wait-PtHotkeyAccepted -ModuleHint 'Color' -TimeoutSec 3
if (-not $line) { throw 'Runner did not log hotkey invocation' }Rare fallback — a module that uses its own
RegisterHotKeyand exposes no Named Event. PostWM_HOTKEY(0x312) straight to its message window (find the HWND viaEnumWindows+GetClassNamethroughAdd-Type— same P/Invoke pattern aspt-foreground-guard.ps1). No current PT module needs this: ZoomIt — the obvious candidate — also waits on Named Events (ZoomIt.Zoom,ZoomIt.Draw, …; source:Zoomit.cppCreateEventW(ZOOMIT_ZOOM_EVENT)), so drive it with C1.
Different case — sending keys into a specific focused window (e.g. a CmdPal alias like
=/</>thatwinapp ui set-valuecan't trigger because it bypasses TextChanged; seereferences/modules/command-palette.md). Here the keystrokes go to whatever currently has focus, so you must bring the target window foreground first:Assert-PtForegroundOrAbort -AppId Microsoft.CmdPal.UI # -AppId = the window you're typing INTO Send-PtChord -Key 0xBB # '=' (no modifiers) to trigger the calculator aliasThe
-AppIdis whatever window you're targeting — it's not CmdPal-specific. CmdPal is just the worst offender: its AppX foreground-lock drops focus after the firstSetForegroundWindow, so without the guard the keys silently leak to your terminal.
Verdict decisions (PASS if behavior matches spec; FAIL if the product is wrong or the checklist item is stale/ambiguous; BLOCKED if you couldn't run the check after ≥2 entry-paths) live in Step 3 — Classification taxonomy below. Don't put verdict logic in Step 2.
Step 3 — Classification taxonomy
Verdicts (assign exactly ONE per item)
| Verdict | Meaning |
| PASS | You drove/observed the behavior and it matched the spec. A pass is a pass — there is no PASS sub-type. Record how you verified in the item's Category field as free text, e.g. "full UIA flow + asserted popup", "settings.json round-trip", "runner-log line", "Shell COM / IExplorerCommand", "screenshot pixel-diff", "output matches fixture", "process spawn/exit", "module CLI", "admin GPO write". |
| FAIL | The item is red — something is wrong and action is required. Treat the checklist as test code: a test fails because the product is wrong or the test/checklist is wrong. Record the cause in the Category field: <br>• product — behavior contradicts a valid spec → file a product bug (repro + expected-vs-actual + screenshot/log + build version). <br>• checklist — the item itself is broken: stale (feature was removed/deprecated — cite the source grep proving it's gone) or ambiguous ([CLARITY: VAGUE-*], no definable pass/fail criterion — quote the original wording). Fix the checklist, not the product. |
| BLOCKED | Couldn't run the check in this environment / with this toolset after ≥2 entry-paths — inconclusive, like a skipped test. Not red against the product. Tag exactly one concrete reason below. |
BLOCKED reasons
Different failure reasons stay distinct because each drives a different remediation.
| Reason | When |
BLK-ENV | This specific shell can't drive it (non-interactive / Session 0, RDP-minimized, missing Explorer windows) but a normal interactive desktop CAN. Triggers a "re-run on an interactive desktop" recommendation. Cite references/environment-setup.md. |
BLK-HARDWARE | Needs hardware this session lacks — multi-monitor, 2 physical PCs (MWB), real camera / battery / game-mode, or live screen/device capture. State the specific shortfall in Category. |
BLK-DRAG-REQUIRED | Needs a real mouse-drag gesture; synthetic drag is insufficient (e.g. FancyZones snap). |
BLK-DESTRUCTIVE | Reboot, hibernate, install/uninstall, or mid-session AppX uninstall — would damage the run environment. |
BLK-VISUAL-RENDER | The thing to verify is a rendered surface UIA can't see — WinUI3 islands, WebView2, or Explorer-side context-menu rendering/localization. Needs pixel/OCR or a manual eyeball. |
BLK-OVERLAY-INPUT-BLOCK | Overlay both blocks input and excludes itself from capture (BlockInput + WDA_EXCLUDEFROMCAPTURE, e.g. ZoomIt draw mode) — can neither drive nor screenshot it. |
BLK-EXTERNAL-APP | Needs a 3rd-party tool, a real API key, or a system locale change. |
Rule of thumb: in your report, separate the two FAIL causes — product FAILs are bugs to file; checklist FAILs are items to rewrite or prune. BLOCKED is only for a concrete, named obstacle (cite it), never a substitute for effort. If a large share of a module's items are checklist-FAILs, the checklist needs an overhaul before re-verifying.
Step 4 — Report format
See references/reporting-format.md for the full template (per-item table, summary, step-table rules, anti-patterns, worked example). Don't paraphrase; copy the templates literally. This includes a mandatory §G Retrospective — a self-reflection on the run itself: list every friction encountered (classified by source — SKILL-UNCLEAR / WINAPP-TOOL-BUG / WINAPP-DOC-UNCLEAR / HELPER-FLAW / PT-PRODUCT / ENVIRONMENT — with severity + minutes/attempts cost + a suggested fix), or write Everything was smooth — no friction encountered. if there was none. This is how the skill improves run over run, so don't skip it.
Step 5 — State hygiene (CRITICAL)
See references/pre-flight.md §State hygiene for the backup/restore pattern and cleanup commands. Always wrap mutations in try { ... } finally { Restore-* }.
Module-specific quick reference
Look for references/modules/<module>.md FIRST. Each per-module profile contains paths, entry-paths, item-by-item recipes, common BLOCKED traps, fixture lists, and source citations specific to that module.
Catalog: see references/modules/README.md. Currently authored: peek.md, power-rename.md, file-locksmith.md, image-resizer.md.
If your module has NO profile yet:
- Fall back to the generic drive-stack in §2 above.
- For Explorer-context-menu modules (PowerRename / File Locksmith / Image Resizer / New+ / Preview Pane / RegistryPreview): read
references/explorer-context-menu-flow.mdfirst — it has the synthetic-right-click + UIA-invoke pattern with stability rules and module-caption table. Per-module profiles cite it and only document module-specific quirks. The canonical helper isscripts/pt-explorer-contextmenu.ps1. - After finishing the verification, create the profile using the template in
references/modules/README.mdso the next agent benefits from what you learned.
Quick one-liners for modules without dedicated profiles (will be moved to per-module files as they're authored):
- Advanced Paste:
Invoke-PtSharedEvent -Name 'AdvancedPaste.ShowUI'+Set-PtClipboardRich+Compare-PtClipboardFormatDiff(seescripts/pt-clipboard-diff.ps1). - Command Palette:
Invoke-PtSharedEvent -Name 'CmdPal.Show'+Invoke-CmdPalQuery(auto-handles degraded state viascripts/pt-cmdpal-recycle.ps1). Settings file viaGet-CmdPalSettings. Full profile + AppX/alias/foreground quirks:references/modules/command-palette.md. - PowerToys Run:
Invoke-PtSharedEvent -Name 'PowerLauncher.Invoke'+winapp ui set-value QueryTextBox. Window has 2 HWNDs — filter by width ≥ 800. - FancyZones:
Invoke-PtSharedEvent -Name 'FancyZones.ToggleEditor'. Snap-drag tests are usuallyBLK-DRAG-REQUIRED; settings verify via settings.json round-trip. - Light Switch:
Invoke-PtSharedEvent -Name 'LightSwitch.Toggle' | LightSwitch.Light | LightSwitch.Dark. Verify viaHKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme. - Always on Top:
Invoke-PtSharedEvent -Name 'AOT.Pin'. VerifyWS_EX_TOPMOSTon pinned HWND. - Hosts File Editor (admin):
Invoke-PtSharedEvent -Name 'Hosts.Show' | Hosts.ShowAdmin. - GPO (admin): write
HKLM:\Software\Policies\PowerToys+Restart-PtRunner+Get-PtRunnerLogTail -Pattern 'GPO sets'. Cleanup:Remove-Item HKLM:\Software\Policies\PowerToys -Recurse -Force. - Mouse Without Borders: most items
BLK-HARDWARE(need 2 physical PCs). - ZoomIt: most modes inside
BlockInput + WDA_EXCLUDEFROMCAPTUREoverlay →BLK-OVERLAY-INPUT-BLOCK. Mode triggers:ZoomIt.Zoom,ZoomIt.Draw,ZoomIt.Break, etc. - Peek: see
references/modules/peek.mdfor the full recipe (CLI back-door + Shell.Application + Ctrl+Space).
Step 6 — Verifier loop per checkbox
For each item in module:
1. Pick a bucket from the verb in the item (§2.A change a setting / §2.B interact with UI / §2.C trigger an action)
2. Walk that bucket's techniques top-to-bottom; stop at the first one that drives the item
3. Compare observed behavior to the spec:
• matches the spec → PASS (note the method in Category)
• product behaves wrong → FAIL, cause=product (repro + expected/actual + screenshot/log + build)
4. Checklist item itself is broken — feature removed from source, or spec too ambiguous to judge → FAIL, cause=checklist (cite the source proof / quote the wording)
5. Couldn't drive it after ≥2 entry-paths → BLOCKED with a concrete reason (§3)
6. Record verdict + evidence + cleanup
7. Next itemWhen done, run state hygiene cleanup, write the report including the §G retrospective, archive the workspace (Step 7), and exit.
Step 7 — Archive the workspace to the sign-off folder (do this LAST)
The live run works out of %TEMP%, but the final deliverable must live in the module sign-off archive so reports persist and sync via OneDrive:
# After the report is written AND the artifact-existence check passes:
$signoff = "$env:OneDrive\PowerToys\Module-Signoff" # e.g. C:\Users\<you>\OneDrive - Microsoft\PowerToys\Module-Signoff
New-Item -ItemType Directory -Path $signoff -Force | Out-Null
$final = Join-Path $signoff (Split-Path $workspace -Leaf)
Move-Item -Path $workspace -Destination $final -Force
# Report uses RELATIVE artifacts/… paths, so all links stay valid after the move.
Write-Host "Final report: $(Join-Path $final (Split-Path $report -Leaf))"Print the moved report path (under …\PowerToys\Module-Signoff\) as the last line — never the %TEMP% path.
Invocation & placeholders
This skill auto-activates for either of the two scenarios above (verify a module checklist, or
validate a PR — open, merged, or a whole release/hotfix set). Step 0: resolve the scenario via
references/scenarios/index.md and set the BITS: contract (for B, also the bits sub-decision:
"is the PR's code in the build under test?") before driving anything. Scope rule: one module per
run for Scenario A, one PR per report folder for B. Resolve these placeholders:
| Placeholder | Substitute with |
<Module> | Exact display name, e.g. Color Picker, Command Palette, PowerToys Run, FancyZones (see references/release-checklist/index.md). |
<module> | Lowercase-kebab-case for file lookup, e.g. color-picker, command-palette, power-rename — used for BOTH references/release-checklist/<module>.md (A's checklist) and references/modules/<module>.md (profile, if any). |
<ModuleDir> | settings.json sub-dir under %LOCALAPPDATA%\Microsoft\PowerToys\ (e.g. AdvancedPaste, FancyZones, PowerToys Run (with space)). |
<N> | Scenario A: total item count for the module. Scenario B: the GitHub PR number. |
Execution order: references/scenarios/index.md (pick scenario + set BITS) → the matching
references/scenarios/<scenario>.md (inputs, discipline, and build+sideload deploy steps for B when the code isn't in the build) → references/pre-flight.md
→ per item, the §2 drive-stack (this file) → references/reporting-format.md per-item table →
Step 6 verifier loop → references/pre-flight.md §Final wrap-up → Step 7 archive → print the final report path.
What NOT to do
- Do NOT skip Step 0 — drive nothing until you've set the scenario and the
BITS:contract. A run that mutates the wrong bits (sideloads when the code is already installed, or drives the stale installed binary when validating unreleased code) is invalid regardless of the verdict. - Do NOT chain multiple modules in one report (Scenario A) — one module per run. For B, one PR per report folder.
- Do NOT mark an item BLOCKED without a concrete, named obstacle (see §3 and
references/pre-flight.md§Hard rules). - Do NOT invent steps for a VAGUE checklist item — if the spec is too ambiguous to judge, that is FAIL (cause=checklist), not a guess.
- All other rules (foreground guard, always restore mutated state, etc.) live in
references/pre-flight.md§Hard rules — follow them.
Critical pitfalls (PT-specific)
Reference, not a sequential step — skim before you start and consult while driving. Numbered for cross-reference only.
- Each module's own
<Module>\settings.jsonIS hot-reloaded via per-module file watcher (~3s debounce). EXCEPTION — shell-extension/context-menu modules do NOT read this file; see pitfall #12. - GPO HKLM vs HKCU: HKLM wins when both are set with conflicting values.
- HKLM
Software\Policies\PowerToyswrites require admin — verify withTest-PtAdmin. Stop-Processis policy-blocked in this session unless you pass-Id <int>literally. Always inline the PID.- WinUI 3 islands are largely invisible to UIA (QuickAccess flyout, RegistryPreview Monaco editor, Peek WebView2). For these, fall back to screenshot + OCR or settings.json diff.
- OS-reserved chords (Win+L, Win+Tab) are consumed by Windows before any hook and cannot be injected via SendInput at all.
- RDP minimized =
SendInputdenied. Even thoughqusershows the remote session State=Active, minimizing the mstsc client detaches the session's input desktop.GetForegroundWindow()returns 0;SendInputreturnsACCESS_DENIED (5); tests that need synthetic input fail. Same applies to: closed mstsc with X (Disconnected), local PC sleep (RDP TCP drops), remote screensaver/workstation lock, remote machine sleep. Runscripts/pt-session-diagnose.ps1in pre-flight to detect, and seereferences/environment-setup.mdfor the full per-scenario table +powercfgsetup commands the user should run before starting the agent. The agent should callTest-PtForegroundmid-run before each input-injection-dependent item; if it returns False, markBLK-ENVwith mitigation citation (an environment block — not a product FAIL). winapp uiarg-order quirk:winapp ui inspect --depth N -w $hwndmay intermittently fail to parse--depthas Int64 if-wprecedes it. Put-w $hwndAFTER--depth Nor as the first arg before any flag. If you see "Cannot bind argument" or numeric parse errors, swap the order and retry.winapp ui list-windowsline wrapping: when window titles or process names are long, output may wrap a single window'sHWND <id>: "<title>" ... (proc, PID N)across multiple lines, breaking single-line regexes. Either pipe throughOut-Stringand use a multi-line regex, or use--json(when supported) and parse structured output.- De-elevation: launching a NON-elevated (Medium IL) child from an elevated agent shell. The drive-stack only covers gaining more privilege; some items need the opposite. From a High-IL shell you cannot
Start-Processa Medium-IL child directly. Usescripts/pt-nonelevated.ps1(Start-PtNonElevated/Invoke-PtNonElevatedCapture) — a one-shotRunLevel Limited+LogonType Interactivescheduled task that lands on the user's desktop at their filtered token. Confirm withTest-ProcessElevated. Needed for elevation-visibility pairs (File Locksmith L649/L650: non-elevated FL must not see the elevated runner; elevated FL must). - Win11 packaged context menus are not observable without real Explorer. Modern PT context-menu entries are packaged
IExplorerCommands (sparse MSIX, e.g. File Locksmith CLSID{AAF1E27D-…}). They are NOT enumerable via classicShell.Application … FolderItem.Verbs()and NOTCoCreate-able from a non-Explorer host (REGDB_E_CLASSNOTREGISTERED). So "verify the entry appears / no longer appears" cannot be pixel-verified by API. Verify instead via the gate flag the entry'sGetStatereads (e.g. generalenabled.<Module>) + a source citation that maps it toECS_HIDDEN; treat the literal render asBLK-VISUAL-RENDERand recommend a 5-second manual right-click. (Disabling does NOT unregister the package — it staysStatus Ok; the entry is hidden dynamically.) - Shell-extension modules read a module-OWNED settings file, NOT the PT-store
<Module>\settings.json. PowerRename, File Locksmith, Image Resizer, and New+ context-menu handlers and exes run outside the runner (hosted by Explorer / launched on demand) and cannot use the PT-Settings IPC. Each reads its own json in%LOCALAPPDATA%\Microsoft\PowerToys\<Module>\at process/handler launch (registry-migratedCSettings/Settingsclasses —lib/Settings.cppLoad→ParseJson). The PT-Settings UI writes the PT-storesettings.json(thebool_*/int_*fileGet-PtModuleSettingsreads); the runner's module DLL syncs PT-store→module-store only on a Settings-UI change event — so the PT-store file can be stale for days and editing it has no effect on the running shell handler. To drive a settings item on these modules, edit the module-owned file directly (drive-stack §2.A) and relaunch the module (or restart runner+Explorer for the menu handlers), then restore.
Pitfall #12 — module-owned files + their key style (verified 2026-06-10 against <PT-repo>\src):
| Module | Module-owned file (under …\PowerToys\<Module>\) | Key style | PT-store settings.json keys (UI/Get-PtModuleSettings) |
| PowerRename | power-rename-settings.json (+ power-rename-last-run-data.json, search-mru.json, replace-mru.json) | ShowIcon, ExtendedContextMenuOnly, PersistState, MRUEnabled, MaxMRUSize, UseBoostLib | bool_show_icon_on_menu, bool_show_extended_menu, bool_persist_input, bool_mru_enabled, int_max_mru_size, bool_use_boost_lib |
| File Locksmith | file-locksmith-settings.json | showInExtendedContextMenu | bool_show_extended_context_menu |
| Image Resizer | image-resizer-settings.json | (resize sizes/encoder/etc.) | mirrored imageresizer* keys |
| New+ | NewPlus\settings.json (sub-folder NewPlus, verified on disk + constants.h powertoy_name=L"NewPlus") | HideFileExtension, HideStartingDigits, TemplateLocation, ReplaceVariables, BuiltInNewHidePreference | mirrored newplus* keys |
Confirm which file actually drives behavior with a quick A/B: edit the module-owned file → relaunch → observe; if behavior follows, that's the source of truth (PowerRename L394/L395/L396/L397/L409 were all driven this way).
- Foreground the window under test, and close per-test Explorer windows — for clean recordings AND reliable screenshots. When a module UI opens (e.g.
PowerToys.PowerRename.exelaunched with file args, or the Settings window), it can open behind a previously-opened Explorer/temp folder that still holds the foreground z-order, so a human watching / a screen recording sees the wrong window. Two complementary rules (do both):- (a) Foreground the target before you observe/screenshot/drive it. Call
Force-PtForeground -AppId <appId>(scripts/pt-foreground-guard.ps1) right after the window appears — e.g.Force-PtForeground -AppId PowerToys.PowerRenameafterStart-Process …PowerToys.PowerRename.exe.winapp ui screenshot -w <hwnd>captures by HWND so it technically works when the window is buried, but a recording only shows the top window, and SendInput / coordinate-click fallbacks need real foreground anyway. This is the primary fix. (CmdPal's AppX foreground-lock is the exception — seereferences/modules/command-palette.md; useAssert-PtForegroundOrAbort.) - (b) Close each Explorer window when its item's menu tests end. The "open one menu per fresh Explorer window" rule (context-menu flow) piles up windows that fight for z-order and clutter the capture. Track the HWNDs you open and close them per item (not only in global cleanup):
(New-Object -ComObject Shell.Application).Windows() | Where-Object { $_.LocationURL -match '<your-fixture-tag>' } | ForEach-Object { $_.Quit() }. Match your disposable-fixture folder name so you never close the user's own Explorer windows.
- (a) Foreground the target before you observe/screenshot/drive it. Call
If you find another gap during verification, update this skill (add a recipe) AND consider proposing the addition to references/winapp-ui-testing.md if it's generic enough.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

