anti-sleep
Keep the user's MacBook awake with macOS caffeinate — prevent sleep, screen dimming, or both, for a set duration or while a process runs.
Skill by attentiondotnet
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/attentiondotnet-anti-sleep
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/anti-sleep
What's inside
- Skill name
anti-sleep- Description
- Keep the user's MacBook awake with macOS caffeinate — prevent sleep, screen dimming, or both, for a set duration or while a process runs. Use when the user says "don't let my mac sleep", "keep the screen on", "anti-sleep", "caffeinate", or wants the machine awake overnight / during a long build.
- License
- MIT
- Instructions
- 66 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Anti-Sleep (macOS caffeinate) 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 | Flags | Effect | |---|---| | `-i` | prevents idle **system** sleep only (screen may still dim/lock) | | `-d` | prevents **display** sleep (screen stays on) | | `-d -i` | **default choice** — screen on + system awake | | `-d -i -s` | adds `-s`: prevents sleep even on AC power semantics; `-s` only works when plugged in | | `-u -t 1` | simulates 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.
From attentiondotnet/davidondrej-skills, MIT.
More from attentiondotnet/davidondrej-skills
- 0.542score
folder-specific-claude-and-agents-md
attentiondotnet
Create a specialized CLAUDE.md (+ AGENTS.md symlink) inside a specific folder to give future agents folder-scoped context.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
brain-to-docs
attentiondotnet
Use when the user wants to extract project vision, decisions, and preferences from his head into clear documentation (README + ADRs) through a back-and-forth…
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
setup-help
attentiondotnet
Walk the user through setting up anything step by step.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
research-prompt
attentiondotnet
Write a single-paragraph Deep Research prompt to hand to a human researcher (or a deep-research AI).
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
youtube-transcript
attentiondotnet
Use whenever the user needs the transcript of a YouTube video — fetching, extracting, downloading, or pulling captions/subtitles/transcript text from a…
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
distribute-skill-to-all-agents
attentiondotnet
Distribute a skill across the 4 agent skill folders (Codex, Claude Code, Pi, Hermes) so all agents see it.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
push-skill-to-github
attentiondotnet
Commit and push agent-skill changes to the user's private skills GitHub repo (your-org/private-skills, rooted at ~/.agents).
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
fable-safe-prompt
attentiondotnet
Rewrite a user's prompt to reduce the chance it trips Claude Fable 5's server-side safety classifiers (cyber/bio guardrails that force-route to Opus 4.8 or…
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
goal-loop
attentiondotnet
Explain and write effective instructions for the `/goal` feature — the persistent self-checking agent loop (plan → act → test → review → iterate), available…
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
markdown-rendering
attentiondotnet
How to reliably open a markdown file in a cmux right pane without it rendering blank.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
run-deep-swe
attentiondotnet
Score any AI model on the DeepSWE coding-agent benchmark via the OpenRouter API.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
pi-custom-model
attentiondotnet
Register a custom or variant model (e.g.
SkillCFreshness: C★ 11Claude Code +9
Signals
- Stars
- 11
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 6, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from attentiondotnet
- 0.542score
pi-custom-model
attentiondotnet
Register a custom or variant model (e.g.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
fable-safe-prompt
attentiondotnet
Rewrite a user's prompt to reduce the chance it trips Claude Fable 5's server-side safety classifiers (cyber/bio guardrails that force-route to Opus 4.8 or…
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
goal-loop
attentiondotnet
Explain and write effective instructions for the `/goal` feature — the persistent self-checking agent loop (plan → act → test → review → iterate), available…
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
run-deep-swe
attentiondotnet
Score any AI model on the DeepSWE coding-agent benchmark via the OpenRouter API.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
markdown-rendering
attentiondotnet
How to reliably open a markdown file in a cmux right pane without it rendering blank.
SkillCFreshness: C★ 11Claude Code +9 - 0.542score
setup-help
attentiondotnet
Walk the user through setting up anything step by step.
SkillCFreshness: C★ 11Claude Code +9
Cite this page
anti-sleep skill. Agent Mart. https://agentmart.dev/skills/attentiondotnet-anti-sleep (last updated 2026-10-24)