← 返回 Skills 市场
metaspartan

mactop

作者 metaspartan · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
2301
总下载
2
收藏
7
当前安装
2
版本数
在 OpenClaw 中安装
/install mactop
功能描述
Retrieve real-time hardware metrics from Apple Silicon Macs using mactop's TOON format. Provides CPU, RAM, GPU, power, thermal, network, disk I/O, and Thunderbolt bus information. Use when the user wants system stats, hardware monitoring, or performance metrics on Apple Silicon Macs.
使用说明 (SKILL.md)

Mactop Skill

Execute mactop in headless TOON mode and parse the output for hardware metrics.

Prerequisites

  • mactop installed: brew install mactop
  • PATH includes /usr/sbin: Required for sysctl access

Usage

Get Full Metrics

mactop --format toon --headless --count 1

Parse Key Metrics

CPU Usage:

mactop --format toon --headless --count 1 | grep "^cpu_usage:" | awk '{print $2}'

RAM (used/total GB):

mactop --format toon --headless --count 1 | grep -E "^  (Used|Total):" | awk '{printf "%.1f", $2/1073741824}'

GPU Usage:

mactop --format toon --headless --count 1 | grep "^gpu_usage:" | awk '{print $2}'

Power (total/CPU/GPU):

mactop --format toon --headless --count 1 | grep -E "^  (TotalPower|CPUPower|GPUPower):" | awk '{print $2}'

Thermal State:

mactop --format toon --headless --count 1 | grep "^thermal_state:" | awk '{print $2}'

Temperature:

mactop --format toon --headless --count 1 | grep "^  SocTemp:" | awk '{print $2}'

Chip Info:

mactop --format toon --headless --count 1 | grep "^  Name:" | awk '{print $2}'

Network I/O (bytes/sec):

mactop --format toon --headless --count 1 | grep -E "^(  InBytesPerSec|  OutBytesPerSec):" | awk '{print $2}'

Thunderbolt Buses:

mactop --format toon --headless --count 1 | grep "^    Name:" | awk '{print $2}'

Options

Option Description
--count N Number of samples (default: 1)
--interval MS Sample interval in milliseconds (default: 1000)

TOON Format

timestamp: "2026-01-25T20:00:00-07:00"
soc_metrics:
  CPUPower: 0.15
  GPUPower: 0.02
  TotalPower: 8.5
  SocTemp: 42.3
memory:
  Total: 25769803776
  Used: 14852408320
  Available: 10917395456
cpu_usage: 5.2
gpu_usage: 1.8
thermal_state: Normal
system_info:
  Name: Apple M4 Pro
  CoreCount: 12

Response Example

Format metrics in a readable box:

┌─ Apple M4 Pro ──────────────────────┐
│ CPU:   5.2%  |  RAM: 13.8/24.0 GB  │
│ GPU:   1.8%  |  Power: 8.5W total  │
│ Thermal: Normal  |  SoC: 42.3°C    │
└─────────────────────────────────────┘

Troubleshooting

  • "sysctl not found" → Add /usr/sbin to PATH
  • No output → Verify mactop is installed: which mactop
安全使用建议
This skill is internally consistent for collecting Apple Silicon hardware metrics via the mactop CLI, but the package/source is unknown. Before installing or running these commands: 1) verify the mactop Homebrew package and its tap (use brew info mactop) to confirm the publisher and that it is trustworthy; 2) ensure you are on an Apple Silicon mac — the tool is not relevant on other OSes; 3) be aware that running third-party binaries (even via brew) executes native code on your machine — review upstream project/homepage or source code if available; 4) the SKILL.md uses shell pipelines (grep/awk) which are harmless here but will run exactly as written, so avoid pasting untrusted modifications. If you want higher assurance, request a skill that includes a verifiable homepage/source or a packaged install spec from a known release host.
功能分析
Type: OpenClaw Skill Name: mactop Version: 1.0.1 The skill is benign. It uses the legitimate `mactop` tool to retrieve and parse real-time hardware metrics on Apple Silicon Macs, aligning perfectly with its stated purpose. The `SKILL.md` provides clear instructions for installation via `brew` and execution, with no evidence of data exfiltration, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts against the agent.
能力评估
Purpose & Capability
The name/description promise hardware metrics from Apple Silicon Macs and the SKILL.md only instructs running the mactop CLI and parsing its TOON output. References to installing via brew and ensuring /usr/sbin is on PATH are consistent with a macOS CLI tool. One small mismatch: the registry metadata has no OS restriction while the skill clearly targets Apple Silicon macOS.
Instruction Scope
All runtime instructions are limited to invoking mactop and parsing its stdout with grep/awk; they do not ask the agent to read unrelated files, environment variables, or send data to external endpoints. Troubleshooting steps reference PATH and which mactop, which is reasonable for a CLI-based skill.
Install Mechanism
This is instruction-only (no install spec or code). The SKILL.md suggests installing mactop via Homebrew (brew install mactop). That is a low-risk, common approach, but because the skill source/homepage is unknown you should verify the brew package origin/tap before installing third-party binaries.
Credentials
No environment variables, credentials, or config paths are requested. The instructions only require PATH to include /usr/sbin for sysctl access, which is reasonable for local system metric collection.
Persistence & Privilege
The skill is not always-enabled, has no install-time persistence, and makes no requests to modify other skills or system-wide configuration. It does not request elevated privileges in the manifest.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mactop
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mactop 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Improved and clarified usage instructions for retrieving and parsing hardware metrics with mactop. - Simplified prerequisites and troubleshooting steps. - Updated parsing examples for key metrics (CPU, RAM, GPU, power, thermal, network, Thunderbolt). - Provided clearer TOON format and example output box. - Removed clawdbot-specific setup and wrapper script references for broader applicability.
v1.0.0
- Updated skill.
元数据
Slug mactop
版本 1.0.1
许可证
累计安装 8
当前安装数 7
历史版本数 2
常见问题

mactop 是什么?

Retrieve real-time hardware metrics from Apple Silicon Macs using mactop's TOON format. Provides CPU, RAM, GPU, power, thermal, network, disk I/O, and Thunderbolt bus information. Use when the user wants system stats, hardware monitoring, or performance metrics on Apple Silicon Macs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2301 次。

如何安装 mactop?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mactop」即可一键安装,无需额外配置。

mactop 是免费的吗?

是的,mactop 完全免费(开源免费),可自由下载、安装和使用。

mactop 支持哪些平台?

mactop 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 mactop?

由 metaspartan(@metaspartan)开发并维护,当前版本 v1.0.1。

💬 留言讨论