← 返回 Skills 市场
3133
总下载
0
收藏
12
当前安装
1
版本数
在 OpenClaw 中安装
/install docker-diag
功能描述
Advanced log analysis for Docker containers using signal extraction.
使用说明 (SKILL.md)
\r \r
Docker Pro Diagnostic\r
\r When a user asks "Why is my container failing?" or "Analyze the logs for [container]", follow these steps:\r \r
- Run Extraction: Call
python3 {{skillDir}}/log_processor.py \x3Ccontainer_name>.\r - Analyze: Feed the output (which contains errors and context) into your reasoning engine.\r
- Report: Summarize the root cause. If it looks like a code error, suggest a fix. If it looks like a resource error (OOM), suggest increasing Docker memory limits.\r \r
Example Command\r
python3 log_processor.py api_gateway_prod
安全使用建议
This skill is coherent with its stated purpose but contains a concrete vulnerability and access risk. The Python script runs 'docker logs' by building a shell command with the container name, which allows shell injection if container names come from untrusted input. Before installing or enabling: (1) ask the author to fix the script to avoid shell=True and to pass args as a list or use the docker SDK (e.g., subprocess.run(['docker','logs','--tail',str(max_lines),container_name]) or docker-py), (2) review logs it will read because container logs can contain secrets, (3) only grant Docker access in a controlled environment (or run the skill in an isolated agent), and (4) avoid giving it autonomous invocation in high-risk contexts until the code is sanitized. If you are not able to confirm the fix, treat this skill as potentially unsafe and do not run it against production containers.
功能分析
Type: OpenClaw Skill
Name: docker-diag
Version: 1.0.0
The `log_processor.py` script is vulnerable to command injection due to the use of `shell=True` with user-controlled input (`container_name`) in the `subprocess.run` call. This allows an attacker to execute arbitrary commands on the host system by crafting a malicious container name. While the skill's stated purpose is diagnostic, this severe vulnerability represents a high-risk capability that could be exploited for malicious execution.
能力评估
Purpose & Capability
Name/description match what the files do: the SKILL.md instructs running a bundled Python script that calls 'docker logs' and analyzes output. Declaring python3 and docker as required bins is coherent.
Instruction Scope
SKILL.md restricts behavior to running log_processor.py and analyzing its output, which is within purpose. However the bundled script constructs a shell command with unescaped container_name and uses subprocess.run(..., shell=True), enabling shell injection if a malicious or malformed container name is provided. The instructions do not warn about sensitive data in logs or sanitization.
Install Mechanism
Instruction-only skill with a single included Python file and no install spec — low install risk. Nothing is downloaded from external URLs.
Credentials
The skill requests no environment variables or credentials, which is proportionate. It does require access to the Docker binary/daemon (implicitly) to read container logs; container logs can contain secrets or sensitive data, so granting Docker access to this skill is a substantive privilege that should be considered.
Persistence & Privilege
always:false and no persistent install behavior. Normal autonomous invocation is allowed (platform default) but not explicitly privileged by the skill.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install docker-diag - 安装完成后,直接呼叫该 Skill 的名称或使用
/docker-diag触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Docker Pro Diagnostic:
- Provides advanced log analysis for Docker containers using signal extraction.
- Guides users to extract and analyze logs via a provided Python script.
- Summarizes probable root causes and suggests relevant fixes for code or resource errors.
- Offers clear instructions and example usage for troubleshooting failing containers.
元数据
常见问题
Docker Diag 是什么?
Advanced log analysis for Docker containers using signal extraction. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3133 次。
如何安装 Docker Diag?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install docker-diag」即可一键安装,无需额外配置。
Docker Diag 是免费的吗?
是的,Docker Diag 完全免费(开源免费),可自由下载、安装和使用。
Docker Diag 支持哪些平台?
Docker Diag 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Docker Diag?
由 mkrdiop(@mkrdiop)开发并维护,当前版本 v1.0.0。
推荐 Skills