Token导航 LogoToken导航

Agent Skill · 开发

macos-resource-optimizer(macOS resource 优化器)

macos-resource-optimizer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

macos-resource-optimizer 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 17,575。

总安装 396周安装 16GitHub Stars 公开资料未说明下载 124核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:macos-resource-optimizer(macOS resource 优化器)
来源仓库:https://github.com/rdmptv/adbautoplayer
仓库路径:skills/macos-resource-optimizer
安装命令:
npx skills add https://github.com/rdmptv/adbautoplayer --skill macos-resource-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rdmptv/adbautoplayer --skill macos-resource-optimizer

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

macOS resource optimizer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。注意该工具当前无底部简介,功能以实际仓库内容为准。

来源仓库内路径:skills/macos-resource-optimizer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/rdmptv/adbautoplayer --skill macos-resource-op…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

macos-resource-optimizer 怎么安装?

在终端执行 npx skills add https://github.com/rdmptv/adbautoplayer --skill macos-resource-optimizer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

macos-resource-optimizer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

macos-resource-optimizer 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

macos-resource-optimizer 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

macos-resource-optimizer 用的人多吗?

公开数据是累计安装 396 次,近一周安装 16 次,下载 124 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

macos-resource-optimizer 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
macos-resource-optimizer

macOS resource 优化器 · 本页

396—操作浏览器MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

macOS Resource Optimizer

Production-ready system optimization with 40+ specialized agents for comprehensive macOS resource management.

Quick Reference

What is macOS Resource Optimizer? Real-world macOS optimization framework with 40+ specialized agents executing in parallel:

  • coordinator.py: 40-agent orchestrator (6 phases, 4-5s execution)
  • 40+ specialized agents: Memory, disk, browser, Docker, developer tools
  • Implementation: UV scripts (PEP 723) + Bash delegation via MoAI agents

Main Orchestrator:

ScriptPurposeAgentsExecution Time
coordinator.py40-agent parallel orchestrator40 agents (6 phases)4-5s

6 Phases (coordinator.py):

  1. Disk Cleanup (15 agents): Python/Node zombies, Browser helpers, Network leaks, Docker containers
  2. RAM Optimization (9 agents): Memory pressure, App profiler, Browser tabs, Electron apps
  3. Developer Cache (5 agents): Time Machine, Xcode, Build caches, Docker cleanup
  4. Advanced Memory (4 agents): Swap optimizer, WindowServer, Spotlight, Memory leaks
  5. Browser Deep Cleanup (3 agents): Chrome, Safari, Firefox optimizers
  6. 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

# Docker cleanup
uv run scripts/agent_docker_deep_cleanup.py --dry-run

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

Available Agents (40+)

Phase 1: Disk Cleanup (15 agents)

Process Cleanup:

  • agent_python_zombies.py - Python zombie processes
  • agent_node_process_scanner.py - Node/Bun zombie processes
  • agent_workerd_zombies.py - Cloudflare Workers zombies
  • agent_generic_idle.py - Generic idle process hunter
  • agent_jvm_memory_hog_detector.py - JVM memory hog detection
  • agent_ssh_git_process_zombies.py - SSH/Git process zombies

Application Helpers:

  • agent_browser_helpers.py - Chrome/Arc renderer helpers
  • agent_language_servers.py - VS Code language servers
  • agent_electron_helpers.py - Notion/Dia helpers

Network & Resources:

  • agent_network_connection_leaks.py - Network connection leaks
  • agent_orphaned_process_groups.py - Orphaned process groups
  • agent_docker_container_scanner.py - Docker container scanning
  • agent_database_connection_pooler.py - Database connection pooling
  • agent_ssh_connection_scanner.py - SSH connection scanning
  • agent_file_cache_optimizer.py - File cache optimization

Phase 2: RAM Optimization (9 agents)

  • agent_memory_pressure_detector.py - Memory pressure analysis
  • agent_browser_tab_manager.py - Browser tab management
  • agent_browser_helper_consolidator.py - Browser helper consolidation
  • agent_browser_cache_optimizer.py - Browser cache optimization
  • agent_inactive_app_detector.py - Inactive application detection
  • agent_electron_app_optimizer.py - Electron app optimization
  • agent_background_app_suspender.py - Background app suspension
  • agent_swap_optimizer.py - Swap usage optimization
  • agent_memory_leak_hunter.py - Memory leak detection

Phase 3: Developer Cache (5 agents)

  • agent_timemachine_snapshot_cleaner.py - Time Machine snapshots
  • agent_developer_cache_cleaner.py - Developer cache cleanup
  • agent_xcode_cache_cleaner.py - Xcode artifact cleanup
  • agent_build_cache_cleaner.py - Gradle/Maven cache cleanup
  • agent_system_log_cleaner.py - System log cleanup

