00-andruia-consultant
Usar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un…
Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.
Claude Code
$ npx -y skills add sickn33/agentic-awesome-skills --skill anti-sleep --agent claude-code
Codex
$ npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a codex -y
Cursor
$ npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a cursor -y
Gemini CLI
$ npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a gemini-cli -y
GitHub Copilot
$ npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a github-copilot -y
OpenCode
$ npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a opencode -y
Windsurf
$ npx skills add sickn33/agentic-awesome-skills --skill anti-sleep -a windsurf -y
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" license_source: "https://github.com/davidondrej/skills/blob/main/LICENSE"
Keep the Mac awake using the built-in `caffeinate` command. No install needed.
caffeinate -i -t 7200 # prevent idle system sleep for 2 hours
Duration is `-t <seconds>`: 2h = 7200, 7h = 25200, overnight (9h) = 32400.
| Flags | Effect | |---|---| | `-i` | prevents idle **system** sleep only (screen may still dim/lock) | | `-d` | prevents **display** sleep (screen stays on) | | `-d -i` | screen on + system awake, when the task needs a visible display | | `-d -i -s` | adds `-s`: prevents system sleep while on AC power; valid only when plugged in | | `-u -t 1` | simulates user activity — wakes the display right now |
Default to `-i -t <seconds>`; add `-d` only when the task needs the display awake. These assertions do not guarantee continued execution through lid closure, shutdown or loss of power, and do not replace the lock-screen policy.
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
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):
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.
pgrep -fl caffeinate # is it running? shows exact flags ps -o etime= -p <PID> # how long it's been running pmset -g assertions # inspect PreventUserIdleSystemSleep / PreventUserIdleDisplaySleep # 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.
`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.
kill <recorded-caffeinate-PID> # or Ctrl+C in the pane running this task
Record the PID of the process started for this task; verify its command before stopping it. Do not stop unrelated caffeinate sessions by a broad pattern.
After starting: confirm to the user the PID, the flags, and the wall-clock time it will expire.
Find reusable instructions for your project, inspect their complete files, and keep an exact skill set you can review and reuse.
Usar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un…
Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and…
Usar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la…
Usar tras definir el sector de un proyecto: prepara un dossier en español con contexto, normas aplicables, patrones UX y riesgos,…
AI-powered presentation generation via the 2slides API — create slides from text, match a reference image style, summarize…
360 feedback register: reviewer, subject, review cycle, visibility, due date and score, as CSV, SQL, JSON Schema or Notion on…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration