jasonkwok001

Macbook 24h Server — Code Quality skill for Claude Code

Code Quality community

Agent Skills-format skill: turn any MacBook into a 24/7 always-on server (never sleep, display-off timer, App Nap fix for remote control).

How to install Macbook 24h Server

This entry records only its repository, not the path inside it, so there is no exact command to give. Open jasonkwok001/macbook-24h-server and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Macbook 24h Server does

Agent Skills-format skill: turn any MacBook into a 24/7 always-on server (never sleep, display-off timer, App Nap fix for remote control). Works with Claude Code / WorkBuddy / Trae / Qoder.

Alternatives in Code Quality

  • Import Drawio — Redraw a draw.io file as an editorial diagram at a chosen format, size, and detail level 27.2k ★
  • Job Stories — Create job stories with acceptance criteria in JTBD format 7.8k ★
  • Video Script: Claude SEO V1.7.2 — What's New — Duration: ~5 minutes Tone: Natural, conversational, like talking to a friend who knows Claude Code Format: Scr 5k ★

README

macbook-24h-server

English 中文

**Why?** A retired or spare MacBook is a silent, low-power machine you already own. This skill revives an old computer and puts it back to work as a 7×24 server — home NAS, build agent, remote development hop, AI worker — no new hardware needed.

An [Agent Skills](https://skill.md)-format skill — works with any skills-compatible AI agent such as **Claude Code**, **WorkBuddy**, **Trae**, **Qoder** and peers — that turns any MacBook into a 24/7 always-on server:

  • System / disk / network never idle-sleep
  • Closing the lid does not sleep it (while on AC power)
  • The display still turns off after idle — you choose when: 30 / 60 / 90 minutes or fully custom — or never: the skill switches caffeinate to -dimsu (-u asserts UserIsActive) and warns you up front that the screen will stay lit permanently (extra power, OLED burn-in risk)
  • Optionally disables App Nap for remote-control apps — WorkBuddy, Codex, Claude, Trae, Qoder, or any GUI app — so phone / remote sessions survive the screen turning off
  • Login auto-start, crash auto-restart via a user-level LaunchAgent — no root daemon needed

The pitfall this skill fixes

`caffeinate` alone is not enough for a headless Mac. Two classic traps:

  1. App Nap — macOS throttles the timers/websockets of apps with no visible window once the display is off. The machine is awake, but your remote-control channel silently goes offline. caffeinate cannot fix this; the skill sets NSAppSleepDisabled per app.
  2. Network roaming — a laptop moving between home Wi-Fi and a phone hotspot changes its public IP and leaves stale websockets half-open.

See [`references/troubleshooting.md`](references/troubleshooting.md) for the full diagnostic playbook.

Install

The `macbook-24h-server/` folder follows the open Agent Skills format (`SKILL.md` + `scripts/` + `references/`), not