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…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Install Watchdog
Overview
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:
- Whether an egregore session is already running.
- Whether the budget is in cooldown.
- Whether there are active work items in the manifest.
If all conditions are met, it launches a new egregore
session.
When To Use
- After initializing an egregore project (
egregore init)
when you want autonomous relaunching.
- When setting up egregore on a new machine.
When NOT To Use
- On CI/CD runners (use the orchestrator directly).
- When you want manual control over session launches.
Installation Steps
1. Detect the operating system
OS=$(uname -s)
2. Run the appropriate installer
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.
3. Verify installation
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.
4. Confirm to the user
Report the installation result, the schedule interval, and
the log file location:
- macOS:
~/.egregore/watchdog.log - Linux:
journalctl --user -u egregore-watchdog
Uninstall Command
To remove the watchdog, run:
Skill(egregore:uninstall-watchdog)
Or invoke the uninstall skill directly via the command
/egregore:uninstall-watchdog.
Troubleshooting
- Permission denied on plist: ensure the script runs
as the current user, not root.
- systemd user session not available: run
loginctl enable-linger $USER to enable user services
without an active login session.
- Watchdog not firing: check the log output and verify
the scheduler is loaded (launchctl list or
systemctl --user list-timers).
Exit Criteria
- [ ] On macOS:
~/Library/LaunchAgents/com.egregore.watchdog.plist
exists after the install script completes
- [ ] On Linux:
~/.config/systemd/user/egregore-watchdog.timer
exists after the install script completes
- [ ] Verification command confirms daemon is loaded: `launchctl list |
grep egregore returns a line (macOS), or systemctl --user
status egregore-watchdog.timer shows active (waiting)` (Linux)
- [ ] Schedule interval (300 seconds / 5 minutes) and log file path
reported to the user after installation
- [ ] If
permission deniedoccurs, the error is reported with the
remediation step (run as current user, not root)
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/egregore/skills/install-watchdog/SKILL.md同一个仓库里的其他技能
- claude-code-plugin-reference
- night-market-architecture-contract
- night-market-build-and-env
- night-market-change-control
- night-market-collective-memory
- night-market-completion-integrity-campaign
- night-market-config-catalog
- night-market-debugging-playbook
- night-market-diagnostics-toolkit
- night-market-docs-and-writing
- night-market-failure-archaeology
- night-market-model-and-harness-updates