paste this link into your ai. it will know what to do.
Diagnose and fix fast battery drain on a MacBook, especially after a macOS update. Measures first (CPU, sleep blockers, battery draw in watts), names the real culprits in plain English, applies safe fixes only with the user's OK, and shows before vs after. Use when the user says their Mac battery is draining, "battery life is terrible since the update", "my MacBook is hot", "fan is loud", "what is using my battery", or asks to optimise battery life.
Mac battery drain
Fix battery drain on a MacBook by measuring, not guessing. Most drain after a macOS update comes from a short list of background jobs. Find which ones are actually running on this Mac, then fix only those.
Rules
- Measure before changing anything. Never recommend a fix the measurements do not support.
- Ask before every change. Quitting an app, turning off a feature, or running a command with
sudoall need the user's yes first. Reading settings needs no permission. - Give the undo for every change. In the same message as the change.
- Never type the user's password. Commands that need
sudoare handed to the user to run in their own Terminal. - Plain English. Assume the user is not technical. Name the process, then say what it is in one short phrase.
- Estimates are estimates. When giving a "% battery saved" figure, say it is a typical-Mac estimate unless you measured it on this Mac.
Step 1: Measure
Run the bundled read-only script. It changes nothing and needs no password:
bash <skill-dir>/scripts/diagnose.sh 30The argument is the CPU sampling window in seconds. It reports: macOS version, uptime, battery %, battery health, live power draw in watts, Low Power Mode, top CPU users, sleep blockers, the known post-update culprits, Spotlight and Siri status, app process counts, and displays.
If the script is missing, run the same checks by hand: uptime, pmset -g batt, pmset -g, top -l 2 -s 30 -o cpu -n 20 -stats pid,command,cpu,power,time, pmset -g assertions, mdutil -s /.
Note the load average and the average draw (W) from the DRAW section. These are the before numbers. Record them before the first fix, including before a restart: once something is changed there is no way to get a true baseline back, and the before vs after comparison becomes a guess.
The battery controller smooths its draw reading, so reads a few seconds apart often match exactly. A single reading shortly after boot or after closing an app can be far off (a 23 W reading that settled to 12 W a minute later is normal). Trust readings taken minutes apart, not one sample.
Step 2: Read the results
First, how long since the reboot or update?
If uptime is under about 15 minutes, or the update was in the last day or two, heavy background work is partly expected. macOS re-indexes and re-downloads after an update. Say so, and suggest plugging in for a few hours to let it finish, before turning things off. If the same processes are still hot a day after the update, they are stuck and the fixes below apply.
If uptime is over a week, a restart alone often clears stuck jobs. Recommend it first, and tell the user to untick "Reopen windows when logging back in" in the restart dialog. That box is on by default and relaunches every app that was open, so chat apps the user thinks are closed come straight back.
Right after a restart, expect a few minutes of very high load (load average 100+ is possible) while macOS catches up. Re-measure 5-10 minutes after boot before drawing conclusions. duetexpertd (app suggestions) and siriactionsd often run hot for the first 15-30 minutes and then settle on their own.
Known culprits
Match what is hot (over ~20% CPU for a sustained sample) against this table.
| Process | What it is | Fix (ask first) |
|---|---|---|
mobileassetd | Downloading system assets: Apple Intelligence models, voices, fonts, update files | Restart. If still hot: plug in and let it finish. If it never finishes: user runs sudo killall mobileassetd (it restarts itself cleanly) or turns off Apple Intelligence |
mds, mds_stores, mdworker_shared, corespotlightd | Spotlight building its search index | Plug in and let it finish. If it churns for days (common with code folders, node_modules, synced folders): exclude folders in System Settings > Spotlight > Search Privacy, or turn indexing off with sudo mdutil -a -i off (undo: sudo mdutil -a -i on). Off means Finder and Mail search get weaker |
photoanalysisd, mediaanalysisd | Photos scanning faces and objects | Plug in overnight with Photos closed. It finishes on its own |
siriactionsd, siriknowledged, generativeexperiencesd, intelligenceplatformd | Siri and Apple Intelligence indexing apps and content | Usually settles within an hour after boot. If not: turn Siri off in System Settings > Siri (or Apple Intelligence & Siri). Without UI: defaults write com.apple.assistant.support "Assistant Enabled" -bool false (undo: -bool true). Some Macs (depending on region, language and macOS version) show no separate Apple Intelligence switch at all, and Settings search will not find one. Turning Siri off was enough in practice: the Apple Intelligence processes dropped to 0% CPU. Do not write undocumented Apple Intelligence preference keys by hand |
softwareupdated | Checking or downloading another update | Let it finish on power |
cloudd, bird, fileproviderd | iCloud Drive and CloudKit syncing | "iCloud Storage Full" in System Settings does not by itself mean a drain. Check CPU first: if these are near 0%, leave them alone (turning sync off loses backups for no battery gain). Only if they stay hot: free iCloud space or turn off the stuck sync |
kernel_task | Mac slowing itself down because it is hot | Not the cause. Fix whatever is making it hot |
WindowServer | Drawing the screen | High with many windows, external displays, transparency, or 120Hz. Fixes: Displays > Refresh Rate 60 Hz; Accessibility > Display > Reduce transparency + Reduce motion |
| Chrome / Edge renderers | Browser tabs | What a tab does matters far more than how many tabs: an idle article costs almost nothing, a music, video or busy web-app tab can cost 15%+ CPU. Find the heavy ones in Chrome's Window > Task Manager, sorted by CPU, and close anything staying above 5%. Turn on Energy Saver at chrome://settings/performance |
| A browser tab playing music or video | Streaming in a tab | Swap to the native app (Apple Music, Spotify app, TV app). In one measured case, swapping a YouTube Music tab (~16% CPU) for Apple Music (~2%) cut total draw from 13.2 W to 11.0 W, about 20% more battery life |
| Teams, Zoom, Slack, Discord, WhatsApp, Signal | Chat apps built on web tech, each runs several processes | Quit the ones not in use. Closing the window does not quit them: they keep running in the background with no window. Quit with Cmd+Q or osascript -e 'quit app "Microsoft Teams"'. Microsoft Teams also has a respawn helper; turn off Teams > Settings > General > "Auto-start Teams" and "Open application in background" so it stays closed. A few small leftover helpers (audio driver, agent) after quitting are idle and harmless |
duetexpertd | Predicts which apps and contacts to suggest | Hot for a while after boot, settles on its own. Leave it |
caffeinate | Something is deliberately keeping the Mac awake | Find its parent with ps -o ppid= -p <pid> then ps -o command= -p <ppid>, and tell the user which app started it |
Sleep blockers
In the SLEEP BLOCKERS section, ignore powerd ... while display is on (normal). Anything else holding PreventUserIdleSystemSleep for a long time stops the Mac sleeping with the lid open: music playback, caffeinate, a download, Handoff. Name each one. Expected and fine: Music or coreaudiod while audio is playing, bluetoothd with Bluetooth headphones. Worth naming: sharingd "Handoff" (turn off in System Settings > General > AirDrop & Handoff if unused, about +1-2%), and caffeinate started by developer tools such as Claude Code sessions (close idle sessions on battery).
Battery health
If health is under 80% or cycle count is high (over ~1000), the battery itself has worn out and no setting will fully fix it. Say so plainly. System Settings > Battery > Battery Health shows Apple's own verdict.
Step 3: Report and recommend
Tell the user, short:
- The top 3-5 drains, each as: name, what it is, CPU %, and whether it is expected (post-update) or stuck.
- A ranked fix list, biggest battery gain first. Typical-Mac estimates of extra battery life: - Stuck background job (mobileassetd, Spotlight, Photos analysis): can be +50% or more when it is the main culprit - Screen brightness 100% to 50%: +15-25%. The script prints current brightness; if it is already at or below 50%, skip this - Quit idle chat and meeting apps: +5-10% - Browser energy saver + fewer tabs: +5-10% - Low Power Mode on (System Settings > Battery): +10-20% if it is off - Refresh rate 60 Hz: +2-5%. Going below 60 Hz (48/50 Hz) adds only about 1-2% and makes scrolling choppy, so do not recommend it. On ProMotion MacBook Pros, adaptive ProMotion can idle below 60 Hz on a still screen, so fixed 60 Hz is not always a saving - Reduce transparency and motion: +1-5% - Keyboard backlight off: +1-3%
- Which fixes you can do now (with their OK) and which need them to click in System Settings or run a
sudocommand.
Step 4: Apply fixes
Only the ones the user agrees to. For each one:
- Say exactly what will change and how to undo it.
- Quit apps with
osascript -e 'quit app "App Name"', neverkill -9. - For System Settings changes, give the exact click path. You can open the pane for them, for example
open "x-apple.systempreferences:com.apple.Siri-Settings.extension". - For
sudocommands, print the command and ask the user to paste it into Terminal themselves.
Browser advice
Safari is the most battery-efficient browser on a Mac, typically +10-20% battery life over Chrome for the same tabs. If the user relies on Chrome for something specific (a browser extension, automation tools, logins kept in a Chrome profile), do not tell them to drop it: suggest Safari for everyday browsing and Chrome only for the tasks that need it, with few tabs open.
Step 5: Measure again
Wait 1-2 minutes after the last change, then run the script again. Show before vs after for:
- load average
- instant draw (W)
- battery time remaining
- the processes that were hot
- hours on a full charge at the new draw (the script prints this: battery Wh divided by average W)
Label which comparisons are measured and which are inferred. If there was no watt reading before the first fix, say so and give the inferred figure as an estimate.
If a fix made no measurable difference, say so. Do not claim a fix worked without the numbers.
keep it where your ai can reach it.
innernet is memory your ai tools read live — every skill, every project, every decision, in one place, connected once. save this skill to yours, or publish one of your own as a link like this.