macosmacOS system administration, command-line differences from Linux, and automation best practices.
Install via ClawdBot CLI:
clawdbot install ivangdavila/macossed -i requires extension argument: sed -i '' 's/a/b/' file — empty string for no backup, Linux doesn't need itfind doesn't support -printf — use -exec stat or xargs with stat -f insteaddate uses different format flags: date -j -f '%Y-%m-%d' '2024-01-15' '+%s' — -j prevents setting timegrep -P (Perl regex) doesn't exist — use grep -E (extended) or install ggrep via Homebrewxargs defaults to /usr/bin/echo not the command — always specify the command explicitlyreadlink -f doesn't exist — use realpath or python3 -c "import os; print(os.path.realpath('path'))"/opt/homebrew/bin, /opt/homebrew/lib/usr/local/bin, /usr/local/libuname -m returns arm64 or x86_64~/.zprofile for eval linearch -x86_64 /bin/bash then install/run Intel-only toolssecurity add-generic-password -a "$USER" -s "service_name" -w "secret_value" -Usecurity find-generic-password -a "$USER" -s "service_name" -w-U flag updates if exists — without it, duplicate entries errorsecurity delete-generic-password -a "$USER" -s "service_name"~/Library/LaunchAgents/ — runs as user when logged in/Library/LaunchDaemons/ — runs at boot as rootlaunchctl load -w ~/Library/LaunchAgents/com.example.plistlaunchctl unload — edits to loaded plists are ignoredlaunchctl list | grep service_name then launchctl error log show --predicate 'subsystem == "com.example"' --last 1htccutil reset clears permissions: tccutil reset AppleEvents for Automationsqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "SELECT * FROM access"defaults read com.apple.finder AppleShowAllFilesdefaults write com.apple.finder AppleShowAllFiles -bool truedefaults delete com.apple.finder AppleShowAllFileskillall Finderosascript -e 'id of app "App Name"'defaults export com.apple.finder - outputs XMLditto preserves resource forks and metadata — use instead of cp for app bundleshdiutil create -volname "Name" -srcfolder ./folder -format UDZO output.dmghdiutil attach image.dmg — returns mount point pathhdiutil detach /Volumes/Namexattr -l file to list, xattr -c file to clear allxattr -d com.apple.quarantine app.appecho "text" | pbcopypbpastepbcopy < file.txtpbpaste -Prefer rtfscreencapture -i output.pngscreencapture -w output.pngscreencapture -cscreencapture -x — suppresses sound and cursorcaffeinate -i command — keeps system awake while command runscaffeinate -t 3600 — 1 hourpmset -g assertionspmset -g to view, sudo pmset -a sleep 0 to disable sleeposascript -e 'tell application "System Events" to get name of first process whose frontmost is true'networksetup -listallhardwareportsipconfig getifaddr en0 (Wi-Fi usually en0 on laptops)scutil --dns | grep nameserversudo dscacheutil -flushcache; sudo killall -HUP mDNSRespondernetworksetup -getwebproxy "Wi-Fi"csrutil statuscsrutil disable — not recommended for production/System, /usr (except /usr/local), /sbin, /binlog stream --predicate 'process == "processname"'log show --last 1h --predicate 'eventMessage contains "error"'log show --predicate 'subsystem == "com.apple.example"'log collect --output ./logs.logarchive — opens in Console.appopen "https://example.com" — uses default browseropen -a "Safari" — by name, not pathopen -a "TextEdit" file.txtosascript -e 'tell application "Finder" to get name of home'mdfind "kMDItemDisplayName == 'filename.txt'" — faster than find for indexed filesGenerated Mar 1, 2026
DevOps engineers managing mixed Linux and macOS environments need to handle command-line differences, such as using sed with empty string arguments or realpath instead of readlink -f, to ensure scripts run consistently across systems. This skill helps automate deployments, CI/CD pipelines, and system monitoring while avoiding compatibility issues.
IT administrators in corporate settings use this skill to manage Keychain for secure credential storage, configure launchd services for automated tasks, and handle TCC permissions to ensure scripts have necessary access without user prompts. It supports enforcing security policies, automating backups, and maintaining system integrity on Apple devices.
Media professionals rely on macOS for video editing and design, using this skill to automate file operations with ditto for preserving metadata, manage screenshots and screen recordings for content creation, and control app preferences via defaults. It streamlines asset management, batch processing, and integration with creative software.
Researchers in academia use this skill to automate data collection, process logs with log commands, and manage network settings for lab environments. It helps in scripting experiments, handling large datasets with Homebrew tools, and ensuring reproducibility across macOS systems in research teams.
Startup developers leverage this skill to quickly set up development environments with Homebrew, automate app testing with launchd, and use clipboard and automation tips for rapid prototyping. It accelerates product development, testing cycles, and deployment on macOS platforms.
Offer a cloud-based service that provides pre-built scripts and tools for automating macOS tasks, such as system administration, security management, and media workflows. Revenue comes from subscription tiers based on usage volume and advanced features like compliance reporting.
Provide expert consulting to businesses for integrating macOS automation into their operations, along with training workshops on skills like Keychain management and launchd configuration. Revenue is generated through hourly rates or project-based contracts.
Develop and sell a desktop application or CLI tool that simplifies macOS tasks covered in this skill, such as managing defaults or handling file operations. Revenue comes from premium features like batch processing or enterprise support, with a free basic version.
💬 Integration Tip
Integrate this skill by combining it with existing automation tools like Ansible or Jenkins, and ensure scripts account for macOS-specific paths and permissions to avoid errors in production environments.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot
Perform advanced filesystem tasks including listing, recursive searching by name or content, batch copying/moving/deleting files, and analyzing directory siz...
Essential SSH commands for secure remote access, key management, tunneling, and file transfers.
Extract text from PDF files for LLM processing
The directory for AI agent services. Discover tools, platforms, and infrastructure built for agents.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot