- Home
- Skills
- Productivity
- MacBook Low Power Mode Off for Heavy Builds and Tests
MacBook Low Power Mode Off for Heavy Builds and Tests
Keep your MacBook in Low Power Mode for everyday work, but run cargo/go builds, Docker, make, npm builds, pytest and backtests at full speed, then get your own setting back, even after a kill or a timeout.
$7
What it does
- Turns Low Power Mode off only while a heavy build or test runs, then restores your setting
- Counts holds across parallel jobs and restores even after a kill or timeout
- Optional Claude Code hook wraps heavy commands automatically; self-test included
MacBook Low Power Mode Off for Heavy Builds and Tests
Example session with this skill installed
My MacBook is on battery in Low Power Mode and cargo builds are slow. Set it up so heavy builds run at full speed and Low Power Mode comes back after.
- Read your context and instructions
- Compiled the macbook low power
Example on a fictional setup. Following the skill, the agent first explained the one-time setup: lpm-sudo-setup.sh adds a sudoers rule that allows only the five exact pmset lowpowermode commands, and turns off idle sleep on battery. After the user said yes, it installed lpm-hold to ~/.claude/bin, asked the user to run sudo ~/.claude/bin/lpm-sudo-setup.sh in their own terminal (it printed SETUP OK), and, at the user's request, added the PreToolUse hook entry to ~/.claude/settings.json next to the existing hooks.
It then ran the self-test: 0 failures. To prove the effect it timed the same CPU loop three times each way. A plain command reported lowpowermode 1. The same loop started with make was wrapped by the hook automatically, reported lowpowermode 0 inside the job and ran noticeably faster. A plain command afterwards reported lowpowermode 1 again, with no state left in ~/.claude/state/lpm-hold. The agent reported the before/during/after numbers, and listed the limits: lid close still sleeps, and commands hidden behind aliases are not detected.
Connects securely to your tools. The creator never sees your data.
About this skill
Low Power Mode is great on battery until a build or test suite takes twice as long. This skill turns it off for exactly the heavy job and restores your own setting (battery and charger separately) when the job ends.
What is inside
lpm-hold: a small bash tool that runs a command under a "hold". Holds are counted across parallel sessions, so the mode comes back only when the last heavy job ends. A detached watcher restores it even afterexit, SIGKILL, a process-group kill or a tool timeout.lpm-sudo-setup.sh: one-time setup that adds an exact-match sudoers rule (onlypmset -a lowpowermode 0andpmset -b|-c lowpowermode 0|1, no wildcards) and turns off idle sleep on battery. You run it yourself after reading it.lpm-hook.py: optional Claude Code PreToolUse hook for the Bash tool. It spots heavy local commands (cargo, go, docker build/compose, make, npm/pnpm/yarn builds, tsc, pytest, backtest/sweep scripts) and wraps them in the same shell, socdcarries over, the exit code is kept and zsh syntax works. It ignores text in quotes and heredocs, skips ssh/remote commands and never blocks a command.test_lpm_hold.py: a self-test with a fake pmset (no root needed) covering a table of heavy and non-heavy commands, overlapping sessions, kills, busy locks and failed restores.SKILL.md: install steps the agent follows only with your yes, manual use without the hook, a how-to-prove-it recipe and honest limits.
Limits: macOS only; closing the lid still sleeps the Mac; a manual mode change during a heavy job is overwritten by the restore; heavy programs hidden behind an alias, a variable or bash -c are not detected by the hook (prefix them with lpm-hold).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Mac only
- Software
Python 3PerlClaude Code (for the optional automatic hook)
Admin password once, for a narrow sudoers rule that allows only pmset lowpowermode calls.
Permissions
What's inside
Frequently Asked Questions
New in Productivity
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Productivity.