claude/skills/caffeinate/SKILL.md
--- name: caffeinate description: Prevent macOS from sleeping using the built-in caffeinate CLI. Use when the user wants to: keep the Mac awake, prevent sleep, keep the display on, close the lid without sleeping, run long tasks without interruption, keep a process running while away, or asks about caffeinate. --- # caffeinate Built-in macOS CLI — no installation needed. ## Common commands ```bash caffeinate & # prevent idle sleep, background (Ctrl-C or kill to stop) caffeinate -
npx skillsauth add kendreaditya/.config claude/skills/caffeinateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Built-in macOS CLI — no installation needed.
caffeinate & # prevent idle sleep, background (Ctrl-C or kill to stop)
caffeinate -d & # also keep display on
caffeinate -s & # prevent sleep even with lid closed (requires AC power)
caffeinate -t 3600 # caffeinate for exactly N seconds then exit
caffeinate -w <PID> # stay awake until another process exits
caffeinate ./script.sh # run a command and stay awake until it finishes
killall caffeinate # stop all caffeinate instances
| Flag | Effect |
|------|--------|
| -i | Prevent idle sleep (default) |
| -d | Prevent display sleep |
| -s | Prevent system sleep (lid close) — AC power only |
| -u | Declare user active (keeps display on briefly) |
| -t N | Limit to N seconds |
| -w PID | Exit when process PID exits |
Requires tmux to maintain terminal sessions across lid close:
tmux new -s work # start session
# ... start Claude Code or other work ...
# Press Ctrl-B then D to detach
caffeinate -s & # prevent sleep on lid close (plug in power first)
# close lid safely
# later: open lid, then:
tmux attach -t work # reconnect
killall caffeinate # stop when done
caffeinate -ds &
xdr-brightness on 100 --bg
development
Search and read content from leetcode.com — problem catalog, daily challenge, full problem statements with hints and starter code, the Discuss forum (interview experiences, comp posts, layoff threads), and company question-list metadata. Read-only, no auth, no API key. Use when the user wants to look up a LeetCode problem by name/number/slug, see today's daily challenge, search Discuss for interview write-ups at a specific company (Google, Waymo, Meta, Amazon, etc.), browse a tag-filtered discuss feed, read a Discuss post + comments, or check what a LeetCode company list covers. Triggers — "lcsearch", "leetcode search", "search leetcode", "leetcode discuss", "leetcode problem", "daily leetcode", "interview discuss", "what's the leetcode for X", URLs containing leetcode.com/problems/, leetcode.com/discuss/, or leetcode.com/company/. Pair with the `interviewcoder` skill (structured leetcode-style writeups from 1point3acres) and `blind` (anonymous workplace chatter) for the same companies.
development
Terminal Spotify playback/search via spogo (preferred) or spotify_player.
development
Search and read posts from interviewcoder.co — a Next.js-fronted aggregator of technical-interview writeups (largely sourced from 1point3acres) tagged by company, position, stage (Phone Screen / OA / Onsite / etc.), period, job type, and structured leetcode-style questions. Use when the user wants real interview questions for a specific company, recent writeups from a hiring loop, leetcode-style problems with tags and difficulty, or to look up a specific interviewcoder.co URL. Read-only, no auth, no API key. Triggers — "interviewcoder", "interviewcoder.co", "interview questions at [company]", "what's been asked at [company] recently", "interview writeup", and URLs containing interviewcoder.co.
tools
Small Yahoo Finance CLI for ticker info + N-year stock returns. Use when the user asks about: stock price, market cap, sector/industry classification, dividend yield, P/E ratio, beta, 52-week range, N-year stock return, company description for a public company. Triggers: 'yfinance', 'yfin', 'stock price', 'market cap of', 'how much has X stock returned', 'sector for ticker', 'industry classification'. Pairs with the levels-fyi skill for cross-checking public/private status (levels gives ticker, yfin returns live data).