← 返回 Skills 市场
wujiaming88

Openclaw Diagnostics

作者 Garming · GitHub ↗ · v1.0.7 · MIT-0
cross-platform ⚠ suspicious
157
总下载
0
收藏
0
当前安装
8
版本数
在 OpenClaw 中安装
/install openclaw-diag
功能描述
OpenClaw 系统诊断和性能分析工具。分析 agent 推理耗时、Token 用量、工具调用统计、 Run 时间线、Gateway 重启历史。支持多种模式:批量分析(默认)、实时跟踪(-f)、 摘要统计(-s)、高级诊断(--advanced)。支持多 Agent 过滤。 使用场景:当用户询问 OpenCla...
安全使用建议
This skill appears to implement a legitimate diagnostics tool, but review before enabling: (1) inspect scripts/openclaw-diag.sh yourself — it reads ~/.openclaw and /tmp logs and can modify openclaw.json and restart the Gateway; (2) be aware the skill will send raw script output back to the user (may contain PII or secrets); (3) the manifest did not declare the config paths or binary dependencies (python3, openclaw CLI) — that's an inconsistency; (4) advanced mode performs privileged actions and uses interactive prompts (/dev/tty) which may hang in non-interactive agent runs; (5) if you install, consider restricting autonomous invocation, require explicit human confirmation before running advanced options, run initially on a non-production/staging host, and only enable summary (-s) mode until you trust the code and behavior.
功能分析
Type: OpenClaw Skill Name: openclaw-diag Version: 1.0.7 The bundle provides diagnostic tools with high-risk capabilities, including a Bash script (openclaw-diag.sh) that can modify the system's 'openclaw.json' configuration and restart the OpenClaw Gateway service. The SKILL.md instructions direct the AI agent to pass user-provided arguments directly to the shell script ('参数透传') and use a 'Direct Output' mode that bypasses model summarization and suppresses further agent responses using 'NO_REPLY'. While these features are aligned with the stated diagnostic purpose, the combination of system-level configuration access, service control, and instructions to bypass AI safety/summarization logic creates a significant surface for prompt injection and unauthorized system manipulation.
能力评估
Purpose & Capability
Name/description match a local diagnostics tool and the included script implements that. However registry metadata claims no required config paths or credentials while the script explicitly reads session files (~/.openclaw, /root/.openclaw, /etc paths) and can modify openclaw.json and restart the Gateway — those resource requirements should have been declared.
Instruction Scope
SKILL.md instructs the agent to execute the bundled script and to send the script stdout 'raw' via message(action="send"). The script reads session logs (which can contain full user/tool messages and possibly secrets), system config files, and may write/restore openclaw.json and restart the gateway. It also uses interactive prompts (/dev/tty) which may block in non-interactive agent runs. Sending raw logs back to chat without model filtering can leak sensitive data.
Install Mechanism
No install spec (instruction-only with a script). Low installation risk because nothing is downloaded or extracted; code is bundled in the skill. Still review the bundled script before use.
Credentials
The skill declares no required env vars or config paths, yet the script accesses multiple system paths (~/.openclaw, /root/.openclaw, /etc/openclaw/openclaw.json, /tmp logs) and requires python3 and an 'openclaw' CLI. The lack of declared file/config access is an inconsistency and reduces transparency about what secrets/data the skill may access.
Persistence & Privilege
always:false (good), but the script can modify system config and restart the OpenClaw Gateway (privileged actions). Advanced mode requires interactive confirmation, but the agent could still be scripted to invoke those actions. Combined with autonomous invocation capability, this raises operational risk if the agent runs the skill without a human in the loop.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-diag
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-diag 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.7
恢复 /root/ + $HOME/ 双路径搜索,兼容 root 和非 root 用户
v1.0.6
移除重复的路径搜索条目(openclaw.json×2, sessions×2)
v1.0.5
修复实时跟踪agent过滤:无sessionKey事件通过current_agent上下文继承最近agent,避免漏显或误丢事件
v1.0.4
修复实时跟踪模式agent过滤失效(AGENT_FILTER_ENV未export到管道python端); Python最低版本声明3.6→3.7(fromisoformat依赖)
v1.0.3
移除自定义 agent 名称(waicode/wairesearch/waidesign/waiqa),改用通用占位符
v1.0.2
移除硬编码 /root 路径,改用 $HOME,确保多用户环境兼容
v1.0.1
修复ClawHub扫描告警:重命名 first_token→first_recv_ts, session_key→sess_ref, childSessionKey→child_sess_id, token→tok 显示标签
v1.0.0
初版:6种诊断模式、/diag指令触发、多Agent过滤、session数据驱动、直出模式、推理耗时分析、工具统计、错误追踪
元数据
Slug openclaw-diag
版本 1.0.7
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 8
常见问题

Openclaw Diagnostics 是什么?

OpenClaw 系统诊断和性能分析工具。分析 agent 推理耗时、Token 用量、工具调用统计、 Run 时间线、Gateway 重启历史。支持多种模式:批量分析(默认)、实时跟踪(-f)、 摘要统计(-s)、高级诊断(--advanced)。支持多 Agent 过滤。 使用场景:当用户询问 OpenCla... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 157 次。

如何安装 Openclaw Diagnostics?

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

Openclaw Diagnostics 是免费的吗?

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

Openclaw Diagnostics 支持哪些平台?

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

谁开发了 Openclaw Diagnostics?

由 Garming(@wujiaming88)开发并维护,当前版本 v1.0.7。

💬 留言讨论