diagnosing-mac-performance

diagnosing-mac-performance is a skill for OpenCode from rianvdm/product-ai-public. It costs 31 tokens per session (1,718 once invoked), scanned D, original, MIT.

A troubleshooting guide for finding why a Mac is slow, hot, laggy, or using too much CPU, memory, or battery.

In plain words
What is it for?
It is for inspecting top processes, memory and swap, system load, battery use, and common causes of sustained macOS resource usage.
Why use it?
It separates processor overload from memory pressure and swap use, making the likely cause easier to identify.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

Good fit It is for inspecting top processes, memory and swap, system load, battery use, and common causes of sustained macOS resource usage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rianvdm/product-ai-public/diagnosing-mac-performance
Install

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.

Any agent
npx skills add rianvdm/product-ai-public --skill diagnosing-mac-performance
Clone the repo
git clone --depth 1 https://github.com/rianvdm/product-ai-public

Made for: OpenCode.

Wrote 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.

agentmods badge for diagnosing-mac-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/rianvdm/product-ai-public/diagnosing-mac-performance/github.svg)](https://agentmods.dev/skills/rianvdm/product-ai-public/diagnosing-mac-performance)
Your own site
<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.

agentmods 80×15 button for diagnosing-mac-performance

Your own site · 80×15
<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>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,718 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 25d ago against content hash 5643d8300294, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
.opencode/skills/diagnosing-mac-performance/SKILL.md · 111 lines

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

  1. 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
    
  2. 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.
  3. 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.

Read the full file on GitHub · 111 lines

Changes

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.

  1. 25d ago Changed · -58 tokens per session 5643d8300294
  2. 3mo ago First seen · 111 lines · 89 tokens per session scan D 757838e857e7

Subscribe to this mod's changes

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.

Related

diagnosing-mac-performance compared with skills from other repositories

diagnosing-mac-performance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnosing-mac-performancerianvdm/product-ai-publicSkill2116d agoMITD31OpenCode
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7kyesterdayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9kyesterdayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill345yesterdayApache-2.0A112Claude Code
performance-verificationvalkor-ai/loomSkill1.6k4d agoApache-2.0A45Claude Code, Codex
loop-engineeringhuytieu/COG-second-brainSkill1.6k3d agoMITA63Claude Code