/linux:linux-system-monitoringfrom linux
Takes read-only Linux host-health snapshots covering CPU, memory, I/O, network, process, and backup pressure using top, vmstat, iostat, ss, and sar.
Ships in linux. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Monitoring commands are identical on both families — top, htop, ss,
vmstat, iostat, free, uptime, ps, sar behave the same. The only
differences are how the tools are installed and a couple of package names. Body
uses Debian/Ubuntu; the RHEL family (Fedora, RHEL, CentOS Stream, Rocky,
Alma, Oracle) equivalents are in the matrix.
| Concept | Debian/Ubuntu | RHEL family |
|---|---|---|
| Install a tool | apt install htop sysstat | dnf install htop sysstat |
| sysstat package | sysstat | sysstat (enable sysstat.service) |
| Process/socket/mem tools | ps, ss, free, vmstat | identical |
| Service health | systemctl status / journalctl | identical |
| Firewall used for port checks | ufw | firewalld |
| Time-sync service to check | systemd-timesyncd | chronyd |
In sk-* scripts use the common.sh primitives (pkg_install, svc_name,
firewall_allow) instead of hardcoding the family. See
linux-bash-scripting and
docs/multi-distro/plan.md.
linux-troubleshooting.linux-observability.| Artefact | Source | Required? | If absent |
|---|---|---|---|
| Host role and observation timeframe | Inventory/incident owner | yes | Return generic command guidance only |
| Symptom, impact, and baseline | Alert, user report, or monitoring history | for diagnosis | Produce a snapshot without causal claim |
| Read/search access | System owner | yes | State monitoring could not be performed |
Default mode is read-only using process, kernel, socket, filesystem, and backup status commands. Installing tools, changing priorities/limits, killing processes, tuning kernel values, or restarting services requires explicit authority and a specialist handoff.
If tools, privileges, historical baselines, or repeated samples are unavailable, report the instantaneous measurements and missing context. Do not classify a transient snapshot as sustained health or pressure.
| Observation | Action | Failure avoided |
|---|---|---|
| High load with high I/O wait | Inspect devices and blocked tasks | Misdiagnosing storage pressure as CPU |
| Low free memory with healthy available memory | Check reclaim/swap before escalation | False memory alarm |
| Brief spike without sustained impact | Sample across a defined interval | Tuning for noise |
| Backup age exceeds policy | Route to backup owner with timestamp evidence | Silent recovery gap |
| Artefact | Acceptance |
|---|---|
| Host-health snapshot | Includes host, role, timestamps, commands, units, and all core resource areas |
| Pressure diagnosis | Correlates repeated samples with impact and states confidence |
| Specialist handoff | Names the failure domain, reproducing evidence, and unassessed checks |
free as free-memory exhaustion. Fix: interpret available memory and reclaim behaviour.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Health summary | On-call operator | States healthy/pressured/unassessed areas with measurements |
| Failure-domain handoff | Specialist owner | Includes timeframe, impact, correlated evidence, and next check |
| Coverage note | Service owner | Identifies missing history, tools, privileges, or backup checks |
Load average is 12 on an eight-core host, but CPU idle remains 70% and I/O wait is 25%. Repeated vmstat/iostat samples show blocked tasks on one volume, so route to linux-disk-storage instead of changing CPU limits.
This skill is self-contained. Every command below is a standard tool on
both families (Debian/Ubuntu and the RHEL family); only the install step and a
couple of package names differ — see Distro support above. The sk-*
scripts in the Optional fast path section are convenience wrappers — never
required.
echo "=LOAD=" && uptime && \
echo "=MEMORY=" && free -h && \
echo "=DISK=" && df -h && \
echo "=SERVICES=" && \
for s in nginx mysql php8.3-fpm apache2 fail2ban; do
printf "%-20s %s\n" $s $(systemctl is-active $s 2>/dev/null)
done && \
echo "=LAST BACKUP=" && ls -lt ~/backups/ 2>/dev/null | head -3
uptime # load: 1m 5m 15m — concern if sustained > nproc
nproc # CPU core count
htop # P=CPU sort, M=memory sort, q=quit
top -bn1 | head -20 # non-interactive snapshot
ps aux --sort=-%cpu | head -10
free -h
# No swap = OOM kill fires when available → 0
ps aux --sort=-%mem | head -10
iostat -x 1 5 # %util > 80% = bottleneck, await > 50ms = slow disk
sudo iotop -bod 5 # per-process I/O (requires: apt install iotop)
ss -tunapl # all connections with process
ss -tan | awk '{print $1}' | sort | uniq -c | sort -rn # count by state
ss -tlnp # listening services
crontab -l | grep -i backup # backup cron present?
find ~/backups -name "*.gpg" -mtime -3 2>/dev/null | wc -l # backups in 3 days
rclone about gdrive: 2>/dev/null | head -2 # remote reachable?
Full command reference with output interpretation: references/monitoring-commands.md
No wrapper commands for this skill are shipped in this checkout. Use the native procedures above; planned wrappers remain in the script inventory until their source files are present.
What SKILL.md sets; muted values are Claude Code's defaults
45 skills in this plugin
/cisco-ios-patternsUse when reading or reviewing Cisco IOS/IOS-XE configuration, selecting read-only show commands, or planning and verifying bounded router or switch configuration work. Not for Linux host networking, bulk SSH automation, or config preflight parsing; route those to linux-network-admin, netmiko-ssh-automation, or network-config-validation./linux-access-controlUse when creating, revoking, or auditing Linux users, groups, SSH keys, sudo/wheel access, PAM settings, SELinux user mappings, or file permissions. Use linux-secrets for credential material and linux-server-hardening for broader host policy./linux-archive-integrityUse when creating, signing, encrypting, listing, comparing, or restoring metadata-preserving tar archives on Debian/Ubuntu or RHEL-family hosts. Covers ACLs, xattrs, incrementals, and verification; use linux-rsync-sync for file-tree mirrors./linux-auditd-rulesUse when inspecting, designing, testing, persisting, or querying auditd rules for forensic attribution on Debian/Ubuntu or RHEL-family hosts. Covers watches, syscalls, loss, and immutable mode; use linux-file-integrity for drift and linux-benchmark-scanning for scoring./linux-bash-scriptingUse when writing or reviewing portable sk-* Bash scripts for this engine, including common.sh primitives, flags, preview mode, and safety gates; use linux-repo-sync for Git-update behaviour and not for one-off commands./linux-benchmark-scanningUse when running read-only OpenSCAP or Lynis scans, selecting distro-matched profiles, interpreting failures, or drafting remediation on Debian/Ubuntu or RHEL-family hosts. Use linux-auditd-rules for attribution and linux-file-integrity for AIDE drift.npx claudepluginhub peterbamuhigire/linux-skills --plugin linuxOther plugins' skills for the same job