mactop
Skill38 starsChanged 5 months agoMITView on GitHub
Retrieve real-time hardware metrics from Apple Silicon Macs using mactop. 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.
- Installs packages
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 1passwordSkill
- adversarial-ux-testSkill
- api-debugSkill
- apple-notesSkill
- apple-remindersSkill
- authorized-web-pentestSkill
- bear-notesSkill
- birdSkill
- blogwatcherSkill
- blucliSkill
- bluebubblesSkill
- camsnapSkill
- Canvas SkillSkill
- clawdhubSkill
- cloudflare-temporary-deploySkill
- code-reviewSkill
- code-wikiSkill
- coding-agentSkill
- comfyuiSkill
- diagram-makerSkill
- discordSkill
- docker-managementSkill
- domain-intelSkill
- eightctlSkill
- excalidrawSkill
- fal.aiSkill
- fastmcpSkill
- food-orderSkill
- geminiSkill
- gifgrepSkill
- githubSkill
- gogSkill
- goplacesSkill
- himalayaSkill
- imsgSkill
- local-placesSkill
- manim-videoSkill
- mcporterSkill
- model-usageSkill
- nano-banana-proSkill
- nano-pdfSkill
- notionSkill
- obsidianSkill
- openai-image-genSkill
- openai-whisper-apiSkill
- openai-whisperSkill
- openhueSkill
- oracleSkill
- ordercliSkill
- oss-forensicsSkill
- peekabooSkill
- phoneSkill
- planSkill
- sagSkill
- session-logsSkill
- sherpa-onnx-ttsSkill
- skill-creatorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Use --format toon when a compact human-readable stream is better than JSON.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mactop Skill
Execute mactop in headless mode and parse the output for Apple Silicon hardware metrics.
Prerequisites
- mactop installed:
brew install mactop - PATH includes /usr/sbin: Required for sysctl access
Usage
Get Full Metrics
mactop --headless --count 1 --format jsonUse --format toon when a compact human-readable stream is better than JSON.
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: 12Response 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/sbinto PATH - No output → Verify mactop is installed:
which mactop
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

