- k8s-quick-status: Add scripts/quick-status.sh, allowed-tools - sysadmin-health: Add scripts/health-check.sh, allowed-tools - usage: Add scripts/usage_report.py, simplify SKILL.md - programmer-add-project: Add allowed-tools All skills now: - Have executable scripts for main operations - Use allowed-tools to restrict capabilities - Have improved descriptions with trigger phrases - Follow the "Skill with Bundled Resources" pattern 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
71 lines
1.5 KiB
Markdown
71 lines
1.5 KiB
Markdown
---
|
|
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.
|