Download for MacApple silicon, macOS 14+
Skill

anti-sleep

@davidondrej Updated 2026-11-01

Keep a Mac awake for a set duration or while a process runs. Use only when the user explicitly invokes /anti-sleep.

Install

With your agent

Install OMGSkills skill "davidondrej/skills:anti-sleep" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/davidondrej/skills /tmp/skills && ln -s /tmp/skills/skills/ops-and-setup/anti-sleep ~/.claude/skills/anti-sleep

From README

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: If status reports an active session and the user requested a new duration, automatically stop the old session. Never ask for confirmation. Start the new timer for the requested duration: For a specific process, use start-pid. Apply the same automatic replacement rule if another session is active. In a separate tool/shell call after the start command has returned, verify: Only report success when verification returns STATUS=running and ASSERTIONS=active. Confirm the PID, flags, and wall-clock expiry.