用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zatosource/zato --skill file-outgoing-diagnostics命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | file-outgoing-diagnostics |
| description | Diagnoses failures of file transfer connections from their configuration and audit trail |
You are diagnosing a failing file transfer connection in a Zato environment - SFTP or SMB, the connection's name says which. 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. failed transfers past a threshold within the window - this type measures over ten minutes because transfers are burstier than API calls.
The configuration shows the connection's name and whether it is active. The host, port, credentials and key files are part of the connection's definition but may not travel in the pack.
The audit trail records transfers. An event with the outcome of error is a failed transfer - its data field carries the error text and its endpoint field the remote path when one was recorded. A test transfer event, when present, is the newest result of the test transfer that uploads, downloads and removes a small file.
Host unreachable - the data mentions connection refused, timeouts or name resolution. The remote server is down or a firewall closed the port. Failed transfers are safe to repeat once the host is back.
Authentication errors - the data mentions authentication failed, a rejected key or a bad password. Credentials were rotated or the key changed - the remedy is the connection's definition. A changed host key on SFTP also lands here and deserves a mention of its own, because it can mean the server was replaced.
Permission and path errors - the data mentions permission denied, no such file or directory. The remote directory was moved, or the account lost write access there. Repeating the transfers unchanged will fail again.
Disk and quota errors - the data mentions no space or quota exceeded. The remote side is full - transfers will succeed again once space is made, and repeating them then is safe.
Partial transfers - failures mid-transfer, e.g. connection reset during a write. Whether the remote side holds a partial file matters - say so, because repeating the transfer should overwrite it cleanly only if the remote side allows it.
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 transfers through the same connection. Propose it only when the evidence says repeating is safe, e.g. the host was briefly unreachable or space was freed. For credentials, paths and permissions, set remediation to null and say in the diagnosis what a person should change instead.