agentsclimarketplace

Desktop tray and window

Skill swd3k/skills/agent-skills/desktop-apps/desktop-tray-and-window

Implement system tray, single-instance, minimize-to-tray, and window lifecycle for desktop utilities. Use when building tray apps, background helpers, or fixing multi-window/instance bugs.From its SKILL.md

Install
npx -y skills add swd3k/skills --skill desktop-tray-and-window

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 29 days oldThe repository was created 29 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.2 KB, 238 tokens by cl100k_base, as published. Nobody here has run it

Tray, Window, Single-Instance

Utility apps live in the tray more than the taskbar.

Defaults

  • Single instance via named mutex / lockfile
  • Close button → hide to tray (configurable)
  • Tray menu: Open, Status, Quit
  • Balloon/toast only for important state changes

Workflow

  1. Create mutex at startup; if owned → focus existing window and exit.
  2. Main window: sensible default size, min size, remember last position (user folder).
  3. Tray icon: monochrome variants for light/dark taskbar when possible.
  4. Exit path: dispose icon, release mutex, flush settings.

UX rules

  • Never trap the user: Quit must always be reachable
  • First run: show window once, then tray is OK
  • Status in tooltip: "Connected", "Needs attention", "Idle"

Pitfalls

  • Orphan tray icons after crash (dispose on all exit paths)
  • Multiple instances fighting over ports/files
  • Modal dialogs behind hidden windows

Acceptance

  • Second launch focuses first instance
  • Quit removes tray icon immediately
  • Settings persist across restarts

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.