athola/install-watchdog
Installs egregore watchdog daemon via launchd or systemd for autonomous relaunching. Use when setting up egregore on a new machine. Do not use on CI/CD runners.
npx skills add https://github.com/athola/claude-night-market --skill install-watchdog
Installs a persistent daemon that monitors the egregore
process and relaunches it when needed.
The daemon uses the OS-native scheduler (launchd on macOS,
systemd on Linux) to run a watchdog script every 5 minutes.
The watchdog script checks:
If all conditions are met, it launches a new egregore
session.
egregore init)when you want autonomous relaunching.
OS=$(uname -s)
macOS (launchd):
bash plugins/egregore/scripts/install_launchd.sh
This script creates a plist at
~/Library/LaunchAgents/com.egregore.watchdog.plist
that runs the watchdog script every 300 seconds (5 minutes).
Linux (systemd):
bash plugins/egregore/scripts/install_systemd.sh
This script creates a systemd timer and service unit at
~/.config/systemd/user/ that fires every 5 minutes.
macOS:
launchctl list | grep egregore
Expected output: a line containing
com.egregore.watchdog with a PID or - status.
Linux:
systemctl --user status egregore-watchdog.timer
Expected output: active (waiting) status.
Report the installation result, the schedule interval, and
the log file location:
~/.egregore/watchdog.logjournalctl --user -u egregore-watchdogTo remove the watchdog, run:
Skill(egregore:uninstall-watchdog)
Or invoke the uninstall skill directly via the command
/egregore:uninstall-watchdog.
as the current user, not root.
loginctl enable-linger $USER to enable user services
without an active login session.
the scheduler is loaded (launchctl list or
systemctl --user list-timers).
~/Library/LaunchAgents/com.egregore.watchdog.plistexists after the install script completes
~/.config/systemd/user/egregore-watchdog.timerexists after the install script completes
grep egregore returns a line (macOS), or systemctl --user
status egregore-watchdog.timer shows active (waiting)` (Linux)
reported to the user after installation
permission denied occurs, the error is reported with theremediation step (run as current user, not root)
Take athola/install-watchdog from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.