/fleet-infra:mac-node-prepfrom fleet-infra
把一台新 Mac 准备成能无人值守跑会话的机器——在它加入入口(mac-node-enroll)之前:关睡眠、Spotlight、Siri、iCloud 同步、自动更新,开自动登录和远程登录,装命令行工具,并预先点掉会卡住无人值守步骤的授权弹窗。用于「新 Mac 上架」「机器老是睡着 / 断线」「装机卡在授权框」「机器 CPU 被 Spotlight 吃满」。只给管理机器的人用。
Ships in fleet-infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
占位:<NODE> 这台机器的名字 · <ADMIN_LOGIN> 它的管理员登录。没有值就问人,不猜。
权威出处:docs/dev/HOST.md「An unattended Mac」「All at once: fleet-host-tune.sh」「Verify」;
docs/dev/MANAGED-NODE.md §6(完全磁盘访问、远程登录)、§19(Spotlight);docs/dev/BREAK-IT.md 行
tcc-prompt-wedge、node-fda-probe-hang。这里只列顺序和判据,细节以它们为准。
mac-node-enroll 之前走完。mds* / spotlightknowledged 撑高。在这台 Mac 上,用 <ADMIN_LOGIN> 登录(屏幕前或 ssh):
sw_vers; uname -m # macOS 版本与芯片
dscl . -read /Groups/admin GroupMembership # 你是管理员
xcode-select -p # 命令行工具在不在(/usr/bin/python3 要它)
fdesetup status # FileVault:无人值守要 Off 才能自动登录
pmset -g | grep -E '^\s*(sleep|autorestart|womp)'
mdutil -a -s # 各卷索引状态
systemsetup -getremotelogin # 需要 sudo
机器上已有 fleet 时,bash ~/.claude/fleet/bin/fleet-host-tune.sh(= --plan,什么都不改)一次列出现在 → 目标 → 命令。
xcode-select --install(屏幕前点「安装」)。没有它 fleet-node-install.sh 停在「检查」一步。bash ~/.claude/fleet/bin/fleet-host-tune.sh --apply(逐项问 y/N;--yes 不问)——
spotlight · nofile · sleep · siri · network(双网卡只留有线)。每个 CHANGE 行打印它的撤销命令,记下来。
还没装 fleet:照 docs/dev/HOST.md 手动执行同样几条:
sudo pmset -a sleep 0 autorestart 1 womp 1
sudo systemsetup -setrestartfreeze on
sudo mdutil -a -i off && sudo mdutil -a -E
fleet-host-tune.sh 明说不管):
fdesetup status = Off)——无人值守机器靠机房做物理安全;带出门的笔记本不要关。<ADMIN_LOGIN>。tcc-prompt-wedge)。
上架时人在场,把需要的授权一次给齐:入网(mac-node-enroll)装完后照 docs/dev/MANAGED-NODE.md §6「要人做一次(每台机器)」给管理员 agent 加「完全磁盘访问」,给守护的 python3 加同样的授权。spotlight 任务每小时关一次;要保留:sudo touch /var/db/fleet-node/spotlight.keep。bash ~/.claude/fleet/bin/fleet-host-tune.sh 说 nothing to change。fleet doctor 的机器部分:sleep · siri · spotlight · nofile · network 为 PASS(icloud 退出账户前是 INFO):
bash ~/.claude/fleet/bin/fleet-doctor.sh 2>&1 | grep -E '^\s*\S+\s+(spotlight|nofile|sleep|siri|icloud|network)'sudo shutdown -r now):不碰键盘,几分钟内 ssh 能进、自动登录的会话在。fleet doctor --machine 全绿,fleet-node-supervisor.py status --check 退出 0(6 = 授权框卡住,按第 4 步处理)。fleet-host-tune.sh 每行打印的撤销命令照着跑;常用的:
sudo pmset -a sleep <分钟>、sudo pmset -a autorestart 0 womp 0、sudo systemsetup -setrestartfreeze off、sudo mdutil -a -i on。status --check 退出 6):点掉框;kill -9 用户级 tccd;还卡就 sudo killall -9 sandboxd。FLEET_DOCTOR_SLEEP=0 让体检别再报,不要改回整套设置。What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub verkyyi/claude-fleet --plugin fleet-infra11 skills in this plugin
/ack-linux-node在 Kubernetes(如阿里云 ACK)上起一台托管 Linux 节点——打镜像、渲染清单、用一次性加入码起 StatefulSet、开号、核对出口和凭据隔离、按 digest 升级与回退。用于「加一台云上 Linux 机器」「Linux 节点起不来 / 换镜像」「云节点回滚」。只给管理集群和机器的人用。/hub-deploy发布与回退入口(ccquota hub)——正常走发布列车,紧急走 hub-deploy 的手动运行;暂停、指定旧镜像回退、跨库迁移时恢复快照、按 /version 与体检验收。用于「入口要发新版 / 急修」「入口升级后坏了要回退」「暂停入口发布」「演练回退」。只给管理入口的人用。/login-lifecycle在托管机器上给一个人开号、删号、回收备用登录——优先从入口(`fleet hub accounts assign|remove`)做,入口做不了时在机器上用 fleet-login-new.sh / fleet-login-remove.sh;开号前看备用、删号前归档家目录。用于「给某人开个号」「这个人走了,删号」「入口一直显示删除中 / 开号中」「备用登录不补」。只给管理机器的人用。Other plugins' skills for the same job