Phase 4: Advanced Memory (4 agents)

  • agent_swap_purgeable_hunter.py - Purgeable swap memory
  • agent_window_server_optimizer.py - WindowServer optimization
  • agent_spotlight_mds_hunter.py - Spotlight MDS optimization
  • agent_memory_leak_hunter.py - Memory leak detection

Phase 5: Browser Deep Cleanup (3 agents)

  • agent_chrome_deep_cleanup.py - Chrome deep cleanup
  • agent_safari_optimizer.py - Safari optimization
  • agent_firefox_deep_cleanup.py - Firefox cleanup

Phase 6: App & System (3 agents)

  • agent_messaging_app_hunter.py - Messaging app optimization (Slack/Discord)
  • agent_vscode_deep_cleanup.py - VS Code cleanup
  • agent_dns_connection_scanner.py - DNS/Network optimization

Architecture

Execution Stack

User Command (slash command)
    ↓
MoAI Command (Python orchestrator)
    ↓
Task() delegation to manager agents
    ↓
Manager-Resource-Coordinator (MoAI agent)
    ↓
Bash(uv run coordinator.py) → UV Script execution
    ↓
asyncio.gather() parallel execution
    ├─ Phase 1: Disk Cleanup (15 agents)
    ├─ Phase 2: RAM Optimization (9 agents)
    ├─ Phase 3: Developer Cache (5 agents)
    ├─ Phase 4: Advanced Memory (4 agents)
    ├─ Phase 5: Browser Cleanup (3 agents)
    └─ Phase 6: App & System (3 agents)
    ↓
JSON results aggregation
    ↓
User-facing report (Korean)

Implementation Details

Execution Method: UV Scripts (PEP 723)

#!/usr/bin/env uv run
# /// script
# requires-python = ">=3.11"
# dependencies = ["psutil", "pyyaml"]
# ///

import asyncio
import psutil

# Scripts run directly via: uv run script.py
# No Python virtual environment setup required

Delegation Pattern: Bash + Task()

# 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

Data Flow

# coordinator.py executes agents
{
    "phases": {
        "disk_cleanup": {
            "agents_executed": 15,
            "duration": 2.1,
            "savings_gb": 5.3,
            "results": [...]
        },
        "ram_optimization": {
            "agents_executed": 9,
            "duration": 1.8,
            "memory_freed_gb": 2.1,
            "results": [...]
        },
        ...
    },
    "summary": {
        "total_agents": 40,
        "total_duration": 2.5,
        "total_savings_gb": 12.4,
        "total_memory_freed_gb": 4.2
    }
}

Protected Apps

Default protected apps (from config/cleanup-rules.json):

  • Claude Code
  • Notion
  • Slack
  • Discord
  • Mail
  • Messages
  • Ghostty

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

MetricValue
Total Agents40+ specialized agents
Orchestrators1 (coordinator only)
Execution Time (parallel)4-5s (first run), 2-3s (cached)
Execution Time (sequential)~40s (estimated)
Speed Improvement8× 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.

## Workflow

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

## Workflow

1. 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)
  • expert-memory-optimizer - Memory-specific agents
  • expert-cpu-optimizer - CPU optimization (future)
  • expert-disk-optimizer - Disk optimization agents

MoAI Skills:

  • moai-lang-python - Python 3.11+ async patterns
  • moai-foundation-core - TRUST 5 quality standards
  • moai-essentials-debug - Debugging subprocess issues

Commands:

  • /macos-resource-optimizer:0-init - Initialize configuration
  • /macos-resource-optimizer:1-analyze - Full system analysis
  • /macos-resource-optimizer:2-optimize - System optimization
  • /macos-resource-optimizer:3-monitor - Continuous monitoring
  • /macos-resource-optimizer:9-feedback - Submit feedback

Version: 2.1.0 Last Updated: 2025-11-30 (Phase 2.2 improvements) Status: ✅ Production Ready (40+ agents, 1 orchestrator, UV scripts) Architecture: Bash(uv run) delegation pattern via MoAI agents Real Scripts: Located in .claude/skills/macos-resource-optimizer/scripts/ Actual Performance: 4-5s first run, 2-3s cached (measured 2025-11-30)

平台分布

Claude Code

26.87%
按下载量换算33

windsurf

23.2%
按下载量换算29

OpenCode

15.76%
按下载量换算20

Codex

11.78%
按下载量换算15

Antigravity

7.42%
按下载量换算9

Gemini CLI

3.11%
按下载量换算4

安全审计

Gen Agent Trust Hub

未通过

Socket

未通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills