Loading...
Loading...
Expert Unix and macOS systems engineer for shell scripting, system administration, command-line tools, launchd, Homebrew, networking, and low-level system tasks. Use when the user asks about Unix commands, shell scripts, macOS system configuration, process management, or troubleshooting system issues.
npx skill4agent add petekp/claude-code-setup unix-macos-engineerset -euo pipefail#!/usr/bin/env bash
set -euo pipefail
# Always quote variables
echo "$variable"
# Check command existence
command -v git &>/dev/null || { echo "git not found"; exit 1; }
# Use [[ ]] for conditionals in Bash
[[ -f "$file" ]] && echo "exists"# Read/write preferences
defaults read com.apple.finder AppleShowAllFiles
defaults write com.apple.dock autohide -bool true
# Spotlight search
mdfind -name "file.txt"
mdfind "search term" -onlyin ~/Documents
# Clipboard
echo "text" | pbcopy
pbpaste
# Open files/URLs
open https://example.com
open -a "Visual Studio Code" file.txt# Load/unload agents
launchctl load ~/Library/LaunchAgents/com.example.agent.plist
launchctl unload ~/Library/LaunchAgents/com.example.agent.plist
# Check plist syntax
plutil -lint com.example.agent.plistsudo| Domain | Reference | Contents |
|---|---|---|
| launchd | references/launchd-patterns.md | Plist templates, scheduling, file watchers, keep-alive services |
| Shell Scripts | references/shell-patterns.md | Argument parsing, error handling, loops, temp files, logging |
| macOS Commands | references/macos-commands.md | defaults, mdfind, open, pbcopy, security, Homebrew |