/skills:nosleep4macfrom skills
Creates a per-user macOS LaunchAgent that keeps the Mac awake on AC power using caffeinate -s. Preserves display sleep, battery sleep, and system power settings.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
For $nosleep4mac --help or $nosleep4mac -h (including native Claude forms), return concise help and stop before
any workflow step. State the purpose and invocation policy. Show exact usage
for every public action. Describe each public action, positional
argument, and flag in one concise line, including -h, --help; say "No
additional public flags" when there are no others. Use only the documented
public interface. For internal or coordinator-only skills, state that boundary
and that no standalone public workflow action exists. After the selected
SKILL.md is loaded, help is report-only: do not call any additional tools,
inspect project state, or modify files, private state, Git, or external systems.
Never expose private helper actions or flags or treat help as workflow
authorization.
Use $nosleep4mac in Codex, /nosleep4mac in Claude Code, or
/skills:nosleep4mac in the Claude plugin. Dollar-prefixed skill examples
refer to the same named skill on either host; use the native invocation syntax.
Preserve the declared invocation policy, approvals and workflow ownership.
Use available native tools; an unavailable required capability is a blocker,
never permission to bypass a guard or claim unobserved behavior.
Ensure one per-user LaunchAgent keeps the current logged-in Mac awake while it is connected to AC power. Preserve normal display sleep, screen locking, battery sleep, logout behavior, and system power settings.
Require explicit user invocation. Running $nosleep4mac authorizes one bounded,
idempotent convergence of the canonical user LaunchAgent without a second
confirmation prompt.
references/macos-launchagent.md before changing the plist, commands,
verification rules, or documented macOS behavior.The helper may create or replace only:
$HOME/Library/LaunchAgents/local.nosleep4mac.caffeinate-ac.plist
It may load or restart only:
gui/<current-uid>/local.nosleep4mac.caffeinate-ac
Do not change pmset, Lock Screen settings, other LaunchAgents, system
LaunchDaemons, credentials, or repository-external state.
Confirm macOS, the logged-in non-root user, AC/battery state, and the current plist and launchd job.
Run the helper with no arguments:
nosleep4mac/scripts/nosleep4mac.sh
Let the helper converge the canonical state:
Use the helper's internal read-only check after convergence:
nosleep4mac/scripts/nosleep4mac.sh --check
Report whether the result was installed, updated, repaired, or
unchanged, plus power source, PID, and assertion status.
sudo, pmset writes, a LaunchDaemon, launchctl load or
launchctl unload, pkill, or killall.caffeinate -d, -i, -u, or another flag that changes the
display or battery contract.When using this skill, capture durable, reusable, public-safe learnings in the narrowest appropriate surface only when the task contract allows source edits. For read-only/report-only work, or when a learning is not public-safe, evidence-backed, in scope, or free of unverified/vendor-specific claims, do not edit skill sources; report that it was skipped. Do not capture secrets, private URLs, customer data, raw logs, or one-off local state.
Run:
bash -n nosleep4mac/scripts/nosleep4mac.sh \
nosleep4mac/scripts/test-nosleep4mac.sh
shellcheck nosleep4mac/scripts/nosleep4mac.sh \
nosleep4mac/scripts/test-nosleep4mac.sh
bash nosleep4mac/scripts/test-nosleep4mac.sh
Also run the repository-owned align-skill structure validator against
nosleep4mac.
Use live --check only after an explicitly authorized local convergence. Do
not automate screen locking or disconnecting power; report those manual checks
separately.
Report:
README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)evals/process-cases.md (opens in a new tab)evals/trigger-prompts.csv (opens in a new tab)references/macos-launchagent.md (opens in a new tab)scripts/nosleep4mac.sh (opens in a new tab)scripts/test-nosleep4mac.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
macos, launchagent, caffeinate, power-management, keep-awake
Other plugins' skills for the same job
npx claudepluginhub nebius/nebius-ps-services --plugin skills75 skills in this plugin
/agent-nebius-auth-diagnoseRead-only diagnosis for current-session Nebius project discovery, agent authentication, quota reads, profiles, selectors, or auth-hook failures. Use when auth is missing/blocked; never mutate auth or IAM./agent-nebius-auth-setupUse only when explicitly invoked to bootstrap or repair current-project Codex Agent Nebius auth: account/tenant access, credentials/profile, repair lease, or separately requested auth hooks./ai-agent-designDesign provider-neutral production AI agent subsystems: behavior and topology, contracts, tools, context, memory, authority, durability, security, evals, and operations. Use ai-stack when AI technology selection remains, design/app-stack for whole products, and implementation skills for code./ai-stackSelect or review undecided AI components across models, runtimes, training/inference, interoperability, retrieval, evals, safety, and operations. Consume ai-agent-design's frozen agent-subsystem contract; use app-stack for non-AI layers, research for one technology, and design for whole solutions./alignAlign a project after changes across code, wiring, tests, CI, CLI/help, config, docs, workflows, and skills, with focused quality gates. Use align-skill for skill-folder-only work./align-skillAlign existing/scaffolded skills for Agent Skills, Codex, Claude Code, and npx skills installation while preserving functionality, native controls, resources, and evals. Accept local or report-only GitHub sources; use skill-creator for new scaffolds and align for projects.