← 返回 Skills 市场
liverock

Docker Medic

作者 Peter Lum · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
129
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-skill-local-docker-health-check
功能描述
Inspects container health and suggests fixes for common errors
安全使用建议
This skill is inconsistent: it promises to inspect real Docker containers but the shipped code uses a hard-coded mock (mock_docker.js) and does not call the Docker CLI or Docker API. If you expect a tool that actually inspects containers on your machine, do not rely on this version. Options: - Review and modify the code to replace mock_docker.js with real Docker interactions (e.g., use dockerode or call the docker CLI), and ensure any added access (Docker socket or DOCKER_HOST) is intentional and secured. - If you deploy a version that touches the Docker socket or host files, audit it carefully for data exfiltration and limit the skill's permissions. - If you only want diagnostics examples or a demo, this skill is harmless, but label it clearly as demo/mock. Proceed with caution if you expected real host inspection.
功能分析
Type: OpenClaw Skill Name: openclaw-skill-local-docker-health-check Version: 1.0.0 The skill is a diagnostic tool designed to simulate Docker container health checks. It uses hardcoded mock data from 'mock_docker.js' to identify common errors like OOM kills or timeouts and provides suggested fixes. There is no evidence of actual system interaction, network activity, or prompt injection; the logic in 'handler.js' is purely analytical and limited to string matching and report generation.
能力评估
Purpose & Capability
The skill's name/description says it inspects container health, but the package requests no Docker binary, no Docker socket, and no environment variables. The included implementation (mock_docker.js) returns hard-coded container lists and logs rather than querying a real Docker daemon, so it cannot perform the stated runtime task on a real host without modification.
Instruction Scope
SKILL.md describes checking containers and logs and exposes a check_containers command, which is consistent in intent. However the instructions are ambiguous about how container data is obtained at runtime (no mention of docker CLI, Docker API, or required host access), and the shipped handler.js relies on mock_docker.js rather than any real Docker integration.
Install Mechanism
No install spec is present and there are no downloads or external installers, which lowers installation risk. The skill is instruction-only with two small JS files included.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code does not access environment variables or external endpoints. This is proportionate to the actual (mock) implementation, but not to the advertised real-world Docker functionality.
Persistence & Privilege
The skill is not forced-always, does not request elevated or persistent privileges, and does not modify other skills or global agent settings. Autonomous model invocation is allowed but not combined with other privilege escalations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-skill-local-docker-health-check
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-skill-local-docker-health-check 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
# Docker Medic An OpenClaw skill that inspects Docker container health and suggests fixes for common errors. ## Files | File | Purpose | |------|---------| | `skill.md` | OpenClaw skill definition — command interface and metadata | | `handler.js` | Diagnostic engine — scans containers, matches errors, generates reports | | `mock_docker.js` | Simulated Docker API for testing without a live daemon | ## Commands ### `check_containers` Inspects container health using keyword-based log analysis. **Parameters:** | Parameter | Required | Description | |-----------|----------|-------------| | `name` | No | Specific container to check. Defaults to all containers. | ## How It Works 1. **List containers** — calls `listContainers()` to get all container statuses. 2. **Scan logs** — each container's logs are tested against a set of keyword rules. 3. **Match diagnostics** — matched keywords map to a diagnosis and a specific fix. 4. **Generate output** — returns a text summary, a Markdown status table, and JSON prescriptions. ## Supported Diagnostics | Keyword Pattern | Diagnosis | Suggested Fix | |-----------------|-----------|---------------| | `Timeout` | Connection timeout | Restart container; check network config | | `OOM` / `exit code 137` | Out of memory | Increase memory limit in compose file | | `Connection refused` | Port unreachable | Verify dependent service is running | Adding a new diagnostic is a single entry in the `DIAGNOSTICS` array in `handler.js`. ## Quick Start ```bash node handler.js ``` ## Output Format - **Summary** — plain text listing each flagged container and its diagnosis. - **Status Table** — Markdown table of all containers with diagnosis and action. - **Prescriptions** — JSON array of `{ action, target, reason }` objects.
元数据
Slug openclaw-skill-local-docker-health-check
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Docker Medic 是什么?

Inspects container health and suggests fixes for common errors. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 129 次。

如何安装 Docker Medic?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-skill-local-docker-health-check」即可一键安装,无需额外配置。

Docker Medic 是免费的吗?

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

Docker Medic 支持哪些平台?

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

谁开发了 Docker Medic?

由 Peter Lum(@liverock)开发并维护,当前版本 v1.0.0。

💬 留言讨论