ostepan8/dotfiles/system-rescue
Claude Code and agent skill by ostepan8/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Diagnose and fix macOS performance/memory issues. Use when the user says their system is slow, frozen, running out of memory, swapping heavily, laggy, hot, or fans are loud. Triggers on 'low memory', 'system slow', 'free up RAM', 'why is my mac slow', 'kill stale processes', or similar resource-pressure complaints.
Install
npx vskill@latest install ostepan8/dotfiles/system-rescueSKILL.md
The same SKILL.md was published earlier as ostepan8/dotfiles/system-rescue.
System Rescue (macOS)
Diagnose memory/CPU pressure on the user's Mac and safely reclaim resources by killing stale processes. The user runs many editor integrations (Zed ACP) and autonomous Claude Code loops that commonly leak long-lived processes — this is usually the root cause.
Diagnosis — run in parallel
Key pressure signals
| Signal | Threshold | Meaning | |
|---|---|---|---|
PhysMem unused | < 1 GB on 64 GB Mac | RAM exhausted | |
vm.swapusage used | > 80% of total | Hard swapping, will thrash | |
| Pages in compressor | > 2M pages | Severe pressure, paging is constant | |
| Load avg | > number of cores | CPU-bound |
Common culprits on this machine
- Stale `claude` CLI processes — user runs many sessions across tmux/editors and Zed's ACP (
@agentclientprotocol/claude-agent-acp,@zed-industries/claude-agent-acp) spawns a childclaudeper project and doesn't clean up. Often finds 20–40 of these, some weeks old. - Duplicate `tsserver` — multiple editors (Zed, Cursor, VSCode) each open the same repo (usually
subconscious-co-op) and spawn their own TypeScript server. Each can be 1–2 GB. - Chrome renderers leaking — a single tab at >2 GB is usually the worst offender.
- Abandoned autonomous loops —
claude -p --dangerously-skip-permissions --max-turns …from Jarvis self-improvement or similar. Often in stopped (T) state.
Safety — NEVER kill the current session
Before killing any claude process, confirm which one is yours:
$PPID is the live claude session. Also spare any of its direct children (hook scripts running during the rescue).
Do not kill:
- The current
claudesession (parent PID from check above) or its children uvicorn main:appon port 7432 (user's todo-queue server)- Anything owned by
rootunless clearly a runaway user process re-parented - Chrome without naming the tab — ask first, the user may have unsaved work
Fix — ask before killing, then prune
Present findings as a table (before-state metrics + list of stale PIDs with age/RSS) and ask for confirmation. On approval:
Wait 2–3 seconds, then verify with vm_stat + sysctl vm.swapusage and report the delta. Load avg may briefly spike as the kernel pages memory back from swap — this is normal and settles within a minute.
Report format
Always show a before/after table (Free RAM, Compressor, Swap used, Processes) so the user sees the impact. Then flag anything left that needs manual intervention (big Chrome tabs, editor restarts, etc.) and name the likely root cause so the user can prevent recurrence.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbase/agents/skills/system-rescue/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ostepan8/dotfiles/system-rescue)