← 返回
安全合规 中文

OpenClaw Diagnostics

Diagnoses and troubleshoots OpenClaw config, channel, group message, cron job, and authentication issues using logs and built-in knowledge base.
诊断并排除 OpenClaw 配置、频道、群消息、定时任务及认证问题,使用日志和内置知识库。
cooperun
安全合规 clawhub v1.0.0 1 版本 99875.8 Key: 无需
★ 1
Stars
📥 784
下载
💾 10
安装
1
版本
#latest

概述

OpenClaw Diagnostics

Configuration diagnostics and troubleshooting skill for OpenClaw, powered by built-in AI without external dependencies.

Quick Diagnostics

When a user reports an OpenClaw issue:

1. Gather Diagnostic Info

~/.openclaw/workspace/skills/openclaw-diagnostics/scripts/get-diagnostic-info.sh

2. Run Basic Checks

~/.openclaw/workspace/skills/openclaw-diagnostics/scripts/check-common-issues.sh

3. Analyze Based on Issue Type

Refer to references/common-issues.md for diagnostic rules.

Diagnostic Workflow

User reports issue
        ↓
Gather info (config + status + logs)
        ↓
Run basic checks
        ↓
Lookup relevant docs from knowledge base
        ↓
Analyze and provide diagnosis
        ↓
Suggest fixes

Knowledge Base

The skill includes a built-in knowledge base with 335 OpenClaw documentation pages.

Location: assets/default-snapshot.json

Structure:

{
  "meta": { "pageCount": 335, "snapshotDate": "...", "sizeBytes": 3240482 },
  "index": [{ "slug": "...", "title": "...", "url": "...", "description": "..." }],
  "pages": { "slug": "markdown content..." }
}

To lookup a document:

  1. Read references/knowledge-base-index.md to find relevant slugs
  2. Load assets/default-snapshot.json
  3. Access pages[slug] for content

Common Document Slugs:

TopicSlugs
--------------
Group Messages008888be, 0bfb808e
Pairing919c126f
Message Routinga99b0ed8
Automation Troubleshootinga632126a
Auth Monitoring87e3285b
Cron Jobsb239629c
Channels Overview6569d3b4
WhatsAppd09047a0
Telegramd423ce29
Feishu90a33c43

Updating Knowledge Base

The knowledge base can be updated to get the latest OpenClaw documentation.

Requirements: Network connection (no LLM needed)

Check for updates:

cd ~/.openclaw/workspace/skills/openclaw-diagnostics
npx tsx scripts/update-knowledge-base.ts --check

Update to latest:

cd ~/.openclaw/workspace/skills/openclaw-diagnostics
npx tsx scripts/update-knowledge-base.ts

Force update:

npx tsx scripts/update-knowledge-base.ts --force

Features:

  • Version checking based on sitemap lastmod
  • No LLM required - lightweight and fast
  • Remembers previously skipped versions

Common Issues

Group Messages Not Responding

  1. Check basics:
    • Is the bot in the group?
    • Did the user @ mention the bot?
    • Is Gateway running?
  1. Check config:
    • ackReactionScope: group-mentions means only reply to @ messages
    • groupPolicy: open allows all groups, allowlist requires whitelist
  1. ⚠️ Don't misdiagnose: groupPolicy: "open" is valid config, not "empty"

DM Not Responding

Check pairing status and allowFrom configuration.

Cron Jobs Not Running

  1. Confirm Gateway is running
  2. Check cron expression
  3. Check logs for trigger confirmation
  4. Check mute hours settings

Channel Connection Issues

  1. Run openclaw status to check status
  2. Check channel-specific config
  3. Look for errors in logs

Diagnosis Principles

  1. Confirm basics first - Don't skip simple checks
  2. Check logs - Logs usually contain the most direct error info
  3. Don't over-diagnose - If config is valid, don't suggest "improvements"
  4. Reference docs - Cite relevant document slugs in diagnosis

Resources

scripts/

  • get-diagnostic-info.sh - Get config, status, and logs
  • check-common-issues.sh - Common issue checker
  • update-knowledge-base.ts - Update knowledge base (requires tsx)

assets/

  • default-snapshot.json - Built-in knowledge base (335 docs)
  • update-meta.json - Update tracking (created after first check)

references/

  • knowledge-base-index.md - Document index by category
  • common-issues.md - Diagnostic rules for common issues

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 09:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,607
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,718
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,506