← 返回 Skills 市场
zhur0ng

system memory inspector

作者 Rong Zhu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
270
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install system-memory-inspector
功能描述
Linux 系统级内存泄漏巡检:定时扫描所有进程内存,记录系统内存全景, 通过增长趋势分析识别异常进程,输出排查思路和可疑进程列表。 当用户提到"系统内存巡检"、"全进程内存扫描"、"内存泄漏排查"、"环境内存分析"、 "定时统计所有进程"、"系统内存记录"、"找出泄漏进程"时触发。
安全使用建议
This skill implements a system-wide memory scanner that reads /proc for every process and writes snapshots and per-PID trend files under /var/log/memory-inspector; before installing, verify the following: (1) Privileges: to see other users' processes and to write /var/log you likely must run the script as root — decide if you are comfortable granting that. (2) Sensitive data: the script stores truncated process command lines (cmdline), which can contain secrets; remove or sanitize cmdline capture if you cannot guarantee sensitive arguments won't be logged. (3) Persistence and retention: the skill recommends cron scheduling and keeps trend/history files — set log rotation, file ownership, and access controls to prevent unauthorized reading. (4) Installation ambiguity: there is no provided installer; the script is embedded in the documentation, so ensure the script is sourced from a trusted place and review it before creating/executing files. (5) Test in a non-production environment first to confirm behavior and resource impact. If you need help making the script safer, consider restricting it to user-owned processes, writing data to a user-writable directory, or redacting cmdline contents before persisting.
功能分析
Type: OpenClaw Skill Name: system-memory-inspector Version: 1.0.0 The skill is a legitimate system monitoring tool designed to identify memory leaks in Linux processes. The core script, `scripts/system-memory-scan.sh`, collects process data from `/proc`, calculates growth rates over time, and generates local reports in `/var/log/memory-inspector/`. No evidence of data exfiltration, unauthorized network access, or malicious command execution was found.
能力评估
Purpose & Capability
Name and description match the instructions: the SKILL.md defines a scanner that reads /proc, records RSS/VmSize over time, and produces reports. However the skill does not declare that it needs elevated privileges or file-system write access (it writes under /var/log/memory-inspector and suggests installing a cron job), which is a practical requirement for full-system coverage and should have been stated.
Instruction Scope
Instructions explicitly read /proc/<pid>/status and /proc/<pid>/cmdline for all PIDs, persist snapshots and per-pid trend files under /var/log, and recommend cron scheduling. Persisting cmdline and process metadata can capture sensitive command-line arguments (passwords, tokens). The SKILL.md does not mention sanitization, access controls, or retention/rotation policies. It also assumes the provided shell script will be created/executed, but there is no install step to place the script on disk — operational ambiguity.
Install Mechanism
No install spec is provided (instruction-only). That lowers supply-chain risk, but also means the user/agent must create the script manually if they follow the instructions. The SKILL.md includes the script content inline, so correctness depends on whoever writes/installs it; there's no signed/release artifact or package referenced.
Credentials
The skill requests no environment variables or external credentials, which is consistent. However it implicitly requires filesystem write access to /var/log and the ability to read other users' /proc entries to achieve full-system inspection. Those privilege needs are not declared. Also collecting cmdline arguments is disproportionate to a minimal memory-only summary and increases risk of capturing secrets.
Persistence & Privilege
The skill suggests persistent presence via cron scheduling and writing persistent snapshot/trending files under /var/log/memory-inspector. Although always:false, the instructions create long-lived files and cron entries which require appropriate privileges; the skill does not document required permissions, log rotation, or access controls for these artifacts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install system-memory-inspector
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /system-memory-inspector 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of system-memory-inspector. - Adds periodic scanning of all Linux processes' memory usage and records system-wide memory snapshots. - Identifies anomalous processes via memory growth trend analysis. - Generates inspection reports with system memory overview, top memory-consuming processes, leak suspects, and inspection suggestions. - Provides command-line usage guidance and sample output.
vv0.0.1
system-memory-inspector v0.0.1 - Initial release: Provides system-level memory leak inspection for Linux servers. - Periodically scans all processes for memory usage (RSS, VmSize, uptime). - Records historical snapshots and trends to identify abnormal memory growth. - Detects suspicious or confirmed leaking processes by analyzing growth rates. - Generates memory inspection reports including system summary, top memory consumers, trend analysis, and troubleshooting suggestions. - Usable via command or automatically through cron.
元数据
Slug system-memory-inspector
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

system memory inspector 是什么?

Linux 系统级内存泄漏巡检:定时扫描所有进程内存,记录系统内存全景, 通过增长趋势分析识别异常进程,输出排查思路和可疑进程列表。 当用户提到"系统内存巡检"、"全进程内存扫描"、"内存泄漏排查"、"环境内存分析"、 "定时统计所有进程"、"系统内存记录"、"找出泄漏进程"时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 270 次。

如何安装 system memory inspector?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install system-memory-inspector」即可一键安装,无需额外配置。

system memory inspector 是免费的吗?

是的,system memory inspector 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

system memory inspector 支持哪些平台?

system memory inspector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 system memory inspector?

由 Rong Zhu(@zhur0ng)开发并维护,当前版本 v1.0.0。

💬 留言讨论