返回顶部
m

mac-health-checkMac健康检查

Check the current temperature, load, memory, swap, and power usage of this Mac with `macmon`. Use when the user asks for their Mac's current temperature, Mac mini temperature, thermal state, machine health snapshot, or current CPU/GPU/RAM usage.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.6
安全检测
已通过
121
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

mac-health-check

Mac 健康检查

使用 macmon 作为实时 Mac 遥测数据的真实来源。

OpenClaw 的主机执行环境对于某些通过 Homebrew 安装的二进制文件来说可能过于精简。本技能包含一个位于 {baseDir}/bin/macmon-safe.sh 的封装脚本,可在必要时通过 zsh -lic 重试 macmon。

适用场景

  • - 我的 Mac 当前温度是多少?
  • 我的 Mac 温度如何?
  • 给我做一次 Mac 健康检查
  • 当前使用了多少内存和交换空间?
  • 这台 Mac 当前是否处于负载状态?
  • 显示这台 Mac 当前的 CPU 或 GPU 使用率

安装

通过 ClawHub

bash
clawhub install mac-health-check

手动安装

bash
git clone https://github.com/RuBAN-GT/mac-health-check-skill.git ~/.openclaw/skills/mac-health-check

快速开始

如需一次性快照,运行:

bash
python {baseDir}/scripts/macmon_status.py

默认的一次性模式使用 -i 200,以便更快返回第一个采样结果。

如果在你的 OpenClaw 设置中 macmon 仅能从登录 shell 中运行,你也可以直接使用封装脚本:

bash
bash {baseDir}/bin/macmon-safe.sh pipe -s 1

原始 JSON

如需原始 JSON,运行:

bash
python {baseDir}/scripts/macmon_status.py --format json --pretty

保存的输出或标准输入

如需使用保存的 macmon 输出或标准输入,运行:

bash
bash {baseDir}/bin/macmon-safe.sh pipe -s 1 > /tmp/macmon.jsonl
python {baseDir}/scripts/macmon_status.py --input /tmp/macmon.jsonl
cat /tmp/macmon.jsonl | python {baseDir}/scripts/macmon_status.py --input -

验证设置

运行:

bash
bash {baseDir}/bin/macmon-safe.sh pipe -s 1

如果输出一个 JSON 样本,则说明技能已准备就绪。

报告内容

默认摘要包括:

  • - CPU 平均温度
  • GPU 平均温度
  • 性能核心 CPU 使用率和频率
  • 能效核心 CPU 使用率和频率
  • GPU 使用率和频率
  • 系统、CPU 和 GPU 功耗
  • 内存使用量
  • 交换空间使用量

除非用户要求更深入的分析,否则保持解释简洁实用。

解读提示

  • - CPU 温度低于 ~60C:通常表示空闲或轻度工作
  • ~60C 到 85C:正常活动负载
  • 85C+:高温;提示持续负载或可能存在热压力
  • 交换空间使用量大于 0:内存压力可能开始出现
  • 高系统功耗 + 高温:很可能处于持续工作状态

不要仅凭一次采样就过度断言存在风险。将其视为一次快照。

故障模式

  • - 如果缺少 macmon,请直接说明。
  • 如果已安装 macmon 但运行出错,请让用户手动运行 bash {baseDir}/bin/macmon-safe.sh pipe -s 1 并粘贴 JSON。
  • 在某些 macOS 设置中,通过 Homebrew 安装的二进制文件仅能从登录 shell 中运行。在 OpenClaw 执行环境中,优先使用 bash {baseDir}/bin/macmon-safe.sh ...。
  • 从文件或标准输入读取时,将最后一个非空行视为采样结果。

参考

当需要回顾 macmon 输出的常见 JSON 字段时,请参考 references/sample-output.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mac-health-check-1775929949 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mac-health-check-1775929949 技能

通过命令行安装

skillhub install mac-health-check-1775929949

下载

⬇ 下载 mac-health-check v1.0.6(免费)

文件大小: 7.31 KB | 发布时间: 2026-4-12 10:29

v1.0.6 最新 2026-4-12 10:29
Improve OpenClaw compatibility and simplify installation docs

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部