name: sysadmin-health-check description: Scheduled health check for Arch Linux workstation version: "1.0.0" trigger: schedule: cron: "0 9 * * *" # Daily at 9 AM manual: true agent: linux-sysadmin model: haiku # Use haiku for cost efficiency steps: - name: collect-metrics description: Gather system metrics commands: - df -h - free -h - uptime - top -bn1 | head -20 - name: check-packages description: Check package status commands: - checkupdates 2>/dev/null || echo "No updates" - yay -Qua 2>/dev/null || echo "No AUR updates" - pacman -Qtdq 2>/dev/null || echo "No orphans" - name: check-services description: Check systemd services commands: - systemctl --failed --no-pager - name: check-logs description: Review recent errors commands: - journalctl -p err --since "24 hours ago" -n 10 --no-pager - name: generate-report description: Create health summary action: summarize format: markdown output: file: ~/.claude/logs/health-reports/$(date +%Y-%m-%d).md notify: on_warning: true on_critical: true autonomy: read-only # No confirmation needed for read operations