بنقرة واحدة
macos-services
Manage macOS services and daemons using launchctl, plus system info and maintenance
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Manage macOS services and daemons using launchctl, plus system info and maintenance
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Essential file system operations.
Common Git version control operations.
Upload, download, and edit files on remote servers via NAVIG
Summarize web pages, articles, YouTube videos, and documents using AI
Query and manage databases on remote servers via NAVIG
Check GitHub repos, CI status, PRs, and issues using the gh CLI
| name | macos-services |
| description | Manage macOS services and daemons using launchctl, plus system info and maintenance |
| user-invocable | true |
| os | ["darwin"] |
| navig-commands | ["navig run \"launchctl list\"","navig run \"launchctl kickstart system/{service}\"","navig run \"system_profiler SPSoftwareDataType\"","navig run \"top -l 1 -n 0 | head -10\""] |
| examples | ["What services are running on the Mac?","Check macOS system info","Restart a service on macOS","How much memory is the Mac using?","Show Mac system info"] |
Manage services, check system health, and perform maintenance on macOS machines.
User says: "Show Mac system info"
sw_vers
sysctl -n hw.memsize | awk '{print $0/1073741824 " GB RAM"}'
sysctl -n hw.ncpu
uptime
Response format:
🍎 macOS System Info:
OS: macOS 15.2 Sequoia
Model: MacBook Pro (M3 Pro)
CPU: 12 cores
RAM: 36 GB
Uptime: 5 days, 3 hours
top -l 1 -n 0 | head -12
Or more readable:
memory_pressure
df -h / | tail -1
macOS uses launchd instead of systemd. Services are called "launch agents" (user) and "launch daemons" (system).
launchctl list | head -30
launchctl list | grep {service}
# System service
sudo launchctl kickstart system/{service}
# User service
launchctl kickstart gui/$(id -u)/{service}
sudo launchctl kill SIGTERM system/{service}
# Load (enable)
sudo launchctl load /Library/LaunchDaemons/{service}.plist
# Unload (disable)
sudo launchctl unload /Library/LaunchDaemons/{service}.plist
For services installed via Homebrew, prefer brew services (much simpler):
brew services list # List all
brew services start {service} # Start
brew services stop {service} # Stop
brew services restart {service} # Restart
See the homebrew skill for details.
sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder
lsof -iTCP -sTCP:LISTEN -n -P
Response format:
🌐 Open Ports on Mac:
• :3000 - node (PID: 1234)
• :5432 - postgres (PID: 5678)
• :6379 - redis (PID: 9012)
• :8080 - java (PID: 3456)
lsof -ti:8080 | xargs kill -9
system_profiler SPPowerDataType | grep -A5 "Health"
du -sh ~/Library/Caches ~/Library/Logs ~/Downloads 2>/dev/null
rm -rf ~/.Trash/*
sudo mdutil -E /
| Task | Linux | macOS |
|---|---|---|
| Service status | systemctl status x | launchctl list | grep x |
| Start service | systemctl start x | launchctl kickstart system/x |
| Stop service | systemctl stop x | launchctl kill SIGTERM system/x |
| Package install | apt install x | brew install x |
| Firewall | ufw | pfctl |
| Process viewer | htop | htop or top -o cpu |
| Open ports | ss -tlnp | lsof -iTCP -sTCP:LISTEN |
launchctl list, sw_vers, top, df (read-only)brew services start/stop, killall, killlaunchctl unload, rm -rf, mdutil -Elaunchctl list | grep {name}"