healthcheck

healthcheck is a skill for Claude Code, Codex from ntygod/ZhiWei. It costs 39 tokens per session (644 once invoked), scanned A, original, MIT.

A system-health checking guide for diagnosing slow computers, stopped services, occupied ports, and disk or memory problems.

In plain words
What is it for?
Use it for resource monitoring, service checks, port-conflict diagnosis, disk-usage investigations, and deployment checks. It covers Linux, macOS, and Windows command choices and organizes findings by severity.
Why use it?
It replaces guesses with measurements from system commands. It helps identify whether the issue is CPU, memory, storage, a service, or another process using a port.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for resource monitoring, service checks, port-conflict diagnosis, disk-usage investigations, and deployment checks. It covers Linux, macOS, and Windows command choices and organizes findings by severity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ntygod/zhiwei/healthcheck
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ntygod/ZhiWei --skill healthcheck
Clone the repo
git clone --depth 1 https://github.com/ntygod/ZhiWei

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for healthcheck

README.md
[![agentmods](https://agentmods.dev/badge/skills/ntygod/zhiwei/healthcheck/github.svg)](https://agentmods.dev/skills/ntygod/zhiwei/healthcheck)
Your own site
<a href="https://agentmods.dev/skills/ntygod/zhiwei/healthcheck"><img src="https://agentmods.dev/badge/skills/ntygod/zhiwei/healthcheck/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for healthcheck

Your own site · 80×15
<a href="https://agentmods.dev/skills/ntygod/zhiwei/healthcheck"><img src="https://agentmods.dev/badge/skills/ntygod/zhiwei/healthcheck.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 644 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00644
Opus 5 $0.00019 $0.00322
Sonnet 5 $0.00008 $0.00129
Haiku 4.5 $0.00004 $0.00064

Measured 11d ago against content hash 62dc70759325, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

healthcheck scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/diagnose.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/main/resources/skills/healthcheck/SKILL.md · 62 lines

What it actually says

系统健康检查指南

通过 shell_exec 跑系统命令做资源监控、服务状态、端口诊断。领域强化:报告中的数值(CPU%、内存 GB、磁盘占比、端口号)必须出自实际命令输出,不凭印象。

适用场景

  • 系统运行缓慢排查(CPU / 内存 / 磁盘 / IO)
  • 服务状态检查(systemd / 进程 / 端口)
  • 端口占用诊断(端口被谁占了)
  • 磁盘空间排查(哪些目录大)
  • 部署前 / 后健康验证
  • 定期巡检报告

不适用场景

  • 应用层 bug 调试 → code-assistant
  • 日志内容分析 → log-analyzer
  • 知微自身运行时信息 → 直接调 status 工具

工作流(按用户表达分流)

用户表达 路径
"系统慢了 / 卡了" CPU + 内存 + 磁盘 IO 一次性看
"磁盘满了" 按目录大小排序 → 给清单
"端口被占了 / X 端口冲突" netstat / lsof 查占用进程
"X 服务挂了 / 没响应" 进程 + 端口 + 日志
"做个全面巡检" CPU / 内存 / 磁盘 / 网络 / 关键服务一遍

各路径要点:

  • 按目标平台选命令:跑前确认是 Windows 还是 Linux/macOS,命令选对应平台标准命令;具体速查见参考
  • 给具体修复命令:不只说"内存不足",给"杀进程 X / 清缓存 / 加 swap"等具体动作
  • 分级诊断报告
    • 严重(立即处理):服务 down / 磁盘 > 95% / 内存 > 90%
    • 警告(关注):CPU 持续高 / 端口异常占用
    • 正常(仅信息):常规指标正常范围

详细参考

  • Windows / Linux 命令速查 + 诊断报告结构 + 错误处理:{skill_dir}/references/diagnose-commands.md
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 62 lines · 39 tokens per session scan A 62dc70759325

Subscribe to this mod's changes

healthcheck is a skill published in the GitHub repository ntygod/ZhiWei (138 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 644 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.