system-perf-check

System performance check tool: collects CPU, memory and disk IO data, automatically evaluates utilization status and produces operation-and-maintenance reports. Suitable for system monitoring and performance checking.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "system-perf-check" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7025269520c3cfa962fbcebb617acb426568adee86f907cbf4d0e8d52ca39f3f. Verify the upstream source and version against https://skillhub.cn/skills/user_103c9555/system-check before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

System performance check tool: collects CPU, memory and disk IO data, automatically evaluates utilization status and produces operation-and-maintenance reports. Suitable for system monitoring and performance checking.

0 Downloads

Introduction source: third_party · user_103c9555 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: system-perf-check

description: "系统性能检查工具 - 采集 CPU、内存和磁盘 IO 数据,自动判断占用率状态并输出运维报告。关键词:性能检查、CPU、内存、磁盘IO、运维报告、系统监控"

系统性能检查

目标:采集系统 CPU、内存和磁盘 IO 性能数据,自动判定各项指标的健康状态,输出符合运维标准的检查报告。

适用场景

当用户提出以下需求时触发此 skill:

  • "检查系统性能"、"查看 CPU/内存/磁盘占用"

  • "做一次性能巡检"、"出一份运维报告"

  • "系统负载怎么样"、"性能有没有问题"

  • 任何涉及系统资源使用率检查的场景

核心原则

  1. 使用脚本采集:所有数据通过 scripts/sys_check.sh 采集,确保数据准确性和一致性

  2. 自动状态判定:脚本内置阈值判断逻辑,自动输出 normal / warning / critical 状态

  3. 多格式输出:支持 json、text、report 三种格式,默认使用 report 格式输出完整运维报告

阈值标准

| 指标 | 正常 (normal) | 警告 (warning) | 严重 (critical) |

|------|:---:|:---:|:---:|

| CPU 使用率 | < 70% | 70% ~ 90% | ≥ 90% |

| 内存使用率 | < 70% | 70% ~ 90% | ≥ 90% |

| 磁盘 IO 利用率 | < 70% | 70% ~ 90% | ≥ 90% |

| 磁盘空间使用率 | < 80% | 80% ~ 95% | ≥ 95% |

详细阈值说明和排查建议见 references/thresholds.md。

使用方式

脚本位置:scripts/sys_check.sh

基本用法(输出完整运维报告)

bash scripts/sys_check.sh --format report

参数说明

| 参数 | 说明 | 默认值 |

|------|------|--------|

| --duration N | 采样时长(秒) | 5 |

| --interval N | 采样间隔(秒) | 1 |

| --format json|text|report | 输出格式 | json |

输出格式示例

report 格式(推荐,完整运维报告):

bash scripts/sys_check.sh --format report

输出包含:各指标数值、状态判定、异常告警、处理建议、综合评估。

json 格式(适合程序处理):

bash scripts/sys_check.sh --format json

输出结构化 JSON,包含所有采集数据和状态标记。

text 格式(简洁摘要):

bash scripts/sys_check.sh --format text

输出精简文本摘要,适合快速查看。

工作流程

  1. 运行脚本采集数据:执行 sys_check.sh --format report,采集 CPU、内存、磁盘 IO 和磁盘空间数据

  2. 解读结果:根据脚本输出的状态判定(normal / warning / critical),识别异常指标

  3. 输出运维报告:将采集结果整理为符合运维规范的报告,包含:

  • 各指标数值与状态

  • 异常指标的告警级别和处理建议

  • 综合评估结论

  1. 如有异常:提供排查命令和优化建议,必要时可进一步执行诊断

报告输出规范

运维报告需包含以下要素:

  1. 检查概要:主机名、检查时间、采样参数

  2. 各指标详情:数值、状态、告警

  3. 异常处理建议:针对 warning/critical 状态给出具体排查步骤

  4. 综合评估:整体健康状态和后续行动建议

异常处理建议速查

CPU 异常

# 高 CPU 占用进程

ps aux --sort=-%cpu | head -10

内存异常

# 高内存占用进程

ps aux --sort=-%mem | head -10

# Swap 使用情况

free -h

磁盘 IO 异常

# 实时磁盘 IO

iostat -dx 1 5

磁盘空间异常

# 各分区空间

df -h -x tmpfs -x devtmpfs

# 大文件排行

du -h --max-depth=1 / | sort -rh | head -10

示例

示例 1:日常巡检

用户说:"帮我做一次系统性能巡检"

bash scripts/sys_check.sh --format report

解读报告结果,对各项指标状态进行总结。如有异常项,给出具体处理建议。

示例 2:延长采样时间

用户说:"做一个更详细的性能检查,采样 30 秒"

bash scripts/sys_check.sh --duration 30 --format report

示例 3:获取 JSON 数据

用户说:"我要把性能数据接入监控系统"

bash scripts/sys_check.sh --format json

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 系统性能检查是运维场景中的高频刚需,直接解决用户明确的核心任务痛点
  • 提供完整的性能监控解决方案,显著提升日常运维效率
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含多种变体(性能检查、CPU/内存/磁盘占用、性能巡检等)
  • 边界清晰,不易与其他 Skill 重叠
Structure and Standards90/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档结构完整但缺少明确的 When to Use 章节标题

    Recommendation: 建议添加 When to Use 章节,更清晰地说明使用时机

Highlights

  • Phase/步骤清晰,有完整的工作流程和使用方式
  • 包含端到端示例,frontmatter完整
Execution Reliability85/100

Highlights

  • 工具来源明确(scripts/sys_check.sh),参数说明完整
  • 覆盖主要异常处理建议,提供详细的排查命令
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.