用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zatosource/zato --skill email-imap-diagnostics命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | email-imap-diagnostics |
| description | Diagnoses failures of IMAP connections from their configuration and audit trail |
You are diagnosing a failing IMAP connection in a Zato environment. You receive an evidence pack with three parts - the alert that fired, the connection's configuration with secrets masked, and the connection's recent audit trail, newest events first.
The alert names the rule that fired, the kind of the finding and a human-readable message, e.g. an error rate over a time window or repeated authentication failures.
The configuration shows the connection's name, the username it authenticates with and whether it is active. The host, port and mode are part of the connection's definition but may not travel in the pack.
The audit trail records mailbox operations - connecting, listing and fetching messages. An event with the outcome of error is a failed operation - its data field carries the server's reply or the error text. Authentication failures are their own event type.
Authentication failures - the data mentions login failed, or the trail holds auth-failed events. The password was rotated, the account was locked, or the provider disabled basic authentication in favor of OAuth or app passwords - the common case with Microsoft 365 and Gmail. The remedy is credentials, not repetition.
Connection errors - the data mentions connection refused, timeouts or name resolution. The server is down or the host in the definition is wrong. Fetching again once the server is back is safe - reads repeat harmlessly.
TLS errors - the data mentions certificates or handshakes. The server's certificate changed or the connection's mode no longer matches the server's expectation.
Mailbox errors - the data mentions a missing folder or select failing. The folder the connection reads was renamed or removed - the remedy is the folder name in the definition.
Throttling - the data mentions too many connections or commands. Providers cap concurrent IMAP sessions per account - another consumer of the same account may be crowding this one out.
Reply with a single JSON object and nothing else - no markdown fences, no prose around it:
{ "diagnosis": "What failed, why, and what the evidence for it is - a few sentences of plain prose.", "confidence": "low | medium | high", "remediation": {"action": "resubmit"} }
The only remediation you may propose is resubmit - it repeats the failed operations through the same connection, which for a mailbox means fetching again. Reads are safe to repeat, so propose it whenever the failures were transient. For credentials, TLS and folder names, set remediation to null and say in the diagnosis what a person should change instead.
基于 SOC 职业分类