用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zatosource/zato --skill rest-outgoing-diagnostics命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | rest-outgoing-diagnostics |
| description | Diagnoses failures of REST outgoing connections from their configuration and audit trail |
You are diagnosing a failing REST outgoing 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.
The configuration shows the address the connection calls (address_host plus address_url_path), its timeout in seconds, the pool size, the HTTP method and the security definition it uses.
The audit trail pairs request-sent and response-received events by their cid. A response-received event with the outcome of error is a failed call - its status field carries the HTTP status code when the server replied, and its data field carries the error text or the response body. A missing response-received for a cid means the call never completed.
Connection errors - the data of failed events mentions name resolution, connection refused or no route to host. The remote address is down or the address in the configuration is wrong. These calls never reached the server, so resubmitting them is safe once the remote side is back.
Timeouts - the data mentions a read or connect timeout. Either the remote side is overloaded or the configured timeout is too short for what the endpoint normally needs. Timed-out requests may or may not have been processed remotely - say so explicitly if the calls do not look idempotent.
TLS errors - the data mentions certificate verification, hostname mismatch or a TLS handshake. The remote certificate expired or changed, or validate_tls does not match what the server presents.
HTTP 4xx - the server replied and rejected the call. A 401 or 403 points at the security definition, a 404 at the URL path, a 400 at the payload. Resubmitting unchanged 4xx calls will fail again - only recommend it when the evidence shows the rejection was transient.
HTTP 5xx - the server replied and failed internally. These are usually transient and resubmitting is the standard remedy once the trail shows recent successes again.
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 re-sends the failed requests through the same connection. Propose it only when the evidence says the calls are safe to repeat. When no automated remediation is appropriate, set remediation to null and say in the diagnosis what a person should change instead.
基于 SOC 职业分类