Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Caffeine

ASecurity

Prevents macOS sleep using caffeinate/pmset and Caffeine.app.

22 stars
0 votes
0 copies
0 views
Added 9/20/2026
toolsbash

Works with

cli

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add lev-os/agents --skill caffeine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Caffeine?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Caffeine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lev-os-caffeine/badge)](https://www.skillsdirectory.com/skills/lev-os-caffeine)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: caffeine
description: Prevents macOS sleep using caffeinate/pmset and Caffeine.app.
---

# Caffeine Skill

Prevent Mac from sleeping via CLI or GUI.

## Quick Reference

### CLI Commands (built-in `caffeinate`)

```bash
# Prevent idle sleep (until killed)
caffeinate -i &

# Prevent system sleep on AC power
caffeinate -s &

# Prevent display sleep too
caffeinate -d &

# All assertions (system + display + disk + idle)
caffeinate -dims &

# Run for specific duration (seconds)
caffeinate -t 3600  # 1 hour

# Keep awake while a process runs
caffeinate -w <pid>

# Kill caffeinate
pkill caffeinate
```

### Check Status

```bash
# See what's preventing sleep
pmset -g assertions

# Current power settings
pmset -g

# Is caffeinate running?
pgrep -l caffeinate
```

### GUI App

**Caffeine.app** installed at `/Applications/Caffeine.app`
- Click coffee cup in menubar to toggle
- Filled cup = active (preventing sleep)
- Empty cup = inactive

### Permanent Settings (requires sudo)

```bash
# Never sleep system (AC power)
sudo pmset -c sleep 0

# Never sleep display
sudo pmset -c displaysleep 0

# Restore defaults
sudo pmset -c sleep 10
sudo pmset -c displaysleep 10
```

## Usage Examples

**Keep awake indefinitely for voice server:**
```bash
caffeinate -dims &
```

**Keep awake for 8 hours:**
```bash
caffeinate -dims -t 28800 &
```

**Check if already caffeinated:**
```bash
pgrep caffeinate && echo "Caffeinated ☕" || echo "Not caffeinated 😴"
```

## Notes

- `caffeinate` and Caffeine.app work independently
- System already configured with `sleep 0` (never sleeps)
- Display sleep was 180min, now set to 0 (never)
- For voice/server use: system sleep prevention is most important

Attribution

lev-oslev-os
View sourceMore from lev-os →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

805541 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1023330 votes
View all in tools →