← 返回
未分类 中文

Mac Health Check

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...
使用 `macmon` 检查当前温度、负载、内存、交换区和电源使用情况。当用户询问 Mac 的当前温度、负载、内存、交换区或电源使用情况时使用。
ruban-gt ruban-gt 来源
未分类 clawhub v1.0.6 1 版本 100000 Key: 无需
★ 2
Stars
📥 402
下载
💾 0
安装
1
版本
#latest#macos#monitoring#telemetry#temperature

概述

Mac Health Check

Use macmon as the source of truth for live Mac telemetry.

OpenClaw's host exec environment can be too minimal for some Homebrew-installed binaries. This skill includes a wrapper at {baseDir}/bin/macmon-safe.sh that retries macmon through zsh -lic when needed.

Use when

  • "What's my Mac temperature right now?"
  • "What's the temperature of my Mac?"
  • "Give me a health check for this Mac"
  • "How much RAM and swap is in use?"
  • "Is this Mac under load right now?"
  • "Show current CPU or GPU usage on this Mac"

Installation

Via ClawHub

clawhub install mac-health-check

Manual

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

Quick start

For a one-shot snapshot, run:

python {baseDir}/scripts/macmon_status.py

Default one-shot mode uses -i 200 so the first sample returns faster.

If macmon works only from a login shell in your OpenClaw setup, you can also use the wrapper directly:

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

Raw JSON

For raw JSON, run:

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

Saved output or stdin

For saved macmon output or stdin, run:

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 -

Verify setup

Run:

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

If this prints a JSON sample, the skill is ready to use.

What to report

Default summary includes:

  • CPU average temperature
  • GPU average temperature
  • Performance CPU usage and frequency
  • Efficiency CPU usage and frequency
  • GPU usage and frequency
  • System, CPU, and GPU power
  • RAM usage
  • Swap usage

Keep the explanation practical and short unless the user asks for a deeper breakdown.

Interpretation hints

  • CPU temp under ~60C: usually calm or light work
  • ~60C to 85C: normal active load
  • 85C+: hot; mention sustained load or possible thermal pressure
  • swap usage above 0: memory pressure may be starting
  • high system power + high temps: likely sustained work

Do not overclaim danger from one sample. Call it a snapshot.

Failure modes

  • If macmon is missing, say so plainly.
  • If macmon is installed but errors out, ask the user to run bash {baseDir}/bin/macmon-safe.sh pipe -s 1 manually and paste the JSON.
  • On some macOS setups, Homebrew-installed binaries work only from a login shell. Prefer bash {baseDir}/bin/macmon-safe.sh ... in OpenClaw exec contexts.
  • When reading from files or stdin, treat the last non-empty line as the sample.

Reference

Use references/sample-output.md when you need a reminder of the common JSON fields emitted by macmon.

版本历史

共 1 个版本

  • v1.0.6 当前
    2026-05-03 10:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,640
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,950
it-ops-security

Tmux

steipete
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
★ 46 📥 29,540