Skip to content
Back to skills

Windows App Watchdog

ASecurity

Monitor a selected Windows desktop GUI app via a per-user Scheduled Task and relaunch it when its top-level window closes.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsgoshell

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add stancsz/northstar --skill windows-app-watchdog --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Windows App Watchdog?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Windows App Watchdog
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stancsz-windows-app-watchdog/badge)](https://www.skillsdirectory.com/skills/stancsz-windows-app-watchdog)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: windows-app-watchdog
description: Monitor a selected Windows desktop GUI app via a per-user Scheduled Task and relaunch it when its top-level window closes.
metadata:
  short-description: Relaunch closed Windows desktop apps
---

# Windows App Watchdog

Configure a silent per-user Windows Scheduled Task that checks whether a desktop GUI app's top-level window is open and relaunches it when closed. Check for a top-level window (`MainWindowHandle`) rather than any background process, because Chromium/Electron apps often leave helper processes running after the main window exits.

- **Resolve the exact AppID:** Look up the app's Start menu `AppID` with `Get-StartApps`; never guess Windows Store package IDs.
- **Use the bundled PowerShell helper:** Invoke `scripts/watch-app.ps1` with explicit `-AppId` and `-ProcessName` arguments (plus optional `-MinimizeAfterLaunch`).
- **Least-privilege user session:** Register the Scheduled Task to run as the signed-in user with an interactive token (`LogonType Interactive`) and hidden PowerShell host (`-WindowStyle Hidden`). Never run as `SYSTEM` or request administrator elevation for a per-user desktop app.
- **Cadence and single-instance safety:** Trigger at user sign-in and repeat at a modest interval while avoiding overlapping task instances.
- **State UI behavior clearly:** If `-MinimizeAfterLaunch` is set, the helper minimizes the window once it appears. Be explicit that Windows Store/GUI apps cannot run as headless services—the watchdog check is silent, but relaunching the app briefly creates a visible window.
- **Safe verification:** Verify task registration, triggers/actions, and a no-op check while the app is already open. Never close the user's running app just to test relaunch unless explicitly asked.
- **Scoped cleanup:** Modify or remove only the task and helper created for the selected app.

Files in this skill

  • SKILL.md1.8 KB
  • agents/openai.yaml304 B
  • scripts/watch-app.ps11.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.