Agent skill

Anti Sleep

by sickn33 in sickn33/agentic-awesome-skills

Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.

MITAuto-check passed

Install Anti Sleep

skills CLI
$ npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sickn33/agentic-awesome-skills anti-sleep --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/anti-sleep .claude/skills/anti-sleep && rm -rf skills-src

Use ~/.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/

Facts

Skill name
anti-sleep
GitHub stars
47k
Used in
1 other repo
Token cost
~851 tokens
SKILL.md length
342 words
Files
1
Skills in repo
1,497
Repo updated
First seen
Licence
MIT

At a glance

Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.

  • SKILL.md covers When to Use, Quick start — the standard…, Aggressiveness levels and Tie to a process instead of a…, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Anti Sleep is an agent skill from sickn33/agentic-awesome-skills. Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.

Its SKILL.md is about 850 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,400+ agentic skills. Includes… The licence is MIT.

Example prompts

  • “/anti-sleep”

What it can do on your machine

Read from SKILL.md and the folder at commit b84d35a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Anti Sleep loads about 851 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 342 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~851

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.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from sickn33/agentic-awesome-skills at commit b84d35a, republished under its MIT licence (© sickn33). 342 words, ~851 tokens.

Download SKILL.mdSave it as .claude/skills/anti-sleep/SKILL.md (or your agent's skills folder).
name
anti-sleep
description
Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.
category
operations
risk
critical
source
community
source_repo
davidondrej/skills
source_type
community
date_added
2026-07-07
author
davidondrej
tags
macos, caffeinate, operations
tools
claude, codex
license
MIT

Anti-Sleep (macOS caffeinate)

When to Use

  • Use when the user wants the Mac to stay awake during a long supervised task.
  • Use when a build, download, or automation run should not be interrupted by sleep.

Keep the Mac awake using the built-in caffeinate command. No install needed.

Quick start — the standard command

bash
caffeinate -d -i -t 7200    # full power: screen stays on + no idle sleep, for 2 hours

Duration is -t <seconds>: 2h = 7200, 7h = 25200, overnight (9h) = 32400.

Aggressiveness levels

FlagsEffect
-iprevents idle system sleep only (screen may still dim/lock)
-dprevents display sleep (screen stays on)
-d -idefault choice — screen on + system awake
-d -i -sadds -s: prevents sleep even on AC power semantics; -s only works when plugged in
-u -t 1simulates user activity — wakes the display right now

Default to -d -i -t <seconds> unless the user says otherwise.

Tie to a process instead of a timer

bash
caffeinate -d -i -w <PID>          # stays awake until that process exits (great for builds)
caffeinate -i npm run build       # wraps a command; exits when the command finishes

Run it in a visible terminal (cmux pane)

Prefer running it in the user's own terminal pane so it's visible and easy to Ctrl+C. In cmux (read the cmux skill first if interacting with panes):

bash
cmux send --surface surface:<N> "caffeinate -d -i -t 25200\n"

Otherwise run it as a background Bash task. Never block your own foreground shell with it.

Verify and monitor

bash
pgrep -fl caffeinate                       # is it running? shows exact flags
ps -o etime= -p <PID>                      # how long it's been running
pmset -g assertions | grep -i deny        # confirm sleep assertions are active

Gotcha: caffeinate prints nothing and holds the prompt — it looks "stuck" or like Enter wasn't pressed. It isn't stuck. Verify with pgrep, not by looking at the terminal.

Expiry: with -t it exits silently when time runs out — no notification. If the user asks "is it still on?" after hours, check pgrep first; it may simply have expired.

Keyboard backlight

caffeinate cannot keep the keyboard backlight on — it has its own inactivity timer with no CLI/API on Apple Silicon (researched 2026-07). Fix is manual, one-time: System Settings > Keyboard > "Turn keyboard backlight off after inactivity" > Never.

Stop early

bash
pkill -f "caffeinate -d -i"    # or Ctrl+C in the pane running it

After starting: confirm to the user the PID, the flags, and the wall-clock time it will expire.

Limitations

  • Adapted from davidondrej/skills; verify local paths, tools, credentials, and agent features before acting.
  • For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.

© sickn33, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/anti-sleep of sickn33/agentic-awesome-skills.

Open the folder on GitHubat commit b84d35a

Used in 1 other repository

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in sickn33/agentic-awesome-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

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.

Anti Sleep compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Anti Sleep this skillsickn33/agentic-awesome-skills47k1 repos~851Automated safety check: PassMIT
Anti Sleepdavidondrej/skills4.1k—~640Automated safety check: WarnMIT
Video Downloadernexu-io/open-design100k—~339Automated safety check: PassApache-2.0
Video Downloadcalesthio/OpenMontage66k—~885Automated safety check: PassAGPL-3.0
YouTube Video DownloaderComposioHQ/awesome-claude-skills77k9 repos~668Automated safety check: PassNone
Video Downloaderdavila7/claude-code-templates33k5 repos~660Automated safety check: PassMIT

Similar skills

  • Anti Sleep

    davidondrej/skills

    Keep a Mac awake for a set duration or while a process runs.

    4.1k GitHub stars~640 tokensUpdated today
    Auto-check: warnings
  • Video Downloader

    nexu-io/open-design

    Download videos from YouTube and other platforms for offline viewing, editing, or archival with support for various formats and quality options.

    100k GitHub stars~339 tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Video Download

    calesthio/OpenMontage

    Download video and audio from YouTube and 1000+ sites using yt-dlp.

    66k GitHub stars~885 tokensUpdated 7 days ago
    Media & CreativeAuto-check passed
  • YouTube Video Downloader

    ComposioHQ/awesome-claude-skills

    Downloads a single YouTube video with chosen quality, format or audio-only MP3 output, using a bundled Python script built on yt-dlp.

    77k GitHub starsUsed in 9 repos~668 tokens
    Media & CreativeAuto-check passed
  • Video Downloader

    davila7/claude-code-templates

    Downloads videos from YouTube and other platforms for offline viewing, editing, or archival.

    33k GitHub starsUsed in 5 repos~660 tokens
    Media & CreativeAuto-check passed
  • Export Download Debugging

    nexu-io/open-design

    Diagnose and fix browser, preview, or Electron export/download failures, especially image export issues involving Save As, Blob/Data URLs, the File System Access API, createWritable failures, and 0…

    100k GitHub stars~725 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from sickn33/agentic-awesome-skills

All 1,497 skills in this repo
  • Liuguang Banlan UI

    sickn33/agentic-awesome-skills

    Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • User Thoughts Memory

    sickn33/agentic-awesome-skills

    Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Find Complementary Founders

    sickn33/agentic-awesome-skills

    Guides an agent through assessing its own owner for cofounder fit, publishing an approved profile, and ranking complementary profiles other agents published for their owners.

    47k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Whatsapp Cloud API

    sickn33/agentic-awesome-skills

    Integracao com WhatsApp Business Cloud API (Meta). An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~4.5k tokens
    Auto-check passed
  • Cline Pilot

    sickn33/agentic-awesome-skills

    Acts as a proxy for the Cline CLI, dispatching coding tasks one at a time, monitoring runs by hard evidence, relaying decisions to you and learning per-project preferences.

    47k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Anti Sleep

What does Anti Sleep do?

Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs. Anti Sleep is an agent skill from sickn33/agentic-awesome-skills. Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.

How do I install Anti Sleep in Claude Code?

Run `npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a claude-code`. Or copy the skill folder (skills/anti-sleep in sickn33/agentic-awesome-skills) into .claude/skills/anti-sleep in your project. Claude Code loads it when a task matches its description.

How do I install Anti Sleep in Codex?

Run `npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a codex`. Or copy the skill folder (skills/anti-sleep in sickn33/agentic-awesome-skills) into .agents/skills/anti-sleep in your project. Codex loads it when a task matches its description.

Can I use Anti Sleep in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sickn33/agentic-awesome-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.

What does Anti Sleep need to run?

SKILL.md names no scripts, command-line tools or credentials: Anti Sleep is instructions for the agent only.

Does Anti Sleep access the network?

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.

Is Anti Sleep safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Anti Sleep use?

Anti Sleep is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Anti Sleep use?

About 851 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Anti Sleep?

Skills that share tags, products or a category with Anti Sleep: Anti Sleep (davidondrej/skills, 4.1k stars), Video Downloader (nexu-io/open-design, 100k stars), Video Download (calesthio/OpenMontage, 66k stars) and YouTube Video Downloader (ComposioHQ/awesome-claude-skills, 77k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Anti Sleep?

sickn33 (a GitHub user) maintains it in sickn33/agentic-awesome-skills, which has 47,405 GitHub stars. The repository holds 1,497 skills in this directory. The repository was last updated on October 9, 2026.

Source: sickn33/agentic-awesome-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.