← 返回
开发者工具 中文

Mac System Stat

Generate a concise macOS host resource report focused on local-model readiness and machine pressure. Use when the user asks about Mac resource usage, current...
生成简洁的 macOS 主机资源报告,专注于本地模型就绪状态和机器压力。用于用户询问 Mac 资源使用情况时。
tomcatzh
开发者工具 clawhub v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 743
下载
💾 13
安装
2
版本
#latest

概述

mac-system-stat

Produce a concise macOS host snapshot using small local helpers.

Use when

  • The user asks for current Mac resource usage or machine health
  • You need CPU, memory, GPU, swap, power, fan, or a short host summary
  • You want a truthful one-shot report, not continuous monitoring

Scripts

  • scripts/hoststat — aggregate JSON host snapshot
  • scripts/memstat — RAM / compression / swap / memory pressure
  • scripts/cpustat — CPU usage, load average, process counts, top CPU processes
  • scripts/gpustat — GPU model + live IOAccelerator statistics via local Swift/IOKit helper
  • scripts/powerstat — Apple Silicon IOReport-based power sampler (non-privileged, short window average)
  • scripts/fanstat — AppleSMC-based fan reader (fan count, RPM, min/max, mode)
  • scripts/tempstat — AppleSMC temperature sensors + pmset thermal state (CPU, battery, ambient, board)
  • scripts/build-helpers — prebuild Swift helpers explicitly (optional; normal wrappers auto-build as needed)

Layout

  • The skill is intentionally self-contained under skills/mac-system-stat/
  • Python entrypoints, shared Python modules, Swift sources, and compiled helper output all live under skills/mac-system-stat/scripts/
  • scripts/bin/ is generated locally on first run or via scripts/build-helpers

Release contract

  • Chosen contract: source-only, self-building on first run
  • Ship the skill directory with Python + Swift sources; do not rely on compiled helpers being pre-vendored
  • gpustat, powerstat, fanstat, and tempstat will auto-build their helper binaries into scripts/bin/ when missing or stale
  • If swiftc / Apple Command Line Tools are unavailable, those four helpers fail truthfully with structured JSON; memstat and cpustat still run normally
  • For packaging / ClawHub, exclude transient local artifacts such as scripts/bin/ contents and __pycache__/

Notes

  • macOS only; Apple Silicon first
  • Default path avoids sudo
  • Prefer helper JSON over hand-written summaries
  • GPU reads IORegistry properties directly via IOKit instead of parsing ioreg text
  • Power uses IOReport Energy Model deltas; values are short-window averages, not hardware-meter absolutes
  • Fan RPM comes from AppleSMC F* keys; 0 RPM can mean the fans are currently stopped
  • Temperature uses curated AppleSMC keys (Tp0P, Tp0T, Te0T, Ts0P, TB0T, TW0P, Ta0P) + pmset therm state
  • Packaging caveat: compiled helpers are not vendored; the target machine still needs Command Line Tools / swiftc for first build unless prebuilt binaries are shipped separately

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-05-01 09:20 安全 安全
  • v1.0.0
    2026-03-19 10:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,399
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,365
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,834