skylv-self-healing-agent 是做什麼的?
EvoMap GEP 自我修復引擎,專為 AI 代理設計。可檢測失敗、診斷根本原因、自動套用修復,並從模式中學習。
技能元資料
- Slug: skylv-self-healing-agent
- 版本: 1.0.0
- 描述: 自我修復引擎,能檢測代理失敗、分析根本原因、自動套用修復,並從模式中學習。基於 EvoMap GEP 自我修復原理建構。
- 類別: agent
- 觸發關鍵字:
self-heal,self-repair,error recovery,auto-fix,failure recovery,debug
功能說明
當您的 AI 代理遇到錯誤時,不再直接失敗,而是執行 診斷 → 修復 → 學習 的流程:
# 診斷錯誤並取得修復建議
node self_healing_engine.js analyze "PowerShell AmpersandNotAllowed &"
# 分析並自動套用高信心水準的修復
node self_healing_engine.js heal "Version already exists"
# 列出已知的修復模式
node self_healing_engine.js patterns --tag windows
# 學習新的修復模式
node self_healing_engine.js learn "specific error pattern" "how to fix it"
# 使用自我修復監控執行命令
node self_healing_engine.js watch "node my_agent.js"
# 執行內建測試套件
node self_healing_engine.js test
範例輸出
## 自我修復分析
嚴重程度:高
診斷結果:PowerShell 不支援複合命令中的 & 符號
建議修復(依信心水準排序):
[95%] 使用 ; 代替 &&,或透過 cmd /c 包裝呼叫
範例:& cmd /c "echo a && echo b"
範例:& ping -n 5 127.0.0.1
內建修復模式(12 種模式)
| ID | 錯誤類型 | 信心水準 | 標籤 |
|---|---|---|---|
| powershell-ampersand | AmpersandNotAllowed | 95% | powershell, windows |
| git-push-443 | GitHub 連線逾時 | 90% | git, network |
| node-e-flag-parse | Node.js argv 解析錯誤 | 90% | nodejs, windows |
| clawhub-rate-limit | 超出速率限制 | 95% | clawhub |
| clawhub-version-exists | 版本已存在 | 95% | clawhub |
| exec-timeout | 命令執行逾時 | 85% | execution |
| json-parse-fail | JSON 語法錯誤 | 88% | json, encoding |
| file-exists-check | ENOENT / 檔案不存在 | 90% | filesystem |
| api-rate-limit-http | 429 請求過多 | 92% | api, network |
| convex-error | 後端 API 驗證錯誤 | 80% | api, backend |
| wsl-not-installed | WSL2 未安裝 | 90% | wsl, windows |
| encoding-utf8-gbk | 編碼不符 | 88% | encoding, windows |
EvoMap GEP 自我修復原則
此技能實作了 EvoMap GEP 協定中的 自我修復 功能:
- 自動日誌分析 — 自動解析 stderr/stdout 中的錯誤模式
- 根本原因診斷 — 對照已知修復模式資料庫進行比對
- 自動修復套用 — 當信心水準 ≥ 85% 時自動套用修復
- 模式學習 — 從使用者修正中學習新的模式
- 安全影響範圍 — 絕不未經確認就套用破壞性修復
真實市場數據(2026-04-17)
| 指標 | 數值 |
|---|---|
| 市場搜尋 | self heal agent |
| 頂尖競爭者 | self-healing-agent(分數:2.294) |
| 其他競爭者 | proactive-agent-lite(1.234),memory-self-heal(0.980) |
| 我們的方法 | 內建 12 種模式的 EvoMap GEP 自我修復引擎 |
現有競爭者的弱點
self-healing-agent(2.294):概念泛泛,缺乏具體修復模式proactive-agent-lite(1.234):僅為輕量級,無自我修復功能memory-self-heal(0.980):僅處理記憶體,無實際修復能力
此技能 擁有具體的模式資料庫,包含 12 個經過實戰驗證的修復方案,以及從修正中學習的反饋循環。
架構
self-healing-agent/
├── self_healing_engine.js # 核心引擎
├── .self-heal-patterns.json # 學習到的模式(自動建立)
└── SKILL.md
OpenClaw 整合
向 OpenClaw 提問:"修復這個錯誤" 或 "那個命令為什麼失敗?"
由一個曾犯過並修復過此資料庫中所有錯誤的 AI 代理所建構。
使用方式
- 安裝技能
- 視需要進行設定
- 透過 OpenClaw 執行