Token导航 LogoToken导航TokenDH.com
研究检索敏感数据unknown未标认证来源可访问许可证需确认审计未展示

email-diagnose电子邮件诊断

Agent Skill

email-diagnose 用于查找、检索和筛选相关信息,适合在 Local Agent 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,420

周安装

61

下载量

498
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:email-diagnose(电子邮件诊断)
来源仓库:https://claw.163.com
仓库路径:email-diagnose
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

email-diagnose 诊断 OpenClaw 邮件通道运行状态,分析日志生成故障报告。

  • 按优先级顺序检查错误条目,匹配已知问题模式提供解决方案。
  • 支持指定日期和账号过滤,输出 JSON 格式便于自动化处理。
  • 安装前需部署诊断脚本并配置日志输出路径。
  • 注意:verbose 模式包含完整时间线,适合深度排查但体积较大。

SKILL.md

Email Channel Diagnostics

Stage 1: Collect data

Run the diagnostic script against OpenClaw logs:

node scripts/diagnose.mjs --date YYYY-MM-DD [--account id] [--verbose] [--logdir path]

Parameters:

  • --date — Log date (default: today). Format: YYYY-MM-DD
  • --account — Filter to a specific account ID (e.g., default, worker)
  • --verbose — Include full timeline in output
  • --logdir — Log directory (default: /tmp/openclaw)

Stage 2: Analyze report

Read the JSON output and analyze in this priority order:

  1. errors[] — Check each error entry. Match tag and message against the patterns in references/troubleshooting.md.
  2. byTag — High error/warn counts identify the broken subsystem: Common (both transports): IMAP transport: WS transport:

- EMAIL-ACCOUNT → config issues - EMAIL-MONITOR → monitoring/receiving issues - EMAIL-CHANNEL → routing/dispatch issues - EMAIL-A2A → agent filtering issues - EMAIL-PARSER → attachment issues - EMAIL-IMAP → connection/auth issues - EMAIL-SMTP → sending issues - UID-STORE → state tracking issues - EMAIL-WS → WebSocket connection issues - EMAIL-IM → IM protocol issues - EMAIL-TOKEN → token auth issues - EMAIL-SDK → SDK fetch/send issues

  1. warns[] — May indicate developing problems (reconnects, whitelist rejections)
  2. perf — Performance anomalies: IMAP transport: WS transport: Both transports:

- smtpFailCount > 0 → SMTP sending broken - imapReconnectCount > 5 → unstable IMAP connection - wsReconnectCount > 5 → unstable WebSocket connection - tokenFailCount > 0 → token auth broken - sdkFetchFailCount > 0 → SDK fetch broken - imAuthFailCount > 0 → IM authentication broken - emailsRejected / emailsProcessed > 50% → whitelist too strict

  1. timeline (verbose only) — Trace the full event flow for a specific email

Match the issue to a troubleshooting pattern. Read references/troubleshooting.md for the matching pattern number.

Stage 3: Present findings and guide fix

Present the diagnosis to the user:

  1. Summarize what's wrong in plain language (not log tags)
  2. Identify which troubleshooting pattern applies
  3. Walk through fix steps from references/troubleshooting.md
  4. For common fixes, offer to execute (with user confirmation):

- Config field missing → show exact JSON path and field to add - UID store reset → rm ~/.openclaw/email/uid-store/<accountId>.json - Whitelist adjustment → show the allowFrom config to modify - Restart gateway → systemctl --user restart openclaw-gateway

Stage 4: Escalate if unresolved

If the user confirms the issue is not resolved after fix attempts:

  1. Ask: "Would you like to package the diagnostic logs and send them to claw.feedback@claw.163.com for the support team?"
  2. Warn: "The log package may contain email addresses and account IDs. Review before sending."
  3. If user agrees — try mail-cli first: # Package logs TIMESTAMP=$(date +%Y%m%d-%H%M%S) tar czf /tmp/email-diag-${TIMESTAMP}.tar.gz \ /tmp/openclaw/openclaw-$(date +%Y-%m-%d).log # Send via mail-cli (use absolute paths for --attach) mail-cli compose send \ --to "claw.feedback@claw.163.com" \ --subject "[Email-Diag] <brief issue summary>" \ --body "<diagnosis summary and steps tried>" \ --attach /tmp/email-diag-${TIMESTAMP}.tar.gz
  4. If mail-cli not available or send fails:

- Tell user the tar.gz path: /tmp/email-diag-<timestamp>.tar.gz - Ask them to manually email it to claw.feedback@claw.163.com - Include the diagnosis summary in the email body

Quick reference: log tags

TagSubsystemKey eventsTransport
EMAIL-ACCOUNTConfig resolutionAccount resolved, missing fieldsBoth
EMAIL-MONITOREmail monitoringStarting monitoring, new email, processingBoth
EMAIL-CHANNELMessage dispatchReceived email, route resolved, reply sentBoth
EMAIL-A2AAgent detectionAgent detected, filtered, turn exceededBoth
EMAIL-PARSEREmail parsingAttachment filename rejected, save failedBoth
EMAIL-IMAPIMAP connectionConnected, disconnected, markSeenIMAP only
EMAIL-SMTPEmail sendingSend started/succeeded/failed, durationBoth
UID-STOREState trackingUID read/write, directory errorsIMAP only
EMAIL-WSWebSocket connectionConnected, disconnected, auth failedWS only
EMAIL-IMIM protocolCONNECT, RECV, encryption, heartbeatWS only
EMAIL-TOKENToken managementFetching, success, failed, expiredWS only
EMAIL-SDKSDK mail fetchFetching, parsed, attachment downloadWS only

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

83.07%
按下载量换算414

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills