metaspartan

mactop

運維安全v1.0.1
作者:metaspartan更新於 2026-05-11共 2 個版本 · 最新版本釋出於 2026-01-26@clawhub_metaspartan/mactop
監控告警伺服器運維

據 AlphaMoat 統計,截至 2026-09,mactop 累計下載 3,284 次、獲 2 個星標,在全部 5,078 個 AI 技能中排名第 3,458 位,在「運維安全」分類(264 個)中排名第 221 位。

累計安裝
132
累計下載
3284
星標
2
全站排名
#3,458
全站前 69% · 「運維安全」前 84%
平台累計安裝累計下載星標評論
ClawHub ↗10230562-
SkillHub ↗13232842—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該技能透過 mactop 的無頭 TOON 輸出獲取 CPU、記憶體、GPU、功耗、溫度、網路、磁碟 I/O 和 Thunderbolt 資訊;需要本機安裝 mactop 與相關係統工具。指標可能暴露裝置執行狀況,僅在需要本機監控時使用,並避免向不可信物件分享摘要。 sysctl 訪問需要 PATH 包含 /usr/sbin。

資料釋出於 2026-10-29

可以用來做什麼

  • 需要檢查 Apple Silicon Mac 效能、功耗、溫度或 I/O 狀態的開發者與運維人員。

什麼時候用

  • 確認目標是本機硬體監控且 mactop 已從可信來源安裝;分享指標前檢查是否包含敏感裝置資訊。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

請讀取這臺 Mac 的 CPU、記憶體、GPU、溫度和網路指標,並只在當前會話中總結。

月度資料趨勢

累計下載3284
2168276833672026-03 · 累計下載 22512026-05 · 累計下載 26132026-06 · 累計下載 27302026-07 · 累計下載 29342026-08 · 累計下載 30042026-09 · 累計下載 328426-0326-09
星標2
1232026-03 · 星標 22026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093284—2
2026-083004+2.4%2
2026-072934+7.5%2
2026-062730+4.5%2
2026-052613—2
2026-032251—2

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.8 KB · ClawHub v1.0.1
---
name: 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.
---

# Mactop Skill
展開全部(共 117 行)
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

```bash
mactop --format toon --headless --count 1
```

### Parse Key Metrics

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

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

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

**Power (total/CPU/GPU):**
```bash
mactop --format toon --headless --count 1 | grep -E "^  (TotalPower|CPUPower|GPUPower):" | awk '{print $2}'
```

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

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

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

**Network I/O (bytes/sec):**
```bash
mactop --format toon --headless --count 1 | grep -E "^(  InBytesPerSec|  OutBytesPerSec):" | awk '{print $2}'
```

**Thunderbolt Buses:**
```bash
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`

「運維安全」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。