简介
OpenClaw Diagnostics
原始描述
Diagnoses and troubleshoots OpenClaw config, channel, group message, cron job, and authentication issues using logs and built-in knowledge base.
通过你的 Agent 添加
安装目录:openclaw-diagnostics/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: openclaw-diagnostics
description: OpenClaw configuration diagnostics and troubleshooting expert. Use when users encounter OpenClaw config issues, channel connection problems, group messages not responding, cron jobs not executing, authentication failures, or need help understanding OpenClaw settings. Triggers: diagnose, troubleshoot, why no reply, config problem, openclaw issue, log analysis.
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
~/.openclaw/workspace/skills/openclaw-diagnostics/scripts/get-diagnostic-info.sh
~/.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
User reports issue
↓
Gather info (config + status + logs)
↓
Run basic checks
↓
Lookup relevant docs from knowledge base
↓
Analyze and provide diagnosis
↓
Suggest fixes
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:
- Read
references/knowledge-base-index.mdto find relevant slugs - Load
assets/default-snapshot.json - Access
pages[slug]for content
Common Document Slugs:
| Topic | Slugs |
|---|---|
| Group Messages | 008888be, 0bfb808e |
| Pairing | 919c126f |
| Message Routing | a99b0ed8 |
| Automation Troubleshooting | a632126a |
| Auth Monitoring | 87e3285b |
| Cron Jobs | b239629c |
| Channels Overview | 6569d3b4 |
d09047a0 |
|
| Telegram | d423ce29 |
| Feishu | 90a33c43 |
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
-
Check basics:
- Is the bot in the group?
- Did the user @ mention the bot?
- Is Gateway running?
-
Check config:
ackReactionScope:group-mentionsmeans only reply to @ messagesgroupPolicy:openallows all groups,allowlistrequires whitelist
-
⚠️ Don't misdiagnose:
groupPolicy: "open"is valid config, not "empty"
DM Not Responding
Check pairing status and allowFrom configuration.
Cron Jobs Not Running
- Confirm Gateway is running
- Check cron expression
- Check logs for trigger confirmation
- Check mute hours settings
Channel Connection Issues
- Run
openclaw status to check status
- Check channel-specific config
- Look for errors in logs
Diagnosis Principles
- Confirm basics first - Don't skip simple checks
- Check logs - Logs usually contain the most direct error info
- Don't over-diagnose - If config is valid, don't suggest "improvements"
- 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
- Run
openclaw statusto check status - Check channel-specific config
- Look for errors in logs
Diagnosis Principles
- Confirm basics first - Don't skip simple checks
- Check logs - Logs usually contain the most direct error info
- Don't over-diagnose - If config is valid, don't suggest "improvements"
- 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/
scripts/
get-diagnostic-info.sh - Get config, status, and logscheck-common-issues.sh - Common issue checkerupdate-knowledge-base.ts - Update knowledge base (requires tsx)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
knowledge-base-index.md - Document index by categorycommon-issues.md - Diagnostic rules for common issues正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。