CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

keep-mac-awake

Keep a Mac awake and prevent sleep, also with the lid closed, while an agent or a long task runs, with the keepmacawake command of the Keep Mac Awake app (Apple silicon, macOS 26 or later). Use it when the Mac must stay awake through work likely to run 15 minutes or more or that the user may leave running (an agent run, a build, a test suite, a migration, a download or upload, a render, a backup); when the user says they will close the lid, step away, go to bed or check in from their phone (Claude Code Remote Control, Codex in the ChatGPT app, Cursor, Antigravity, SSH); when a remote session went offline because the Mac slept; when local scheduled work, such as a Claude desktop scheduled task or a Codex automation, must run while the lid is closed; and when the user asks to keep the Mac awake or stop it from sleeping. On a Mac with Keep Mac Awake, use it rather than a caffeinate command of your own.

Quality

93%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

The canonical home for this skill is keep-mac-awake in bartdudzic/keepmacawake

SKILL.md
Quality
Evals
Security

Quality

Content

88%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A strong operational skill: every rule is app-specific and actionable, the workflow is sequenced with explicit validation and error-recovery paths, and it delegates full command documentation to 'keepmacawake capabilities --json'. The main weaknesses are mild verbosity in the battery-consent logic and inline version-history details that could be isolated or trimmed.

DimensionReasoningScore

Conciseness

The body is dense with app-specific rules Claude could not know (exit codes, JSON fields, consent policies) and explains no general concepts, so it is broadly efficient. Minor trimming is possible: the battery-consent paragraph in step 2 is a long nested conditional, and time-sensitive version details ('Keep Mac Awake 1.0.10 or earlier', 'installed before version 1.0.11') appear outside any deprecated/old-patterns section. That keeps it at anchor 4 rather than 5.

4 / 5

Actionability

Guidance is fully executable throughout: exact commands with flags ('keepmacawake start --hours 3 --json', 'sysctl -n hw.optional.arm64', 'sw_vers -productVersion'), enumerated exit codes (4, 5, 6, 7) with per-code recovery actions, and named JSON fields ('session.live', 'config.battery_chosen', 'access.max_hours'). This is copy-paste ready and matches anchor 5.

5 / 5

Workflow Clarity

'Before a long task' is a numbered 1-5 sequence with explicit validation checkpoints: status check first, exit-code-driven branching, battery consent gate, and confirmation via '"confirmed":true'. The 'When it says no' section provides complete error recovery per refusal reason, and the skill forbids working around refusals. This matches anchor 5's clear sequence with validation and feedback loops; the operation is not destructive or batch, so no cap applies.

5 / 5

Progressive Disclosure

The file is well organized into clear sections (decisions, before/during/after, error handling, install, updates, limits) and needs no bundle references, but at roughly 68 lines of content it exceeds the under-50-line simple-skill exception, and detailed material (per-exit-code handling, battery edge cases) could arguably live in a reference file. Anchor 4 (good structure, minor organization gaps) fits better than 5, which expects well-signaled external references.

4 / 5

Total

18

/

20

Passed

Description

95%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An excellent description: it states the concrete capability with command, app, and platform constraints, and gives unusually thorough explicit trigger guidance covering task types, user phrasings, and failure symptoms. Its only limitation is that it describes one core action rather than enumerating the tool's full action set.

DimensionReasoningScore

Specificity

The description names the concrete command ('the keepmacawake command of the Keep Mac Awake app'), the platform constraints ('Apple silicon, macOS 26 or later'), and the core actions ('Keep a Mac awake and prevent sleep, also with the lid closed'). It is not a list of multiple distinct actions as anchor 5 requires, and it omits secondary capabilities (stop, status, config), so 4 fits better than 5.

4 / 5

Completeness

Both questions are explicitly answered: what it does ('Keep a Mac awake and prevent sleep, also with the lid closed... with the keepmacawake command') and when to use it via multiple explicit 'Use it when...' clauses with concrete trigger phrases. This matches anchor 5 exactly; anchor 4 would require the 'when' to be less explicit.

5 / 5

Trigger Term Quality

It covers natural phrases users would actually say comprehensively: 'keep the Mac awake or stop it from sleeping', 'close the lid', 'step away, go to bed or check in from their phone', scenario words ('a build, a test suite, a migration, a download or upload, a render, a backup'), failure symptoms ('a remote session went offline because the Mac slept'), and even the competing 'caffeinate' command. This matches the comprehensive synonym coverage of anchor 5.

5 / 5

Distinctiveness Conflict Risk

It occupies a clear niche (keeping one platform awake via one named app) with distinct triggers ('lid closed', 'Mac slept', 'caffeinate'), so the risk of triggering for the wrong skill is minimal. Anchor 5 fits; anchor 4 would imply overlap with closely related skills, which is not the case.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

bartdudzic/keepmacawake

Path

powers/keep-mac-awake/skills/keep-mac-awake/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.