← Back to Skills Marketplace
270
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install system-memory-inspector
Description
Linux 系统级内存泄漏巡检:定时扫描所有进程内存,记录系统内存全景, 通过增长趋势分析识别异常进程,输出排查思路和可疑进程列表。 当用户提到"系统内存巡检"、"全进程内存扫描"、"内存泄漏排查"、"环境内存分析"、 "定时统计所有进程"、"系统内存记录"、"找出泄漏进程"时触发。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install system-memory-inspector - After installation, invoke the skill by name or use
/system-memory-inspector - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is system memory inspector?
Linux 系统级内存泄漏巡检:定时扫描所有进程内存,记录系统内存全景, 通过增长趋势分析识别异常进程,输出排查思路和可疑进程列表。 当用户提到"系统内存巡检"、"全进程内存扫描"、"内存泄漏排查"、"环境内存分析"、 "定时统计所有进程"、"系统内存记录"、"找出泄漏进程"时触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 270 downloads so far.
How do I install system memory inspector?
Run "/install system-memory-inspector" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is system memory inspector free?
Yes, system memory inspector is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does system memory inspector support?
system memory inspector is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created system memory inspector?
It is built and maintained by Rong Zhu (@zhur0ng); the current version is v1.0.0.
More Skills