memory-guardian
Installation
SKILL.md
Memory Guardian Skill
Purpose
Monitors WSL2 memory usage and enforces safe scaling limits for Claude Code instances and parallel agents.
When This Skill Activates
- Before spawning 3+ parallel Task agents
- Before running
npm run buildor other memory-heavy operations - When SessionStart hook reports WARNING or CRITICAL memory status
- When user mentions running multiple CC instances
Memory Check Command
free -m | awk '/^Mem:/{printf "RAM: %dMB/%dMB (%d%%)\n", $3, $2, $3*100/$2} /^Swap:/{if($3>0) printf "Swap: %dMB/%dMB\n", $3, $2}'