Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

macosmacOS 搜索

Agent Skill

macos 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

451

周安装

19

GitHub Stars

4

下载量

158
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill macos

简介

该技能用于 macOS 系统管理与自动化,支持文件、进程与 Apple 生态工具交互。

  • 适用于 macOS 专属脚本编写、硬件状态监控或应用启动控制等场景。
  • 通过 GitHub 仓库安装,适用于 Codex、Claude、Cursor、Gemini CLI。
  • 需确认 Gatekeeper 与隐私权限设置是否允许脚本执行。
  • 不建议用于跨平台通用任务,优先选择通用工具替代。

SKILL.md

macos

Purpose

This skill enables OpenClaw to provide macOS system overviews and orchestrate tasks like file management, process control, and app interactions, leveraging macOS-specific APIs and CLI tools for efficient automation.

When to Use

Use this skill for macOS-exclusive tasks, such as managing user permissions, monitoring system resources, automating app launches, or integrating with Apple ecosystem tools. Apply it when the agent needs to handle Apple-specific environments, like scripting for macOS-only workflows or troubleshooting hardware interactions.

Key Capabilities

  • Access macOS CLI commands for file operations, e.g., listing directories with permissions.
  • Orchestrate system processes using launchctl for service management.
  • Interact with Apple APIs, like Foundation framework for file I/O.
  • Monitor system metrics via sysctl or top, and handle app-specific events using AppleScript.
  • Manage configurations in plist XML format for system preferences or app settings.

Usage Patterns

Invoke this skill by specifying the "macos" ID in OpenClaw queries, e.g., prefix with "use skill: macos" for context. Always check for macOS version compatibility using sw_vers before executing commands. For orchestration, chain tasks like file checks followed by process starts. Use environment variables for sensitive data, e.g., set $APPLE_API_KEY for authenticated API calls. Structure requests as JSON payloads with fields like {"action": "run_command", "command": "ls -l"}.

Common Commands/API

  • Use ls -l to list files with detailed permissions; example: run via subprocess in Python: import subprocess; subprocess.run(['ls', '-l', '/path']).
  • Manage services with launchctl load /path/to/plist for starting daemons; snippet: subprocess.run(['launchctl', 'load', '-w', '/Library/LaunchDaemons/com.example.plist']).
  • Query system info via sysctl -n hw.memsize for memory size; code: output = subprocess.check_output(['sysctl', '-n', 'hw.memsize']).decode().strip().
  • Open files with open -a "Application" file.path; e.g., subprocess.run(['open', '-a', 'TextEdit', 'document.txt']).
  • AppleScript integration: Use osascript -e 'tell app "Finder" to open document file "path"'; snippet: subprocess.run(['osascript', '-e', 'tell app "Finder" to display dialog "Hello"']). If API keys are needed for extended services (e.g., Apple Developer APIs), reference them as $APPLE_DEVELOPER_KEY in environment variables.

Integration Notes

Integrate this skill with other OpenClaw skills by linking via clusters, e.g., combine with "system" cluster for cross-platform tasks. For config files, parse plist XML using Python's plistlib module: import plistlib; with open('config.plist', 'rb') as f: data = plistlib.load(f). Ensure compatibility by checking macOS version with subprocess.run(['sw_vers', '-productVersion']) and adjust commands accordingly, e.g., use xattr for extended attributes on macOS 10.10+. When integrating with tools like Homebrew, prefix commands with brew --prefix for paths. Always sandbox operations using sandbox-exec for security.

Error Handling

Handle permission errors by checking for Operation not permitted and prefix commands with sudo if needed, e.g., wrap in try-except: try: subprocess.run(['command']) except subprocess.CalledProcessError as e: log_error(e, "Permission issue; use sudo"). For API failures, verify $APPLE_API_KEY is set and catch HTTP errors like 401 Unauthorized. Common issues: File not found—use os.path.exists('/path') before operations; Process timeouts—set timeouts in subprocess calls, e.g., subprocess.run(['command'], timeout=10). Log errors with macOS's syslog via logger command for auditing.

Concrete Usage Examples

  1. Automate file backup: To back up a directory, use this pattern: First, check disk space with df -h /, then copy files: subprocess.run(['cp', '-R', '/source/dir', '/backup/dir']). In OpenClaw, query: "use skill: macos; backup /Documents to /Backup if disk space > 10GB".
  2. Monitor system resources: Query CPU usage with top -l 1 | grep "CPU usage", then alert if >80%: import re; output = subprocess.check_output(['top', '-l', '1']); if re.search(r'CPU usage: \d+\.\d+% user', output) and float(match) > 80: send_alert(). In OpenClaw: "use skill: macos; monitor CPU and notify if usage exceeds 80%".

Graph Relationships

  • Related to cluster: macos (direct link for system tasks).
  • Connects to skills: ["apple"] for ecosystem integrations, ["system"] for general OS operations.
  • Dependencies: Requires "core" cluster for basic execution; provides outputs to "automation" cluster for workflow chaining.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.46%
按下载量换算54

Claude

32.4%
按下载量换算51

Cursor

21.38%
按下载量换算34

Gemini CLI

9.29%
按下载量换算15

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills