host_resource_diagnosis

Collect real-time CPU, memory, and disk metrics via psutil to diagnose host resource pressure.

115|13|Updated May 5, 2026
One-click install
npx skills add https://github.com/Kkkirito-123/mutil-rag-agent --skill host-resource-diagnosis-kkkirito-123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: host_resource_diagnosis
Source: https://github.com/Kkkirito-123/mutil-rag-agent/tree/main/app/skills/definitions/host_resource_diagnosis
Command: npx skills add https://github.com/Kkkirito-123/mutil-rag-agent --skill host-resource-diagnosis-kkkirito-123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本技能帮助 On-Call / SRE 团队在本机或容器环境中快速识别主机资源压力问题(CPU、内存、磁盘),并给出可执行的诊断路径。

Core Features & Use Cases

  • 实时本机系统概览:通过 psutil 收集 CPU、内存、磁盘等关键指标。
  • 阶段化诊断流:CPU 分支、内存分支、磁盘分支,逐步定位问题根因。
  • 证据化报告输出:生成基于现场数据的诊断报告与干预建议,便于回溯与审计。
  • 安全性与无侵入:仅收集指标、不修改系统状态,提供可复现的证据链。

Quick Start

将诊断剧本部署到目标主机并执行,以便快速输出当前资源状态和问题结论。

Frequently Asked Questions about host_resource_diagnosis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose CPU spikes and memory pressure on a host machine?

To diagnose CPU spikes and memory pressure on a host machine, you can collect real-time metrics using psutil to analyze top processes by resource usage and identify root causes. This generates an evidence-backed report without modifying system state.

What is the best way to identify suspected OOM conditions in a container environment?

The best way to identify suspected OOM conditions in a container is to run a staged diagnostic flow that analyzes memory metrics and top processes. This approach isolates the memory pressure root cause safely without altering the system state.

Does psutil work for diagnosing disk fullness on local on-host systems?

Yes, psutil works for diagnosing disk fullness on local on-host systems by collecting real-time disk metrics. The skill analyzes these metrics alongside CPU and memory data to safely identify resource bottlenecks and output intervention suggestions.

How to generate an evidence-backed resource diagnosis report without changing system state?

To generate an evidence-backed resource diagnosis report without changing system state, collect local CPU, memory, and disk metrics via psutil. The diagnostic flow analyzes top processes and outputs a safe, reproducible report for audit and intervention.

Can I use this resource diagnosis approach for both on-host machines and containers?

Yes, you can use this resource diagnosis approach for both on-host machines and containers. It collects local psutil data to analyze CPU, memory, and disk metrics, effectively identifying resource pressure and OOM conditions across both environments.

When should I not use a read-only resource diagnosis for host metrics?

You should not use a read-only resource diagnosis when you need to actively resolve issues by killing processes or modifying system state. This approach strictly collects metrics and generates reports, providing intervention suggestions without executing changes.