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.
clawhub install mac-health-check
git clone https://github.com/RuBAN-GT/mac-health-check-skill.git ~/.openclaw/skills/mac-health-check
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
For raw JSON, run:
python {baseDir}/scripts/macmon_status.py --format json --pretty
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 -
Run:
bash {baseDir}/bin/macmon-safe.sh pipe -s 1
If this prints a JSON sample, the skill is ready to use.
Default summary includes:
Keep the explanation practical and short unless the user asks for a deeper breakdown.
CPU temp under ~60C: usually calm or light work~60C to 85C: normal active load85C+: hot; mention sustained load or possible thermal pressureswap usage above 0: memory pressure may be startinghigh system power + high temps: likely sustained workDo not overclaim danger from one sample. Call it a snapshot.
macmon is missing, say so plainly.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.bash {baseDir}/bin/macmon-safe.sh ... in OpenClaw exec contexts.Use references/sample-output.md when you need a reminder of the common JSON fields emitted by macmon.
共 1 个版本