--- name: sysadmin-health description: Comprehensive health check on Arch Linux workstation. Use when asked about system health, disk space, memory, updates, or services. allowed-tools: - Bash - Read --- # Sysadmin Health Check Skill Performs a comprehensive health check on the local Arch Linux workstation. ## Quick Command ```bash ~/.claude/skills/sysadmin-health/scripts/health-check.sh ``` Or run individual checks: ```bash # Resources df -h / /home free -h uptime # Packages checkupdates | wc -l yay -Qua | wc -l pacman -Qtdq | wc -l # Services systemctl --failed systemctl --user --failed # Logs journalctl -p err --since "24 hours ago" -n 10 ``` ## Checks Performed | Category | Checks | |----------|--------| | **Resources** | Disk, memory, swap, CPU load | | **Packages** | Pacman updates, AUR updates, orphans | | **Services** | Failed systemd services (system + user) | | **Security** | Recent logins, failed SSH attempts | | **Logs** | Recent errors in journal | ## Output Format Report as structured summary: - **Overall health**: healthy/warning/critical - **Resource usage**: disk %, memory % - **Pending updates**: count - **Failed services**: list - **Issues found**: with recommendations ## Thresholds | Metric | Warning | Critical | |--------|---------|----------| | Disk usage | >80% | >95% | | Memory usage | >80% | >95% | | Pending updates | >20 | >50 | | Failed services | any | any critical | ## Autonomy Read-only - runs without confirmation.