Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add rianvdm/product-ai-public --skill diagnosing-mac-performancegit clone --depth 1 https://github.com/rianvdm/product-ai-publicWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rianvdm/product-ai-public/diagnosing-mac-performance)<a href="https://agentmods.dev/skills/rianvdm/product-ai-public/diagnosing-mac-performance"><img src="https://agentmods.dev/badge/skills/rianvdm/product-ai-public/diagnosing-mac-performance/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rianvdm/product-ai-public/diagnosing-mac-performance"><img src="https://agentmods.dev/badge/skills/rianvdm/product-ai-public/diagnosing-mac-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00031 | $0.01718 |
| Opus 5.5 | $0.00012 | $0.00687 |
| Sonnet 5.5 | $0.00006 | $0.00344 |
| Haiku 4.5 | $0.00003 | $0.00172 |
Grade D, and why
diagnosing-mac-performance scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
| mds / mds_stores / mdworker | <5% each | >20% or many workers | Spotlight indexing. Usually transient after updates. `sudo mdutil -i off /` to pause if urgent. | Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- Never suggest `sudo rm -rf` on system directories How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diagnosing Mac Performance Issues
When to Use
- User says their Mac feels slow, laggy, or unresponsive
- User asks what's consuming CPU, memory, or battery
- User reports fans running loud or machine running hot
- Proactive check during long sessions if the user mentions sluggishness
Steps
-
Snapshot system state — run these in parallel:
# Top processes by CPU ps -eo pid,pcpu,pmem,comm -r | head -25 # System overview (load avg, memory, swap) top -l 1 -n 1 -stats pid,command,cpu | head -10 # Memory pressure and swap sysctl vm.swapusage && memory_pressure -
Triage into CPU-bound vs memory-bound:
- CPU-bound: One or more processes above 30% CPU. Identify and investigate.
- Memory-bound: Swap used > 2 GB, compressor > 4 GB, or "Pages free" under 10,000. Even if no single process is hot, the system spends CPU on compression/decompression and swap I/O.
- Both: Common. A runaway daemon often causes memory pressure too.
-
For CPU hogs — identify the category:
Process type Normal range Investigate if Common fix WindowServer 10-20% >35% sustained Usually driven by another app doing excessive redraws. Fix the other app. contactsd / AddressBookManager <2% >10% Stuck sync loop. Check error logs, disable problematic account sync (Gmail CardDAV is a known offender). mds / mds_stores / mdworker <5% each >20% or many workers Spotlight indexing. Usually transient after updates. sudo mdutil -i off /to pause if urgent.kernel_task varies >200% Thermal throttling. Not fixable via software — machine needs cooling. nsurlsessiond / cloudd <5% >15% iCloud sync stuck. Check System Settings > Apple ID > iCloud. trustd <1% >10% Certificate validation loop. Often clears on reboot. Electron apps (Discord, Slack, VS Code, Windsurf) 2-5% each >15% Restart the app. Electron apps leak memory over time.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 25d ago Changed · -58 tokens per session 5643d8300294
- 3mo ago First seen · 111 lines · 89 tokens per session scan D 757838e857e7
diagnosing-mac-performance is a skill published in the GitHub repository rianvdm/product-ai-public (21 stars, last pushed 16d ago), licensed MIT. It adds 31 tokens to every session and 1,718 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
diagnosing-mac-performance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnosing-mac-performancerianvdm/product-ai-public | Skill | 21 | 16d ago | MIT | D | 31 | OpenCode |
| systematic-debuggingopen-metadata/OpenMetadata | Skill | 16k | today | Apache-2.0 | A | 37 | Claude Code |
| log-error-digestzebbern/claude-code-guide | Skill | 4.7k | yesterday | MIT | A | 71 | Claude Code, Codex |
| observability-audit-sessionsIBM/mcp-context-forge | Skill | 4.9k | yesterday | Apache-2.0 | A | 64 | Claude Code, Codex |
| cwv-optimizeradobe/skills | Skill | 345 | yesterday | Apache-2.0 | A | 112 | Claude Code |
| performance-verificationvalkor-ai/loom | Skill | 1.6k | 4d ago | Apache-2.0 | A | 45 | Claude Code, Codex |
| loop-engineeringhuytieu/COG-second-brain | Skill | 1.6k | 3d ago | MIT | A | 63 | Claude Code |