← Back to Skills Marketplace
metaspartan

mactop

by metaspartan · GitHub ↗ · v1.0.1
cross-platform ✓ Security Clean
2301
Downloads
2
Stars
7
Active Installs
2
Versions
Install in OpenClaw
/install mactop
Description
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.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mactop
  3. After installation, invoke the skill by name or use /mactop
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug mactop
Version 1.0.1
License
All-time Installs 8
Active Installs 7
Total Versions 2
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 2301 downloads so far.

How do I install mactop?

Run "/install mactop" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is mactop free?

Yes, mactop is completely free (open-source). You can download, install and use it at no cost.

Which platforms does mactop support?

mactop is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created mactop?

It is built and maintained by metaspartan (@metaspartan); the current version is v1.0.1.

💬 Comments