anti-sleep
Skill0 starsChanged 38 days agoMITView on GitHub
Keep Windows awake (no sleep, no screen blank) while long unattended agent runs, /loop jobs, or overnight builds are in progress. Use when the user says "anti-sleep", "keep the machine awake", "don't let it sleep", "caffeinate", or is about to leave agents running while away.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- davidondrej/skillstheir own version, first seen Nov 15, 2026
- cill-i-am/skillstheir own version, first seen Oct 20, 2026
- attentiondotnet/davidondrej-skillstheir own version, first seen Jul 7, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- davidondrej/skills★ 4.4ksame name
- attentiondotnet/davidondrej-skills★ 11same name
- cill-i-am/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- analyze-sessionsSkill
- ask-and-buildSkill
- claude-checkupSkill
- clone-websiteSkill
- compoundSkill
- content-machineSkill
- context-artifactsSkill
- diagram-makerSkill
- grillingSkill
- grill-meSkill
- hydrateSkill
- level-upSkill
- managerSkill
- no-mistakesSkill
- pdf-craftSkill
- personal-agentsSkill
- scan-before-publishSkill
- setup-helpSkill
- signal-from-expertSkill
- teachSkill
- techdebtSkill
- tutor-setupSkill
- tutorSkill
- verify-changeSkill
- visualizeSkill
- web-debugSkill
- workflow-tuneSkill
- youtube-transcriptSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Start a lock: Ask for a duration only if the user didn't give one.
- Distinctive: line 18
Run in the background (it blocks for the whole duration):
- Very specific: line 41
If the user instead wants to *find and open* the Windows sleep settings, just open ms-settings:powersleep — no script needed.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
anti-sleep
Windows equivalent of macOS caffeinate. Holds a system + display wake lock via
SetThreadExecutionState, re-asserted every 60s, for a bounded duration (default
3h). The OS clears the lock automatically when the process exits, so a kill or
crash can never leave the machine permanently awake.
Script: scripts/keep-awake.ps1 — always run it, never regenerate the logic inline.
Steps
- Start a lock. Ask for a duration only if the user didn't give one; default 3h.
Run in the background (it blocks for the whole duration):
Starting again replaces any existing lock. Report the end time back to the user.pwsh -File "~/.claude/skills/anti-sleep/scripts/keep-awake.ps1" -Hours 3 - Check status — is a lock held, how long is left:
pwsh -File "~/.claude/skills/anti-sleep/scripts/keep-awake.ps1" -Action status - Release early:
pwsh -File "~/.claude/skills/anti-sleep/scripts/keep-awake.ps1" -Action stop
Notes
-Hoursaccepts fractions (0.5= 30 min); max 24.- State file:
%TEMP%\claude-anti-sleep.pid(pid + end time). Stale files are self-healed on the next call. - This does not change the user's power plan — it's a temporary runtime override that leaves system settings untouched.
- If the user instead wants to find and open the Windows sleep settings, just
open
ms-settings:powersleep— no script needed. - Pair with
/loopor/goal: start the lock, kick off the loop, tell the user when the lock expires so they know the safe window.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

