Anti Sleep
sickn33/agentic-awesome-skills
Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.
Keep a Mac awake for a set duration or while a process runs.
The automated check flagged lines worth reading first. See the safety section below.
$ npx skills add davidondrej/skills --skill anti-sleep -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install davidondrej/skills anti-sleep --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ops-and-setup/anti-sleep .claude/skills/anti-sleep && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "anti-sleep" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/anti-sleep into .claude/skills/anti-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anti-sleep", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/anti-sleepType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add davidondrej/skills --skill anti-sleep -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install davidondrej/skills anti-sleep --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/ops-and-setup/anti-sleep .agents/skills/anti-sleep && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "anti-sleep" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/anti-sleep into .agents/skills/anti-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anti-sleep", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davidondrej/skills --skill anti-sleep -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install davidondrej/skills anti-sleep --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/ops-and-setup/anti-sleep .cursor/skills/anti-sleep && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "anti-sleep" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/anti-sleep into .cursor/skills/anti-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anti-sleep", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/davidondrej/skills.git --path skills/ops-and-setup/anti-sleep--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add davidondrej/skills --skill anti-sleep -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install davidondrej/skills anti-sleep --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/ops-and-setup/anti-sleep .gemini/skills/anti-sleep && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "anti-sleep" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/anti-sleep into .gemini/skills/anti-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anti-sleep", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install davidondrej/skills anti-sleepInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add davidondrej/skills --skill anti-sleep -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/ops-and-setup/anti-sleep .github/skills/anti-sleep && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "anti-sleep" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/anti-sleep into .github/skills/anti-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anti-sleep", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davidondrej/skills --skill anti-sleep -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install davidondrej/skills anti-sleep --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/ops-and-setup/anti-sleep .opencode/skills/anti-sleep && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "anti-sleep" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/anti-sleep into .opencode/skills/anti-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anti-sleep", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
anti-sleepKeep a Mac awake for a set duration or while a process runs.
Anti Sleep is an agent skill from davidondrej/skills. Keep a Mac awake for a set duration or while a process runs. Use only when the user explicitly invokes /anti-sleep.
Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `agents/openai.yaml` and `scripts/anti-sleep.sh`).
The repository describes itself as: access to david ondrej's personal agent skills. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 387c2b8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Anti Sleep loads about 640 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 289 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found patterns that need a careful read before installing.
, automatically stop the old session. **Never ask for confirmation.**Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from davidondrej/skills at commit 387c2b8, republished under its MIT licence (© davidondrej). 289 words, ~640 tokens.
.claude/skills/anti-sleep/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Use the bundled launcher from this skill directory. It creates a one-shot user LaunchAgent using only built-in macOS tools.
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:
scripts/anti-sleep.sh statusstatus reports an active session and the user requested a new duration, automatically stop the old session. Never ask for confirmation.scripts/anti-sleep.sh stopscripts/anti-sleep.sh start 10800 # 3 hoursFor a specific process, use start-pid. Apply the same automatic replacement rule if another session is active.
scripts/anti-sleep.sh start-pid <PID>scripts/anti-sleep.sh verifyOnly report success when verification returns STATUS=running and ASSERTIONS=active. Confirm the PID, flags, and wall-clock expiry. If verification fails, run stop and do not claim the Mac is protected.
The default is -d -i: keep the display on and prevent idle system sleep. Pass explicit flags after the duration or PID when needed:
| Flags | Effect |
|---|---|
-i | Prevent idle system sleep; display may dim |
-d | Prevent display sleep |
-d -i -s | Also prevent system sleep while on AC power |
Example:
scripts/anti-sleep.sh start 10800 -iscripts/anti-sleep.sh status
scripts/anti-sleep.sh stopThe launcher tracks one exact LaunchAgent label, PID, start time, and expiry under ~/Library/Caches. It never uses broad pkill.
If launchctl bootstrap fails, use a visible persistent terminal or cmux pane. Read the cmux skill before interacting with cmux. If no persistent surface is available, tell the user instead of starting an unreliable background job.
caffeinate cannot keep the keyboard backlight on. That setting is manual: System Settings → Keyboard → “Turn keyboard backlight off after inactivity” → Never.
© davidondrej, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (scripts) in skills/ops-and-setup/anti-sleep of davidondrej/skills.
Open the folder on GitHubat commit 387c2b8
Anti Sleep next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Anti Sleep this skilldavidondrej/skills | 4.1k | — | ~640 | Automated safety check: Warn | MIT | |
| Anti Sleepsickn33/agentic-awesome-skills | 47k | 1 repos | ~851 | Automated safety check: Pass | MIT | |
| Remote Macsteipete/agent-scripts | 7.3k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Skillopt Sleepalirezarezvani/claude-skills | 28k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Release Openclaw Macopenclaw/openclaw | 392k | — | ~2k | Automated safety check: Pass | MIT | |
| Anti Reversing Techniqueswshobson/agents | 40k | — | ~980 | Automated safety check: Pass | MIT |
sickn33/agentic-awesome-skills
Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.
steipete/agent-scripts
Remote Macs: MacBooks, Mac Studios, hosted claw Macs, Tailscale, SSH, and OpenClaw.
alirezarezvani/claude-skills
A skill your agent uses when the user wants their Claude agent to self-improve from past usage, asks about a nightly/offline 'sleep' or 'dream' cycle, memory/skill consolidation, or says things like…
openclaw/openclaw
Run or recover OpenClaw macOS release signing, notarization, appcast, and asset promotion.
wshobson/agents
Understand anti-reversing, obfuscation, and protection techniques encountered during software analysis.
wshobson/agents
A skill your agent uses when reviewing Python code for common anti-patterns to avoid.
davidondrej/skills
Launch a new bb worker thread with the right project, model, worktree, and task brief.
davidondrej/skills
Direct browser control via CDP. An agent skill from davidondrej/skills.
davidondrej/skills
Manage persistent dev servers, APIs, and other local processes on a port using macOS LaunchAgents.
davidondrej/skills
Reset a stuck Cursor ACP thread in <chat-system and reload its configuration.
davidondrej/skills
Use this when controlling bb. An agent skill from davidondrej/skills.
davidondrej/skills
Manage Boat (boat.dev, formerly Box by Ascii) cloud sandboxes via API, CLI, and SSH.
Keep a Mac awake for a set duration or while a process runs. Anti Sleep is an agent skill from davidondrej/skills. Keep a Mac awake for a set duration or while a process runs.
Anti Sleep fits situations like: explicitly invokes /anti-sleep.
Run `npx skills add davidondrej/skills --skill anti-sleep -a claude-code`. Or copy the skill folder (skills/ops-and-setup/anti-sleep in davidondrej/skills) into .claude/skills/anti-sleep in your project. Claude Code loads it when a task matches its description.
Run `npx skills add davidondrej/skills --skill anti-sleep -a codex`. Or copy the skill folder (skills/ops-and-setup/anti-sleep in davidondrej/skills) into .agents/skills/anti-sleep in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davidondrej/skills --skill anti-sleep -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/anti-sleep, .gemini/skills/anti-sleep, .github/skills/anti-sleep and .opencode/skills/anti-sleep in your project.
Going by SKILL.md and its folder, Anti Sleep needs a shell for the scripts in its folder. Our summary lists: A Bash shell.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Anti Sleep is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 640 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Anti Sleep: Anti Sleep (sickn33/agentic-awesome-skills, 47k stars), Remote Mac (steipete/agent-scripts, 7.3k stars), Skillopt Sleep (alirezarezvani/claude-skills, 28k stars) and Release Openclaw Mac (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
davidondrej (a GitHub user) maintains it in davidondrej/skills, which has 4,112 GitHub stars. The repository holds 51 skills in this directory. The repository was last updated on October 10, 2026.
Source: davidondrej/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.