[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P8QNJGZADBN6RK4437HQ8V":3,"skill-same:01M6P8QNJGZADBN6RK4437HQ8V":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":30,"commitSha":52,"skillDirectory":53,"forksCount":13,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M6P8QNJGZADBN6RK4437HQ8V","mac-mini-llm-lab",null,"Configure a Mac mini as a reliable local LLM server with remote access, observability, and power-safe operation. Use when building an always-on private AI inference server on Apple Silicon.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fmac-mini-llm-lab\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"lab","mac mini llm lab","mac","local llm","remote","relevant","silicon","scripts","critical","apple","local","safe","main","community","only","power","configure","access","devops-security","server","2026-11-10 10:12:30",false,"---\nname: mac-mini-llm-lab\ndescription: Configure a Mac mini as a reliable local LLM server with remote access,\n  observability, and power-safe operation. Use when building an always-on private\n  AI inference server on Apple Silicon.\ncategory: devops\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires the relevant OS\u002Fplatform tooling and privileged access where\n  noted. Docs-only; helper scripts and templates not bundled.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# Mac mini LLM Lab\n\nTurn a Mac mini into a low-noise, always-on local AI appliance.\n\n## When to Use This Skill\n\nUse this skill when:\n- Setting up a dedicated local LLM inference server\n- Building a private AI development environment\n- Need always-on model serving without cloud costs\n- Running models that require Apple Silicon unified memory (32-192GB)\n- Creating a home lab AI server for a small team\n\n## Prerequisites\n\n- Mac mini with Apple Silicon (M2\u002FM3\u002FM4, 16GB+ unified memory recommended)\n- macOS Sonoma 14+ or Sequoia 15+\n- Ethernet connection (recommended over Wi-Fi)\n- UPS for power protection (optional but recommended)\n\n## Initial System Setup\n\n```bash\n# Update macOS\nsoftwareupdate --install --all\n\n# Install Xcode command-line tools\nxcode-select --install\n\n# Install Homebrew\n\u002Fbin\u002Fbash -c \"$(curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FHomebrew\u002Finstall\u002FHEAD\u002Finstall.sh)\"\n\n# Core packages\nbrew install tmux htop btop wget jq git neovim\n\n# Python environment (for MLX and custom scripts)\nbrew install python@3.12 uv\n\n# Monitoring\nbrew install prometheus node_exporter\n```\n\n## Ollama Setup\n\n```bash\n# Install Ollama\nbrew install ollama\n\n# Pull models based on your RAM\n# 16GB Mac mini:\nollama pull llama3.1:8b\nollama pull nomic-embed-text\nollama pull codellama:7b\n\n# 32GB Mac mini:\nollama pull llama3.1:8b\nollama pull qwen2.5:14b\nollama pull deepseek-coder-v2:16b\nollama pull nomic-embed-text\n\n# 64GB+ Mac mini:\nollama pull llama3.1:70b\nollama pull qwen2.5:32b\nollama pull codellama:34b\n\n# Verify Metal acceleration\nollama run llama3.1:8b --verbose\n# Look for: \"metal\" in output\n```\n\n## MLX Framework (Apple Silicon Native)\n\nMLX runs models natively on Apple Silicon with excellent performance:\n\n```bash\n# Install MLX\nuv pip install mlx mlx-lm\n\n# Run a model\npython3 -c \"\nfrom mlx_lm import load, generate\nmodel, tokenizer = load('mlx-community\u002FLlama-3.1-8B-Instruct-4bit')\nresponse = generate(model, tokenizer, prompt='Explain Docker in 3 sentences', max_tokens=200)\nprint(response)\n\"\n\n# MLX server (OpenAI-compatible API)\nuv pip install mlx-lm[server]\nmlx_lm.server --model mlx-community\u002FLlama-3.1-8B-Instruct-4bit --port 8080\n```\n\n## Auto-Start with launchd\n\n```xml\n\u003C!-- ~\u002FLibrary\u002FLaunchAgents\u002Fcom.ollama.serve.plist -->\n\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE plist PUBLIC \"-\u002F\u002FApple\u002F\u002FDTD PLIST 1.0\u002F\u002FEN\" \"http:\u002F\u002Fwww.apple.com\u002FDTDs\u002FPropertyList-1.0.dtd\">\n\u003Cplist version=\"1.0\">\n\u003Cdict>\n    \u003Ckey>Label\u003C\u002Fkey>\n    \u003Cstring>com.ollama.serve\u003C\u002Fstring>\n    \u003Ckey>ProgramArguments\u003C\u002Fkey>\n    \u003Carray>\n        \u003Cstring>\u002Fopt\u002Fhomebrew\u002Fbin\u002Follama\u003C\u002Fstring>\n        \u003Cstring>serve\u003C\u002Fstring>\n    \u003C\u002Farray>\n    \u003Ckey>EnvironmentVariables\u003C\u002Fkey>\n    \u003Cdict>\n        \u003Ckey>OLLAMA_HOST\u003C\u002Fkey>\n        \u003Cstring>0.0.0.0\u003C\u002Fstring>\n        \u003Ckey>OLLAMA_NUM_PARALLEL\u003C\u002Fkey>\n        \u003Cstring>4\u003C\u002Fstring>\n        \u003Ckey>OLLAMA_MAX_LOADED_MODELS\u003C\u002Fkey>\n        \u003Cstring>2\u003C\u002Fstring>\n        \u003Ckey>OLLAMA_FLASH_ATTENTION\u003C\u002Fkey>\n        \u003Cstring>1\u003C\u002Fstring>\n    \u003C\u002Fdict>\n    \u003Ckey>RunAtLoad\u003C\u002Fkey>\n    \u003Ctrue\u002F>\n    \u003Ckey>KeepAlive\u003C\u002Fkey>\n    \u003Ctrue\u002F>\n    \u003Ckey>StandardOutPath\u003C\u002Fkey>\n    \u003Cstring>\u002Ftmp\u002Follama.log\u003C\u002Fstring>\n    \u003Ckey>StandardErrorPath\u003C\u002Fkey>\n    \u003Cstring>\u002Ftmp\u002Follama.err\u003C\u002Fstring>\n\u003C\u002Fdict>\n\u003C\u002Fplist>\n```\n\n```bash\n# Load the service\nlaunchctl load ~\u002FLibrary\u002FLaunchAgents\u002Fcom.ollama.serve.plist\n\n# Check status\nlaunchctl list | grep ollama\n\n# Unload if needed\nlaunchctl unload ~\u002FLibrary\u002FLaunchAgents\u002Fcom.ollama.serve.plist\n```\n\n## Power & Reliability\n\n```bash\n# Prevent sleep (keeps running with lid closed on Mac mini)\nsudo pmset -a disablesleep 1\nsudo pmset -a sleep 0\n\n# Auto-restart after power failure\nsudo pmset -a autorestart 1\n\n# Schedule weekly reboot (Sunday 4 AM)\nsudo pmset repeat shutdown MTWRFSU 03:55:00\nsudo pmset repeat poweron MTWRFSU 04:00:00\n\n# Check power settings\npmset -g\n```\n\n## Remote Access\n\n### Tailscale (Recommended)\n\n```bash\n# Install Tailscale for easy secure remote access\nbrew install --cask tailscale\n\n# Enable from menu bar, authenticate\n# Access your Mac mini from anywhere: http:\u002F\u002Fmac-mini:11434\n```\n\n### SSH Hardening\n\n```bash\n# Enable remote login\nsudo systemsetup -setremotelogin on\n\n# Edit SSH config\nsudo nano \u002Fetc\u002Fssh\u002Fsshd_config\n# Add:\n# PasswordAuthentication no\n# PubkeyAuthentication yes\n# PermitRootLogin no\n# AllowUsers yourusername\n\n# Restart SSH\nsudo launchctl unload \u002FSystem\u002FLibrary\u002FLaunchDaemons\u002Fssh.plist\nsudo launchctl load \u002FSystem\u002FLibrary\u002FLaunchDaemons\u002Fssh.plist\n```\n\n### Reverse Proxy with Caddy\n\n```bash\nbrew install caddy\n\n# Caddyfile\ncat > \u002Fopt\u002Fhomebrew\u002Fetc\u002FCaddyfile \u003C\u003C 'EOF'\nllm.local:443 {\n    tls internal\n    reverse_proxy localhost:11434\n\n    @api path \u002Fv1\u002F*\n    handle @api {\n        reverse_proxy localhost:11434\n    }\n}\n\nwebui.local:443 {\n    tls internal\n    reverse_proxy localhost:3000\n}\nEOF\n\nbrew services start caddy\n```\n\n## Open WebUI Setup\n\n```bash\n# Run Open WebUI via Docker\ndocker run -d \\\n  --name open-webui \\\n  -p 3000:8080 \\\n  -e OLLAMA_BASE_URL=http:\u002F\u002Fhost.docker.internal:11434 \\\n  -e WEBUI_AUTH=true \\\n  -v open-webui:\u002Fapp\u002Fbackend\u002Fdata \\\n  --restart unless-stopped \\\n  ghcr.io\u002Fopen-webui\u002Fopen-webui:main\n\n# Or install Docker first if not available\nbrew install --cask docker\n```\n\n## Monitoring\n\n```bash\n# Health check script\ncat > ~\u002Fscripts\u002Fllm-health.sh \u003C\u003C 'SCRIPT'\n#!\u002Fbin\u002Fbash\n# Check Ollama\nif curl -sf http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags > \u002Fdev\u002Fnull; then\n    echo \"$(date): Ollama OK\"\n    curl -s http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fps | python3 -m json.tool\nelse\n    echo \"$(date): Ollama DOWN\"\n    # Restart\n    launchctl kickstart -k gui\u002F$(id -u)\u002Fcom.ollama.serve\nfi\n\n# System stats\necho \"CPU: $(top -l 1 -n 0 | grep 'CPU usage')\"\necho \"Memory: $(vm_stat | head -5)\"\necho \"Disk: $(df -h \u002F | tail -1)\"\necho \"Thermal: $(sudo powermetrics --samplers smc -n 1 2>\u002Fdev\u002Fnull | grep 'CPU die' || echo 'N\u002FA')\"\nSCRIPT\nchmod +x ~\u002Fscripts\u002Fllm-health.sh\n\n# Schedule health check every 5 minutes\n# Add to crontab: crontab -e\n# *\u002F5 * * * * ~\u002Fscripts\u002Fllm-health.sh >> ~\u002Flogs\u002Fllm-health.log 2>&1\n```\n\n### Memory Usage by Model\n\n| Model | RAM Required | Tokens\u002Fsec (M2) | Tokens\u002Fsec (M4) |\n|-------|-------------|-----------------|-----------------|\n| llama3.1:8b (Q4) | ~5 GB | ~25 t\u002Fs | ~45 t\u002Fs |\n| qwen2.5:14b (Q4) | ~9 GB | ~15 t\u002Fs | ~30 t\u002Fs |\n| llama3.1:70b (Q4) | ~40 GB | ~5 t\u002Fs | ~10 t\u002Fs |\n| nomic-embed-text | ~300 MB | N\u002FA | N\u002FA |\n| codellama:13b | ~8 GB | ~18 t\u002Fs | ~35 t\u002Fs |\n\n## Security Checklist\n\n```bash\n# Enable FileVault disk encryption\nsudo fdesetup enable\n\n# Enable firewall\nsudo \u002Fusr\u002Flibexec\u002FApplicationFirewall\u002Fsocketfilterfw --setglobalstate on\nsudo \u002Fusr\u002Flibexec\u002FApplicationFirewall\u002Fsocketfilterfw --setstealthmode on\n\n# Disable unnecessary sharing services\nsudo launchctl disable system\u002Fcom.apple.screensharing\nsudo launchctl disable system\u002Fcom.apple.AirPlayXPCHelper\n\n# Set strong admin password\n# System Settings > Users & Groups\n\n# Restrict Ollama to local network only (if not using Tailscale)\n# Set OLLAMA_HOST=127.0.0.1 in launchd plist\n```\n\n## Performance Tuning\n\n```bash\n# Increase file descriptor limits for concurrent requests\nsudo launchctl limit maxfiles 65536 200000\n\n# Check unified memory pressure\nmemory_pressure\n\n# Monitor GPU usage (Metal)\nsudo powermetrics --samplers gpu_power -n 1\n\n# Optimize for inference (disable Spotlight indexing on model dirs)\nmdutil -i off ~\u002F.ollama\n```\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|---------|\n| Model loading slow | First load caches to memory; subsequent loads are fast |\n| Out of memory | Use smaller quantization (Q4_K_M), reduce `OLLAMA_MAX_LOADED_MODELS` |\n| Mac sleeping | Run `sudo pmset -a disablesleep 1` |\n| Ollama not starting | Check `launchctl list | grep ollama`, view `\u002Ftmp\u002Follama.err` |\n| Slow over Wi-Fi | Use Ethernet; Wi-Fi adds latency to streaming responses |\n| Thermal throttling | Ensure adequate ventilation, check `powermetrics` |\n\n## Related Skills\n\n- ollama-stack (`ollama-stack`) — Software stack with Docker Compose and LiteLLM\n- ssh-configuration (`ssh-configuration`) — Secure remote access\n- vpn-setup (`vpn-setup`) — Remote access via WireGuard\u002FTailscale\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n","# Mac mini LLM Lab\n\nTurn a Mac mini into a low-noise, always-on local AI appliance.\n\n## When to Use This Skill\n\nUse this skill when:\n- Setting up a dedicated local LLM inference server\n- Building a private AI development environment\n- Need always-on model serving without cloud costs\n- Running models that require Apple Silicon unified memory (32-192GB)\n- Creating a home lab AI server for a small team\n\n## Prerequisites\n\n- Mac mini with Apple Silicon (M2\u002FM3\u002FM4, 16GB+ unified memory recommended)\n- macOS Sonoma 14+ or Sequoia 15+\n- Ethernet connection (recommended over Wi-Fi)\n- UPS for power protection (optional but recommended)\n\n## Initial System Setup\n\n```bash\n# Update macOS\nsoftwareupdate --install --all\n\n# Install Xcode command-line tools\nxcode-select --install\n\n# Install Homebrew\n\u002Fbin\u002Fbash -c \"$(curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FHomebrew\u002Finstall\u002FHEAD\u002Finstall.sh)\"\n\n# Core packages\nbrew install tmux htop btop wget jq git neovim\n\n# Python environment (for MLX and custom scripts)\nbrew install python@3.12 uv\n\n# Monitoring\nbrew install prometheus node_exporter\n```\n\n## Ollama Setup\n\n```bash\n# Install Ollama\nbrew install ollama\n\n# Pull models based on your RAM\n# 16GB Mac mini:\nollama pull llama3.1:8b\nollama pull nomic-embed-text\nollama pull codellama:7b\n\n# 32GB Mac mini:\nollama pull llama3.1:8b\nollama pull qwen2.5:14b\nollama pull deepseek-coder-v2:16b\nollama pull nomic-embed-text\n\n# 64GB+ Mac mini:\nollama pull llama3.1:70b\nollama pull qwen2.5:32b\nollama pull codellama:34b\n\n# Verify Metal acceleration\nollama run llama3.1:8b --verbose\n# Look for: \"metal\" in output\n```\n\n## MLX Framework (Apple Silicon Native)\n\nMLX runs models natively on Apple Silicon with excellent performance:\n\n```bash\n# Install MLX\nuv pip install mlx mlx-lm\n\n# Run a model\npython3 -c \"\nfrom mlx_lm import load, generate\nmodel, tokenizer = load('mlx-community\u002FLlama-3.1-8B-Instruct-4bit')\nresponse = generate(model, tokenizer, prompt='Explain Docker in 3 sentences', max_tokens=200)\nprint(response)\n\"\n\n# MLX server (OpenAI-compatible API)\nuv pip install mlx-lm[server]\nmlx_lm.server --model mlx-community\u002FLlama-3.1-8B-Instruct-4bit --port 8080\n```\n\n## Auto-Start with launchd\n\n```xml\n\u003C!-- ~\u002FLibrary\u002FLaunchAgents\u002Fcom.ollama.serve.plist -->\n\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE plist PUBLIC \"-\u002F\u002FApple\u002F\u002FDTD PLIST 1.0\u002F\u002FEN\" \"http:\u002F\u002Fwww.apple.com\u002FDTDs\u002FPropertyList-1.0.dtd\">\n\u003Cplist version=\"1.0\">\n\u003Cdict>\n    \u003Ckey>Label\u003C\u002Fkey>\n    \u003Cstring>com.ollama.serve\u003C\u002Fstring>\n    \u003Ckey>ProgramArguments\u003C\u002Fkey>\n    \u003Carray>\n        \u003Cstring>\u002Fopt\u002Fhomebrew\u002Fbin\u002Follama\u003C\u002Fstring>\n        \u003Cstring>serve\u003C\u002Fstring>\n    \u003C\u002Farray>\n    \u003Ckey>EnvironmentVariables\u003C\u002Fkey>\n    \u003Cdict>\n        \u003Ckey>OLLAMA_HOST\u003C\u002Fkey>\n        \u003Cstring>0.0.0.0\u003C\u002Fstring>\n        \u003Ckey>OLLAMA_NUM_PARALLEL\u003C\u002Fkey>\n        \u003Cstring>4\u003C\u002Fstring>\n        \u003Ckey>OLLAMA_MAX_LOADED_MODELS\u003C\u002Fkey>\n        \u003Cstring>2\u003C\u002Fstring>\n        \u003Ckey>OLLAMA_FLASH_ATTENTION\u003C\u002Fkey>\n        \u003Cstring>1\u003C\u002Fstring>\n    \u003C\u002Fdict>\n    \u003Ckey>RunAtLoad\u003C\u002Fkey>\n    \u003Ctrue\u002F>\n    \u003Ckey>KeepAlive\u003C\u002Fkey>\n    \u003Ctrue\u002F>\n    \u003Ckey>StandardOutPath\u003C\u002Fkey>\n    \u003Cstring>\u002Ftmp\u002Follama.log\u003C\u002Fstring>\n    \u003Ckey>StandardErrorPath\u003C\u002Fkey>\n    \u003Cstring>\u002Ftmp\u002Follama.err\u003C\u002Fstring>\n\u003C\u002Fdict>\n\u003C\u002Fplist>\n```\n\n```bash\n# Load the service\nlaunchctl load ~\u002FLibrary\u002FLaunchAgents\u002Fcom.ollama.serve.plist\n\n# Check status\nlaunchctl list | grep ollama\n\n# Unload if needed\nlaunchctl unload ~\u002FLibrary\u002FLaunchAgents\u002Fcom.ollama.serve.plist\n```\n\n## Power & Reliability\n\n```bash\n# Prevent sleep (keeps running with lid closed on Mac mini)\nsudo pmset -a disablesleep 1\nsudo pmset -a sleep 0\n\n# Auto-restart after power failure\nsudo pmset -a autorestart 1\n\n# Schedule weekly reboot (Sunday 4 AM)\nsudo pmset repeat shutdown MTWRFSU 03:55:00\nsudo pmset repeat poweron MTWRFSU 04:00:00\n\n# Check power settings\npmset -g\n```\n\n## Remote Access\n\n### Tailscale (Recommended)\n\n```bash\n# Install Tailscale for easy secure remote access\nbrew install --cask tailscale\n\n# Enable from menu bar, authenticate\n# Access your Mac mini from anywhere: http:\u002F\u002Fmac-mini:11434\n```\n\n### SSH Hardening\n\n```bash\n# Enable remote login\nsudo systemsetup -setremotelogin on\n\n# Edit SSH config\nsudo nano \u002Fetc\u002Fssh\u002Fsshd_config\n# Add:\n# PasswordAuthentication no\n# PubkeyAuthentication yes\n# PermitRootLogin no\n# AllowUsers yourusername\n\n# Restart SSH\nsudo launchctl unload \u002FSystem\u002FLibrary\u002FLaunchDaemons\u002Fssh.plist\nsudo launchctl load \u002FSystem\u002FLibrary\u002FLaunchDaemons\u002Fssh.plist\n```\n\n### Reverse Proxy with Caddy\n\n```bash\nbrew install caddy\n\n# Caddyfile\ncat > \u002Fopt\u002Fhomebrew\u002Fetc\u002FCaddyfile \u003C\u003C 'EOF'\nllm.local:443 {\n    tls internal\n    reverse_proxy localhost:11434\n\n    @api path \u002Fv1\u002F*\n    handle @api {\n        reverse_proxy localhost:11434\n    }\n}\n\nwebui.local:443 {\n    tls internal\n    reverse_proxy localhost:3000\n}\nEOF\n\nbrew services start caddy\n```\n\n## Open WebUI Setup\n\n```bash\n# Run Open WebUI via Docker\ndocker run -d \\\n  --name open-webui \\\n  -p 3000:8080 \\\n  -e OLLAMA_BASE_URL=http:\u002F\u002Fhost.docker.internal:11434 \\\n  -e WEBUI_AUTH=true \\\n  -v open-webui:\u002Fapp\u002Fbackend\u002Fdata \\\n  --restart unless-stopped \\\n  ghcr.io\u002Fopen-webui\u002Fopen-webui:main\n\n# Or install Docker first if not available\nbrew install --cask docker\n```\n\n## Monitoring\n\n```bash\n# Health check script\ncat > ~\u002Fscripts\u002Fllm-health.sh \u003C\u003C 'SCRIPT'\n#!\u002Fbin\u002Fbash\n# Check Ollama\nif curl -sf http:\u002F\u002Flocalhost:11434\u002Fapi\u002Ftags > \u002Fdev\u002Fnull; then\n    echo \"$(date): Ollama OK\"\n    curl -s http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fps | python3 -m json.tool\nelse\n    echo \"$(date): Ollama DOWN\"\n    # Restart\n    launchctl kickstart -k gui\u002F$(id -u)\u002Fcom.ollama.serve\nfi\n\n# System stats\necho \"CPU: $(top -l 1 -n 0 | grep 'CPU usage')\"\necho \"Memory: $(vm_stat | head -5)\"\necho \"Disk: $(df -h \u002F | tail -1)\"\necho \"Thermal: $(sudo powermetrics --samplers smc -n 1 2>\u002Fdev\u002Fnull | grep 'CPU die' || echo 'N\u002FA')\"\nSCRIPT\nchmod +x ~\u002Fscripts\u002Fllm-health.sh\n\n# Schedule health check every 5 minutes\n# Add to crontab: crontab -e\n# *\u002F5 * * * * ~\u002Fscripts\u002Fllm-health.sh >> ~\u002Flogs\u002Fllm-health.log 2>&1\n```\n\n### Memory Usage by Model\n\n| Model | RAM Required | Tokens\u002Fsec (M2) | Tokens\u002Fsec (M4) |\n|-------|-------------|-----------------|-----------------|\n| llama3.1:8b (Q4) | ~5 GB | ~25 t\u002Fs | ~45 t\u002Fs |\n| qwen2.5:14b (Q4) | ~9 GB | ~15 t\u002Fs | ~30 t\u002Fs |\n| llama3.1:70b (Q4) | ~40 GB | ~5 t\u002Fs | ~10 t\u002Fs |\n| nomic-embed-text | ~300 MB | N\u002FA | N\u002FA |\n| codellama:13b | ~8 GB | ~18 t\u002Fs | ~35 t\u002Fs |\n\n## Security Checklist\n\n```bash\n# Enable FileVault disk encryption\nsudo fdesetup enable\n\n# Enable firewall\nsudo \u002Fusr\u002Flibexec\u002FApplicationFirewall\u002Fsocketfilterfw --setglobalstate on\nsudo \u002Fusr\u002Flibexec\u002FApplicationFirewall\u002Fsocketfilterfw --setstealthmode on\n\n# Disable unnecessary sharing services\nsudo launchctl disable system\u002Fcom.apple.screensharing\nsudo launchctl disable system\u002Fcom.apple.AirPlayXPCHelper\n\n# Set strong admin password\n# System Settings > Users & Groups\n\n# Restrict Ollama to local network only (if not using Tailscale)\n# Set OLLAMA_HOST=127.0.0.1 in launchd plist\n```\n\n## Performance Tuning\n\n```bash\n# Increase file descriptor limits for concurrent requests\nsudo launchctl limit maxfiles 65536 200000\n\n# Check unified memory pressure\nmemory_pressure\n\n# Monitor GPU usage (Metal)\nsudo powermetrics --samplers gpu_power -n 1\n\n# Optimize for inference (disable Spotlight indexing on model dirs)\nmdutil -i off ~\u002F.ollama\n```\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|---------|\n| Model loading slow | First load caches to memory; subsequent loads are fast |\n| Out of memory | Use smaller quantization (Q4_K_M), reduce `OLLAMA_MAX_LOADED_MODELS` |\n| Mac sleeping | Run `sudo pmset -a disablesleep 1` |\n| Ollama not starting | Check `launchctl list | grep ollama`, view `\u002Ftmp\u002Follama.err` |\n| Slow over Wi-Fi | Use Ethernet; Wi-Fi adds latency to streaming responses |\n| Thermal throttling | Ensure adequate ventilation, check `powermetrics` |\n\n## Related Skills\n\n- ollama-stack (`ollama-stack`) — Software stack with Docker Compose and LiteLLM\n- ssh-configuration (`ssh-configuration`) — Secure remote access\n- vpn-setup (`vpn-setup`) — Remote access via WireGuard\u002FTailscale\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n",{"name":5,"risk":26,"source":43,"license":14,"category":44,"metadata":45,"date_added":48,"description":7,"source_repo":49,"source_type":31,"compatibility":50,"license_source":51},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","devops",{"author":46,"version":47},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Requires the relevant OS\u002Fplatform tooling and privileged access where noted. Docs-only; helper scripts and templates not bundled.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fmac-mini-llm-lab","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill mac-mini-llm-lab",{"tool":63,"command":64},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill mac-mini-llm-lab",{"tool":66,"command":67},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill mac-mini-llm-lab","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fmac-mini-llm-lab\u002FSKILL.md",true,[],[72,89,113,136,153,173],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[],[79,80,81,82,83,84,74,85,36,35,34,32,31,30,86,26,87,25,23,88],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","active","scope","implementing",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":38},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[96,97,98,99,100,101,102,103,104,105,106,107,108,32,109,31,110,111,26,112],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app","agent-orchestration",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":38},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[120,121,122,29,123,124,125,126,127,128,129,130,131,31,30,28,132,133,134,135],"transcript","youtube transcript","youtube","github","codex","research","license","https","text","fetch","tooling","clean","output","deepapi","youtube transcripts","blob",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":38},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[],[120,121,122,143,29,144,123,124,126,145,146,147,148,129,149,31,30,150,151,152],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":38},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[],[122,160,161,100,29,162,163,164,165,126,147,166,167,168,169,30,170,28,171,172],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":38},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[],[180,122,181,182,29,144,145,37,183,146,147,148,129,184,149,31,30,150,185,134],"youtube full","full","google","dlp","credits","automatic"]