Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

macosmacOS 搜索

Agent Skill

macos 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

83,901

周安装

3,604

GitHub Stars

2

下载量

29,409
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install macos

简介

用于记录任务执行中的错误、用户纠正、经验和能力缺口,帮助 Agent 持续沉淀问题与修正策略。

  • 适用于跨平台兼容性调试、系统差异适配、自动化脚本优化等场景。
  • 自动捕获 macOS 特有行为偏差并提供 Linux 环境对比参考。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • macos 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
macOS
description
macOS system administration, command-line differences from Linux, and automation best practices.
metadata
category
system
skills
["macos", "osx", "apple", "darwin", "terminal"]

BSD vs GNU Commands

  • sed -i requires extension argument: sed -i '' 's/a/b/' file — empty string for no backup, Linux doesn't need it
  • find doesn't support -printf — use -exec stat or xargs with stat -f instead
  • date uses different format flags: date -j -f '%Y-%m-%d' '2024-01-15' '+%s'-j prevents setting time
  • grep -P (Perl regex) doesn't exist — use grep -E (extended) or install ggrep via Homebrew
  • xargs defaults to /usr/bin/echo not the command — always specify the command explicitly
  • readlink -f doesn't exist — use realpath or python3 -c "import os; print(os.path.realpath('path'))"

Homebrew Paths

  • Apple Silicon: /opt/homebrew/bin, /opt/homebrew/lib
  • Intel: /usr/local/bin, /usr/local/lib
  • Check architecture: uname -m returns arm64 or x86_64
  • Homebrew doesn't add to PATH automatically — check ~/.zprofile for eval line
  • Running x86 binaries: arch -x86_64 /bin/bash then install/run Intel-only tools

Keychain (Secrets)

  • Store: security add-generic-password -a "$USER" -s "service_name" -w "secret_value" -U
  • Retrieve: security find-generic-password -a "$USER" -s "service_name" -w
  • -U flag updates if exists — without it, duplicate entries error
  • Keychain prompts for access on first use — authorize permanently for automation
  • Delete: security delete-generic-password -a "$USER" -s "service_name"

launchd (Services)

  • User agents: ~/Library/LaunchAgents/ — runs as user when logged in
  • System daemons: /Library/LaunchDaemons/ — runs at boot as root
  • Load: launchctl load -w ~/Library/LaunchAgents/com.example.plist
  • Unload before editing: launchctl unload — edits to loaded plists are ignored
  • Check errors: launchctl list | grep service_name then launchctl error <exit_code>
  • Logs: log show --predicate 'subsystem == "com.example"' --last 1h

Privacy Permissions (TCC)

  • Automation scripts fail silently without Full Disk Access or Automation permissions
  • Grant in System Settings → Privacy & Security → corresponding category
  • Terminal and iTerm need separate permissions — granting to one doesn't grant to other
  • tccutil reset clears permissions: tccutil reset AppleEvents for Automation
  • Check granted permissions: sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "SELECT * FROM access"

defaults (Preferences)

  • Read: defaults read com.apple.finder AppleShowAllFiles
  • Write: defaults write com.apple.finder AppleShowAllFiles -bool true
  • Delete: defaults delete com.apple.finder AppleShowAllFiles
  • Restart app after changing: killall Finder
  • Find app bundle ID: osascript -e 'id of app "App Name"'
  • Export all: defaults export com.apple.finder - outputs XML

File Operations

  • ditto preserves resource forks and metadata — use instead of cp for app bundles
  • Create DMG: hdiutil create -volname "Name" -srcfolder ./folder -format UDZO output.dmg
  • Mount DMG: hdiutil attach image.dmg — returns mount point path
  • Unmount: hdiutil detach /Volumes/Name
  • Extended attributes: xattr -l file to list, xattr -c file to clear all
  • Quarantine removal: xattr -d com.apple.quarantine app.app

Clipboard

  • Copy to clipboard: echo "text" | pbcopy
  • Paste from clipboard: pbpaste
  • Copy file contents: pbcopy < file.txt
  • Preserve RTF: pbpaste -Prefer rtf
  • Clipboard works in SSH sessions to local machine — useful for remote file copying

Screenshots and Screen

  • Screenshot region to file: screencapture -i output.png
  • Screenshot window: screencapture -w output.png
  • Screenshot to clipboard: screencapture -c
  • Headless (no UI): screencapture -x — suppresses sound and cursor
  • Screen recording requires Screen Recording permission in Privacy settings

Process Management

  • Prevent sleep: caffeinate -i command — keeps system awake while command runs
  • Prevent sleep with timeout: caffeinate -t 3600 — 1 hour
  • Check why not sleeping: pmset -g assertions
  • Power settings: pmset -g to view, sudo pmset -a sleep 0 to disable sleep
  • Current app in focus: osascript -e 'tell application "System Events" to get name of first process whose frontmost is true'

Network

  • List interfaces: networksetup -listallhardwareports
  • Get IP: ipconfig getifaddr en0 (Wi-Fi usually en0 on laptops)
  • DNS servers: scutil --dns | grep nameserver
  • Flush DNS: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  • Proxy settings: networksetup -getwebproxy "Wi-Fi"

System Integrity Protection

  • Check status: csrutil status
  • Disable (Recovery Mode only): csrutil disable — not recommended for production
  • Protected paths: /System, /usr (except /usr/local), /sbin, /bin
  • Can't modify these even as root — design your automations around this

Logs

  • Stream live: log stream --predicate 'process == "processname"'
  • Search recent: log show --last 1h --predicate 'eventMessage contains "error"'
  • Subsystem filter: log show --predicate 'subsystem == "com.apple.example"'
  • Save to file: log collect --output ./logs.logarchive — opens in Console.app

Automation Tips

  • Open URL: open "https://example.com" — uses default browser
  • Open app: open -a "Safari" — by name, not path
  • Open file with specific app: open -a "TextEdit" file.txt
  • Run AppleScript: osascript -e 'tell application "Finder" to get name of home'
  • Spotlight search: mdfind "kMDItemDisplayName == 'filename.txt'" — faster than find for indexed files

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

88.94%
按下载量换算26,156

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills