anti-sleep
Installation
SKILL.md
Anti-Sleep (macOS caffeinate)
Use the bundled launcher from this skill directory. It creates a one-shot user LaunchAgent using only built-in macOS tools.
Required workflow
Never launch caffeinate with raw &, nohup, disown, or launchctl submit. Temporary execution shells can kill their descendants, and launchctl submit can restart a timed job.
Resolve scripts/anti-sleep.sh relative to this SKILL.md; never assume the user's current directory. Run:
- Inspect current state:
scripts/anti-sleep.sh status
- If another session is active, do not replace it without consulting the user. Otherwise start a timer: