Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Browser Deep Cleanup (3 agents): Chrome, Safari, Firefox optimizers
App & System (3 agents): Messaging apps, VSCode, DNS/Network
Performance:
Sequential: 40 × 1.0s = 40s (estimated per agent)
Parallel (6 phases): 4-5s total (8× faster than sequential)
Real-world: 4-7s depending on system state and cache availability
With MetricsCache (TTL 30s): ~2-3s on repeated calls
Usage
1. Full System Optimization (40 agents)
# Execute all 40 agents in 6 parallel phases
uv run scripts/coordinator.py
# JSON output
uv run scripts/coordinator.py --json
2. Individual Agents
# Memory pressure detector
uv run scripts/agent_memory_pressure_detector.py
# Browser tab manager
uv run scripts/agent_browser_tab_manager.py
uv run scripts/agent_docker_deep_cleanup.py --dry-run
# Docker cleanup
3. Utility Scripts
# Kill zombie processes
uv run scripts/kill_zombies_parallel.py
# Report memory usage
uv run scripts/report_memory.py
# Analyze running processes
uv run scripts/analyze_processes.py --json
MoAI Integration
Manager Agents
manager-resource-coordinator.md:
# Execute full 40-agent orchestration
result = Bash("uv run .claude/skills/macos-resource-optimizer/scripts/coordinator.py --json")
data = json.loads(result.stdout)
# Parse results by phase
phase1_results = data["phases"]["disk_cleanup"]
phase2_results = data["phases"]["ram_optimization"]
# Return aggregated recommendations
Expert Agents
expert-memory-optimizer.md:
# Execute memory-specific agents
result = Bash("uv run scripts/agent_memory_pressure_detector.py --json")
memory_data = json.loads(result.stdout)
# Generate recommendations based on memory analysis
# Manager agent receives command# Delegates to Bash tool: uv run .claude/skills/.../scripts/coordinator.py# Coordinator spawns async tasks for 40 agents# Results aggregated and returned
Recommended additional protection (for development environments):
Node.js (active development processes)
Apple Virtualization (system virtualization)
VSCode/Cursor (development editors)
Xcode (development tools)
Docker Desktop (containerization)
Customization: Edit config/cleanup-rules.json to add/remove protected apps based on your workflow.
These apps are NEVER killed or suspended during optimization.
Performance Characteristics
Metric
Value
Total Agents
40+ specialized agents
Orchestrators
1 (coordinator only)
Execution Time (parallel)
4-5s (first run), 2-3s (cached)
Execution Time (sequential)
~40s (estimated)
Speed Improvement
8× faster (parallel vs sequential)
Memory Saved (typical)
1-3 GB
Disk Saved (typical)
0.4-2.5 GB
Actual Results (2025-11-30)
+413MB disk, 18% of goal
Commands Integration
/macos-resource-optimizer:1-analyze
Execute full system analysis via coordinator.py.
## Workflow1. Delegate to manager-resource-coordinator
2. Coordinator executes: `uv run scripts/coordinator.py --json`3. Parse JSON results
4. Return formatted analysis with recommendations
/macos-resource-optimizer:2-optimize
Execute system optimization via coordinator.py.
## Workflow1. Delegate to manager-resource-coordinator
2. Coordinator executes: `uv run scripts/coordinator.py --json`3. Parse and validate results
4. Apply optimizations if approved
5. Return optimization results
Works Well With
MoAI Agents:
manager-resource-coordinator - Main orchestration (uses coordinator.py)