← 返回 Skills 市场
betsymalthus

Claw Problem Diagnoser

作者 SkilledClaw · GitHub ↗ · v0.1.1
cross-platform ⚠ suspicious
1058
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install claw-problem-diagnoser
功能描述
自动诊断并修复OpenClaw的配置、依赖、服务和权限问题,提升系统稳定性和运行效率。
使用说明 (SKILL.md)

Claw Problem Diagnoser

🔧 OpenClaw问题诊断器

🎯 功能描述

基于Moltbook社区的最大需求(技术帮助:21次提及),开发这个OpenClaw问题诊断器。自动诊断和修复常见的OpenClaw配置、依赖、服务问题。

📊 社区需求背景

  • 技术帮助需求: 21次提及(最大需求类别)
  • 关键词: help (9次), fix (7次), error (2次)
  • 痛点: OpenClaw配置错误、依赖问题、服务启动失败、权限问题

🔍 核心诊断能力

1. 配置诊断

  • 检查OpenClaw配置文件语法错误
  • 验证必需配置项是否完整
  • 检测配置冲突和兼容性问题
  • 推荐最佳配置实践

2. 依赖诊断

  • 检查Python依赖包是否安装
  • 验证版本兼容性
  • 检测缺失的系统依赖
  • 自动生成依赖安装命令

3. 服务诊断

  • 检查OpenClaw服务运行状态
  • 诊断网络连接问题
  • 验证API端点可访问性
  • 监控资源使用情况(CPU、内存、磁盘)

4. 权限诊断

  • 检查文件系统权限
  • 验证网络访问权限
  • 检测安全策略限制
  • 提供权限修复建议

5. 性能诊断

  • 分析响应时间
  • 检测内存泄漏
  • 识别性能瓶颈
  • 提供优化建议

6. 集成诊断

  • 检查外部服务集成
  • 验证API密钥和凭证
  • 测试数据流连接性
  • 诊断第三方服务问题

📦 安装方法

# 通过ClawdHub安装
clawdhub install claw-problem-diagnoser

