/mas-desktop-ops:microsoft-powertoysfrom mas-desktop-ops
Configures PowerToys FancyZones, Run, Keyboard Manager, and Awake; automates settings.json manipulation and troubleshoots Windows utility behavior.
Ships in mas-desktop-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Microsoft PowerToys is a suite of system utilities developed by Microsoft in C++ and C# / WinUI 3 to tune and streamline the Windows desktop experience. The architecture comprises a central Runner Daemon (PowerToys.exe) orchestrating independent submodule executables: FancyZones (PowerToys.FancyZones.exe) for multi-zone window grid snapping, PowerToys Run (PowerToys.PowerLauncher.exe) for modular desktop search, Keyboard Manager (PowerToys.KeyboardManagerEngine.exe) for low-level key remapping, Awake (PowerToys.Awake.exe) for execution state power overrides, and Text Extractor (PowerToys.TextExtractor.exe) for Windows Media OCR. Claude operates as a Principal Windows Systems Architect and PowerToys Operations Specialist, specializing in programmatic settings.json configuration, FancyZones layout automation, UIPI privilege level orchestration, and submodule crash diagnostics.
┌─────────────────────────────────────────────────────────────┐
│ Microsoft PowerToys Stack │
│ │
│ Central Runner & WinUI 3 Dashboard │
│ ├── `PowerToys.exe` Central Controller & Tray Host │
│ ├── WinUI 3 Settings Dashboard (`PowerToys.Settings.exe`) │
│ └── Central Config Store (`%LOCALAPPDATA%\Microsoft\PT\`) │
│ │
│ Submodule Process Ecosystem │
│ ├── FancyZones (`PowerToys.FancyZones.exe` Win32 Hooks) │
│ ├── PowerLauncher (`PowerToys.PowerLauncher.exe` WPF / C#) │
│ ├── KeyboardManager (`PowerToys.KeyboardManagerEngine.exe`)│
│ ├── Awake (`PowerToys.Awake.exe` `SetThreadExecutionState`)│
│ └── TextExtractor (`Windows.Media.Ocr` Screen Scraper) │
└─────────────────────────────────────────────────────────────┘
settings.json Manipulation: Author PowerShell and Python scripts to automate enabling/disabling PowerToys modules, updating hotkey bindings, and deploying standardized enterprise configurations.zones-settings.json templates defining column widths, row splits, and canvas padding.PowerToys.Awake.exe via CLI parameters (--mode=indefinite --display-on=true) during long-running builds.Save this script as Configure-PowerToys.ps1:
<#
.SYNOPSIS
Microsoft PowerToys Programmatic Configuration & Daemon Manager
Enables/disables specific modules and applies custom hotkeys via JSON settings manipulation.
#>
$PowerToysSettingsDir = "$env:LOCALAPPDATA\Microsoft\PowerToys"
$GlobalSettingsFile = "$PowerToysSettingsDir\settings.json"
function Set-PowerToysModuleState {
param (
[string]$ModuleName,
[bool]$Enabled
)
if (-not (Test-Path $GlobalSettingsFile)) {
Write-Error "PowerToys settings file not found at: $GlobalSettingsFile"
return
}
Write-Host "--- [CONFIGURING POWERTOYS MODULE: $ModuleName] ---"
# 1. Read and Parse Global settings.json
$jsonContent = Get-Content -Path $GlobalSettingsFile -Raw | ConvertFrom-Json
# 2. Update Module State in 'enabled' Dictionary
if ($jsonContent.enabled.PSObject.Properties[$ModuleName]) {
$jsonContent.enabled.$ModuleName = $Enabled
Write-Host "• Updated '$ModuleName' Enabled State -> $Enabled"
} else {
Write-Warning "Module '$ModuleName' not found in settings.json. Adding property..."
$jsonContent.enabled | Add-Member -NotePropertyName $ModuleName -NotePropertyValue $Enabled -Force
}
# 3. Save Back to Disk
$jsonContent | ConvertTo-Json -Depth 10 | Set-Content -Path $GlobalSettingsFile -Encoding UTF8
Write-Host "✅ Settings saved successfully to $GlobalSettingsFile"
# 4. Gracefully Restart PowerToys Runner to Apply Changes
Write-Host "Restarting PowerToys background runner..."
Stop-Process -Name "PowerToys" -Force -ErrorAction SilentlyContinue
Start-Sleep -Seconds 1
Start-Process -FilePath "$env:LOCALAPPDATA\PowerToys\PowerToys.exe" -ErrorAction SilentlyContinue
Write-Host "✅ PowerToys restarted."
}
# Example Executions:
# Set-PowerToysModuleState -ModuleName "FancyZones" -Enabled $true
# Set-PowerToysModuleState -ModuleName "Awake" -Enabled $true
# Set-PowerToysModuleState -ModuleName "ColorPicker" -Enabled $false
| Issue & Failure Signature | Root Cause Analysis | Diagnostic & Resolution Pathway |
|---|---|---|
| FancyZones Fails to Snap Elevated Windows | PowerToys running with standard user privileges blocked by UIPI (User Interface Privilege Isolation). | In PowerToys Settings $\rightarrow$ General, toggle Always run as administrator to On. |
| PowerToys Run (Alt + Space) Hangs or Crashes | A corrupted Wox/Community plugin or unindexed path causing an unhandled deadlock in WPF. | In Settings $\rightarrow$ PowerToys Run $\rightarrow$ Plugins, disable suspect third-party plugins or clear %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\. |
| Keyboard Manager Remappings Stop Working | PowerToys.KeyboardManagerEngine.exe low-level hook dropped following Windows sleep/wake cycle. | In Task Manager, terminate PowerToys.KeyboardManagerEngine.exe; the runner will automatically respawn it. |
| Text Extractor Displays "OCR Failed" | Required Windows OCR Language Pack not installed for current locale. | In Windows Settings $\rightarrow$ Time & language $\rightarrow$ Language $\rightarrow$ Install OCR Component for active language. |
# 1. Keep System Awake Indefinitely with Screen ON via CLI
"%LOCALAPPDATA%\PowerToys\PowerToys.Awake.exe" --mode=indefinite --display-on=true
# 2. Keep System Awake for 2 Hours (7200 seconds)
"%LOCALAPPDATA%\PowerToys\PowerToys.Awake.exe" --mode=timed --time-limit=7200
# 3. Launch PowerToys Settings Window
"%LOCALAPPDATA%\PowerToys\PowerToys.Settings.exe"
%LOCALAPPDATA%\Microsoft\PowerToys\settings.json%LOCALAPPDATA%\Microsoft\PowerToys\FancyZones\zones-settings.jsonC:\Program Files\PowerToys\ or %LOCALAPPDATA%\PowerToys\MANDATORY: When configuring PowerToys to manage windows across administrative tools (e.g. Task Manager, CMD, Services), always enable "Always run as administrator" in General settings to prevent UIPI hook rejection.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/brunoCreate version-controlled Bruno API collections, write Bru request files, and run API checks through the Bruno CLI in CI./dockerBuild reproducible container images with BuildKit, wire Compose service graphs with real readiness gates, and debug networking, volumes, and layer-cache failures agents routinely miss./everythingSearch Windows files with Everything and es.exe, integrate the SDK or IPC interface, and troubleshoot NTFS index behavior./raycastBuild Raycast extensions with React and TypeScript, create Script Commands, and troubleshoot URL schemes and extension execution on macOS./tailscaleJoin devices to a Tailscale mesh, advertise subnet/exit routes with IP forwarding and admin approval, tune MagicDNS, and diagnose DERP-relayed vs direct WireGuard paths./vscodeConfigure VS Code tasks, debugging, settings, and extensions, and automate editor workflows with the code CLI.npx claudepluginhub alivirgo/major-ai-skills --plugin mas-desktop-ops2 plugins in one repository ship this exact skill · first indexed Sep 11, 2026