Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/coffeegrind123/system-health-skill --skill system-healthコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | system-health |
| description | >- |
Collect hardware metrics via hwinfo-bridge (primary, full HWiNFO sensor data from Windows host) and hwinfo-linux (supplementary, local Linux/WSL2 metrics), detect anomalies against known thresholds, and compare with historical data to surface trends.
$categories: Optional comma-separated list of metric categories to check (e.g. cpu_temps,gpu,memory). If omitted, collect all available categories.Produce a clear, actionable health report covering current sensor readings, anomaly flags with severity levels, and trend comparison against previous runs.
The repo contains two binaries: hwinfo-linux (local Linux sensors) and hwinfo-bridge (RemoteHWInfo bridge to Windows HWiNFO). Both are needed for full coverage.
Check if they are on PATH:
command -v hwinfo-linux && command -v hwinfo-bridge
If not found:
~/.local/src/hwinfo-linux/git clone --recurse-submodules https://github.com/coffeegrind123/hwinfo-linux.git ~/.local/src/hwinfo-linuxcd ~/.local/src/hwinfo-linux && makesudo make install — if sudo is unavailable, use the binaries directly from the build directory and set HWINFO_BIN_DIR=~/.local/src/hwinfo-linuxVerify both binaries exist:
ls -la $HWINFO_BIN_DIR/hwinfo-linux $HWINFO_BIN_DIR/hwinfo-bridge
Success criteria: Both hwinfo-linux and hwinfo-bridge binaries are executable.
There are two binaries in the hwinfo-linux repo — use BOTH:
hwinfo-bridge — connects to the RemoteHWInfo HTTP endpoint on the Windows host (default: http://host.docker.internal:60000/json.json). This provides the full HWiNFO sensor set: CPU/GPU/chipset/VRM temperatures, voltages, fan speeds, power draw, SMART, clocks, per-core usage, etc. This is the primary data source.hwinfo-linux — reads local Linux sensors (procfs, sysfs, hwmon). Provides WSL2-side memory (physical + swap), per-core CPU usage from the Linux scheduler perspective, and disk I/O stats. This is the supplementary data source for OS-level metrics the bridge cannot see.Collection order:
$HWINFO_BIN_DIR/hwinfo-bridge -p
If it returns valid JSON with sensor data, this is the primary dataset. If the bridge endpoint is unreachable (connection refused, timeout), warn the user that bridge data is unavailable and note that only local Linux sensors will be used.
$HWINFO_BIN_DIR/hwinfo-linux -p
# Or filtered categories (if $categories provided)
$HWINFO_BIN_DIR/hwinfo-linux -c $categories -p
Use hwinfo-linux -l to list available local categories if the user's requested category is not recognized.
Success criteria: Bridge data captured (or explicit warning if bridge is down) AND local Linux data captured. At minimum, one source must produce valid JSON.
Parse the JSON output and flag values that exceed these thresholds:
Temperature (°C):
| Severity | CPU Package/Core | GPU | Disk/NVMe | Chipset |
|---|---|---|---|---|
| Warning | >80 | >85 | >55 | >70 |
| Critical | >95 | >100 | >70 | >90 |
Memory:
Storage (SMART):
GPU:
General:
current exceeds max from previous readings by >20%For each anomaly, record: category, metric name, current value, threshold, severity level.
Success criteria: All metrics evaluated against thresholds. Anomaly list produced (may be empty if system is healthy).
Historical logs are stored at ~/.local/share/system-health/.
Read previous run:
ls -t ~/.local/share/system-health/*.json 2>/dev/null | head -1
If a previous log exists:
Save current run:
mkdir -p ~/.local/share/system-health
Write the current JSON output plus anomaly metadata to ~/.local/share/system-health/YYYY-MM-DDTHH-MM-SS.json.
Keep a maximum of 50 historical logs. Delete oldest files if over limit.
Success criteria: Current data saved. Comparison completed if prior data existed.
Present a structured report to the user:
Format:
## System Health Report — <timestamp>
### Overall Status: [HEALTHY | WARNING | CRITICAL]
### Summary
- <N> metrics collected across <M> categories
- <X> anomalies detected (<W> warnings, <C> critical)
- Trend: <comparison summary or "First run — no historical data">
### Anomalies (if any)
| Severity | Category | Metric | Current | Threshold | Trend |
|----------|----------|--------|---------|-----------|-------|
| ... | ... | ... | ... | ... | ... |
### Category Breakdown
For each category, show key metrics with current/min/max/avg values.
Highlight any values near thresholds in the breakdown.
Overall status is the highest severity found: CRITICAL > WARNING > HEALTHY.
If no anomalies, confirm system is healthy and show key metrics summary.
Success criteria: User receives a clear, actionable health report with severity-ranked anomalies and trend data.