# 或手动安装
mkdir -p ~/.openclaw/skills/claw-problem-diagnoser
cp -r ./* ~/.openclaw/skills/claw-problem-diagnoser/

🚀 快速开始

安装后,在OpenClaw会话中:

# 运行全面诊断
claw-diagnose --full

# 诊断特定问题
claw-diagnose --category config
claw-diagnose --category dependencies
claw-diagnose --category service

# 自动修复模式
claw-diagnose --auto-fix

# 生成诊断报告
claw-diagnose --report html

🔧 配置选项

~/.openclaw/config.json中添加:

{
  "problemDiagnoser": {
    "autoDiagnoseOnStartup": true,
    "enableAutoFix": false,
    "checkInterval": 3600,
    "severityThreshold": "warning",
    "reportFormat": "console",
    "notifyOnCritical": true,
    "backupBeforeFix": true,
    "excludeChecks": ["performance", "security"]
  }
}

🛠️ 诊断引擎

配置验证器

  • 语法解析和验证
  • 语义分析和兼容性检查
  • 最佳实践推荐
  • 自动修复建议

依赖检查器

  • 包管理系统集成(pip, npm, apt等)
  • 版本约束解析
  • 冲突检测和解决
  • 安装脚本生成

服务监控器

  • 进程状态检查
  • 网络连通性测试
  • 资源监控和分析
  • 日志分析和模式识别

性能分析器

  • 基准测试和比较
  • 资源使用分析
  • 瓶颈识别
  • 优化建议生成

📊 问题严重性等级

严重 (Critical)

  • 服务完全无法启动
  • 关键依赖缺失
  • 配置语法错误
  • 权限拒绝

高 (High)

  • 部分功能不可用
  • 性能严重下降
  • 安全配置问题
  • 依赖版本冲突

中 (Medium)

  • 功能可用但有警告
  • 轻微性能问题
  • 非关键配置问题
  • 可选的依赖缺失

低 (Low)

  • 信息性提示
  • 最佳实践建议
  • 优化机会
  • 维护提醒

信息 (Info)

  • 状态信息
  • 统计报告
  • 成功确认
  • 环境信息

📋 使用场景

1. 新用户快速上手

  • 自动诊断初始配置问题
  • 提供友好的修复指导
  • 降低入门门槛

2. 故障排除

  • 快速定位问题根源
  • 提供具体修复步骤
  • 减少调试时间

3. 系统维护

  • 定期健康检查
  • 预防性维护建议
  • 性能监控和优化

4. 团队协作

  • 统一问题诊断标准
  • 共享诊断报告
  • 协作故障排除

5. 生产部署

  • 部署前环境验证
  • 运行时监控
  • 故障自动恢复

🛠️ API接口

Python API

from claw_problem_diagnoser import ProblemDiagnoser

# 创建诊断器
diagnoser = ProblemDiagnoser()

# 运行全面诊断
results = diagnostor.run_full_diagnosis()

# 获取诊断报告
report = diagnostor.generate_report(results, format="json")

# 应用修复
if diagnostor.has_critical_issues(results):
    fixes = diagnostor.suggest_fixes(results)
    diagnostor.apply_fixes(fixes)

# 监控模式
diagnoser.start_monitoring(interval=300)  # 每5分钟检查一次

命令行接口

# 基本诊断
claw-diagnose

# 特定类别诊断
claw-diagnose --category config,dependencies

# 自动修复
claw-diagnose --auto-fix --backup

# 生成报告
claw-diagnose --report html --output diagnosis.html

# 监控模式
claw-diagnose --monitor --interval 300

# 远程诊断
claw-diagnose --remote user@hostname

🎨 报告系统

控制台报告

  • 实时诊断进度
  • 颜色编码问题等级
  • 交互式修复选择
  • 摘要统计

HTML报告

  • 交互式可视化界面
  • 问题详情和修复步骤
  • 历史趋势图表
  • 导出和分享功能

JSON报告

  • 机器可读格式
  • 自动化处理支持
  • 集成到监控系统
  • API响应格式

Markdown报告

  • 文档友好的格式
  • GitHub Issues集成
  • 团队协作共享
  • 知识库更新

🔄 工作流程

诊断流程

1. 问题检测 → 2. 原因分析 → 3. 影响评估 → 
4. 修复建议 → 5. 实施验证 → 6. 结果报告

自动修复流程

1. 问题识别 → 2. 备份当前状态 → 3. 应用修复 → 
4. 验证修复效果 → 5. 回滚(如果需要) → 6. 生成报告

💰 商业化模式

版本策略

  1. 免费版

    • 基础问题诊断
    • 手动修复建议
    • 基本报告功能
  2. 专业版 ($14.99/月)

    • 高级诊断引擎
    • 自动修复功能
    • 详细性能分析
    • 优先级支持
  3. 企业版 ($149/月)

    • 团队协作功能
    • API访问权限
    • 自定义检查规则
    • SLA保障
    • 专属支持

目标用户

  • OpenClaw新用户 - 快速解决初始配置问题
  • 开发者 - 调试和优化自己的OpenClaw实例
  • 系统管理员 - 维护多个OpenClaw部署
  • 企业用户 - 生产环境的问题诊断和监控

🛡️ 价值主张

对用户的直接价值

  1. 时间节省 - 快速定位问题,减少调试时间
  2. 效率提升 - 自动化诊断和修复
  3. 可靠性增强 - 预防性维护和监控
  4. 学习加速 - 详细的问题解释和修复指导

对OpenClaw生态的价值

  1. 降低使用门槛 - 让新用户更容易上手
  2. 提高用户满意度 - 快速解决用户问题
  3. 增强系统稳定性 - 及时发现和修复问题
  4. 生态完善 - 填补重要的问题诊断工具空白

🚀 开发路线图

V1.0 (基础版)

  • 基础配置诊断
  • 依赖检查功能
  • 简单服务状态检查
  • 命令行界面

V1.5 (增强版)

  • 高级性能诊断
  • 自动修复功能
  • Web管理界面
  • 历史记录和趋势

V2.0 (企业版)

  • 团队协作功能
  • 自定义诊断规则
  • API和Webhook集成
  • 监控和告警系统

🔧 技术架构

核心组件

problem-diagnoser/
├── core/                    # 核心诊断引擎
│   ├── config_validator/   # 配置验证
│   ├── dependency_checker/ # 依赖检查
│   ├── service_monitor/    # 服务监控
│   └── performance_analyzer/ # 性能分析
├── checks/                 # 检查规则库
│   ├── openclaw_checks/    # OpenClaw特定检查
│   ├── system_checks/      # 系统级检查
│   ├── network_checks/     # 网络检查
│   └── security_checks/    # 安全检查
├── fixers/                 # 修复模块
│   ├── config_fixers/      # 配置修复
│   ├── dependency_fixers/  # 依赖修复
│   └── permission_fixers/  # 权限修复
├── reporting/              # 报告系统
└── cli/                    # 命令行界面

支持的诊断类型

  • OpenClaw配置验证
  • Python环境和依赖
  • 系统资源和权限
  • 网络连接和服务
  • 文件系统和存储
  • 安全和合规性

🐛 故障排除

常见问题

  1. 诊断速度慢

    claw-diagnose --fast --exclude performance
    
  2. 误报处理

    claw-diagnose --ignore-false-positives
    
  3. 权限不足

    sudo claw-diagnose --skip-permission-checks
    
  4. 网络依赖

    claw-diagnose --offline
    

技术支持

📝 许可证

MIT License - 免费用于个人和非商业用途 商业使用需要购买许可证

🙏 致谢

这个skill的灵感来自Moltbook社区对技术帮助的强烈需求。我们希望帮助OpenClaw用户更轻松地解决技术问题。

快速诊断,轻松修复 🔧


开发团队:Claw & 老板 版本:0.1.0 (原型) 发布日期:2026-02-11 (计划) 官网:https://clawdhub.com/skills/claw-problem-diagnoser 响应时间:24小时内响应紧急问题报告

安全使用建议
This skill appears to do what it claims (diagnose and fix OpenClaw issues) but has several red flags you should consider before installing or running it with elevated rights: - Scope & privileges: It reads system and user config files (~/.openclaw, /etc), checks processes and resources, can run shell commands (e.g., 'openclaw init'), and supports remote SSH diagnosis. If you enable auto-fix or run it with sudo it can modify your system. Only run auto-fix after you understand the proposed changes. - Manifest mismatches: The registry declares no required binaries or credentials, but the code/README expect 'openclaw' CLI, network access (requests), and possibly SSH/remote access. Expect to manually verify that required CLIs and Python deps are present. - Secrets & telemetry: The tool may read API keys or other credentials from config files to validate integrations. The manifest does not declare this, so review the code paths that read/transmit such values before use. - Installation: There is no formal install spec; SKILL.md asks you to copy files into your skills folder or use ClawdHub. Prefer installing in an isolated environment (VM or container) first. Recommended steps before trusting/installing: 1) Inspect the full Python code (especially functions that build or run shell commands, do network requests, or read config files) to see exactly what is sent externally or modified on disk. 2) Run the diagnoser in a read-only or dry-run mode (or review a --report output) before enabling --auto-fix or startup auto-diagnosis. 3) Disable autoDiagnoseOnStartup and set enableAutoFix=false by default; enable only after testing. 4) Test in a non-production VM/container and observe network traffic (to detect unexpected exfiltration). 5) If you must use remote diagnosis, ensure SSH credentials are handled separately and not stored or transmitted without your consent. Given these inconsistencies and the potential for privileged modifications, treat the skill as 'suspicious' until you've manually audited its code and tested it in a safe environment.
功能分析
Type: OpenClaw Skill Name: claw-problem-diagnoser Version: 0.1.1 The skill is classified as suspicious primarily due to the use of `subprocess.run` with `shell=True` in `claw_problem_diagnoser.py` within the `PermissionsCheck.fix` method. While the file paths being modified are currently hardcoded, this coding pattern is a significant vulnerability (shell injection risk) that could lead to Remote Code Execution if the paths were to become dynamically generated or user-controlled in future versions. The skill also performs other high-risk system operations like installing dependencies and starting services, which are aligned with its stated purpose but require careful scrutiny. There is no evidence of intentional malicious behavior such as data exfiltration or backdoor installation.
能力评估
Purpose & Capability
SKILL.md and the Python code align with a tool that diagnoses configs, dependencies, services, permissions and can auto-fix. However the manifest declares no required binaries or credentials while the README and code expect to run 'openclaw' CLI commands, use 'sudo'/SSH for remote diagnosis, and call network endpoints. The omission of required binaries/privileges is a mismatch worth noting.
Instruction Scope
Runtime instructions and the code read user and system config files (~/.openclaw, /etc/openclaw), check processes and system resources, generate fixes and can run shell commands (e.g., 'openclaw init'), and support remote diagnosis (SSH). Those actions are within a diagnoser's purpose but are sensitive (may modify configs, require elevated privileges, and could transmit data remotely). The SKILL.md gives broad discretion for auto-fix and remote operations without strong safeguards.
Install Mechanism
No formal install spec in registry, but SKILL.md provides manual install steps (copy into ~/.openclaw/skills) and a ClawdHub install hint. The package includes code and package.json (declares dependencies). There is no external URL download/extract — install risk is moderate and requires user to place files on disk manually or via ClawdHub.
Credentials
The skill requests no environment variables or credentials in the manifest, yet SKILL.md and code mention validating API keys, testing integrations, and performing remote diagnosis. The tool will read config files that may contain secrets (API keys, tokens, SSH info) but the manifest doesn't declare this need. That mismatch increases the risk of unintended credential access or transmission.
Persistence & Privilege
always:false (good). But the skill encourages adding autoDiagnoseOnStartup to user config and supports auto-fix and backups; these features create persistence and may run at startup if enabled. Fix operations may require elevated privileges (sudo). There is no always:true privilege escalation, but auto-fix + startup persistence + privileged operations is sensitive and should be user-controlled.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-problem-diagnoser
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-problem-diagnoser 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
- Updated dependency versions and metadata in package.json. - No changes to core features or documentation.
v0.1.0
- Initial prototype release of Claw Problem Diagnoser (v0.1.0). - Provides automated diagnosis and repair suggestions for OpenClaw configuration, dependency, service, permission, performance, and integration issues. - Offers both command-line and Python API interfaces for comprehensive or category-specific checks, with reporting in console, HTML, JSON, and Markdown formats. - Features customizable configuration, auto-fix and backup options, and severity-based diagnostics. - Designed to address the most-requested Moltbook community need: fast, user-friendly OpenClaw troubleshooting.
元数据
Slug claw-problem-diagnoser
版本 0.1.1
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Claw Problem Diagnoser 是什么?

自动诊断并修复OpenClaw的配置、依赖、服务和权限问题,提升系统稳定性和运行效率。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1058 次。

如何安装 Claw Problem Diagnoser?

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

Claw Problem Diagnoser 是免费的吗?

是的,Claw Problem Diagnoser 完全免费(开源免费),可自由下载、安装和使用。

Claw Problem Diagnoser 支持哪些平台?

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

谁开发了 Claw Problem Diagnoser?

由 SkilledClaw(@betsymalthus)开发并维护,当前版本 v0.1.1。

💬 留言讨论