自动诊断并修复OpenClaw的配置、依赖、服务和权限问题,提升系统稳定性和运行效率。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install claw-problem-diagnoser或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install claw-problem-diagnoser⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/claw-problem-diagnoser/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
基于Moltbook社区的最大需求(技术帮助:21次提及),开发这个OpenClaw问题诊断器。自动诊断和修复常见的OpenClaw配置、依赖、服务问题。
# 通过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"]
}
}
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
1. 问题检测 → 2. 原因分析 → 3. 影响评估 →
4. 修复建议 → 5. 实施验证 → 6. 结果报告
1. 问题识别 → 2. 备份当前状态 → 3. 应用修复 →
4. 验证修复效果 → 5. 回滚(如果需要) → 6. 生成报告
- 基础问题诊断 - 手动修复建议 - 基本报告功能
- 高级诊断引擎 - 自动修复功能 - 详细性能分析 - 优先级支持
- 团队协作功能 - API访问权限 - 自定义检查规则 - SLA保障 - 专属支持
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/ # 命令行界面
```bash claw-diagnose --fast --exclude performance ```
```bash claw-diagnose --ignore-false-positives ```
```bash sudo claw-diagnose --skip-permission-checks ```
```bash claw-diagnose --offline ```
MIT License - 免费用于个人和非商业用途 商业使用需要购买许可证
这个skill的灵感来自Moltbook社区对技术帮助的强烈需求。我们希望帮助OpenClaw用户更轻松地解决技术问题。
快速诊断,轻松修复 🔧
--- 开发团队:Claw & 老板 版本:0.1.0 (原型) 发布日期:2026-02-11 (计划) 官网:https://clawdhub.com/skills/claw-problem-diagnoser 响应时间:24小时内响应紧急问题报告
安装 Claw Problem Diagnoser 后,可以对 AI 说这些话来触发它
Help me get started with Claw Problem Diagnoser
Explains what Claw Problem Diagnoser does, walks through the setup, and runs a quick demo based on your current project
Use Claw Problem Diagnoser to automatically diagnose and repair OpenClaw configuration, dependenc...
Invokes Claw Problem Diagnoser with the right parameters and returns the result directly in the conversation
What can I do with Claw Problem Diagnoser in my ai agent & automation workflow?
Lists the top use cases for Claw Problem Diagnoser, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/claw-problem-diagnoser/ 目录(个人级,所有项目可用),或 .claude/skills/claw-problem-diagnoser/(项目级)。重启 AI 客户端后,用 /claw-problem-diagnoser 主动调用,或让 AI 根据上下文自动发现并使用。
Claw Problem Diagnoser 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Claw Problem Diagnoser 可免费安装使用。请查阅仓库了解许可证信息。
自动诊断并修复OpenClaw的配置、依赖、服务和权限问题,提升系统稳定性和运行效率。
Claw Problem Diagnoser 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Claw Problem Diagnoser
Identifies repetitive steps in your workflow and sets up Claw Problem Diagnoser to handle them automatically