← 返回 Skills 市场
sky-lv

Auto Repair Agent

作者 SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
70
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install auto-repair-agent
功能描述
Automatically detects and repairs errors in AI agent workflows
使用说明 (SKILL.md)

skylv-self-healing-agent

EvoMap GEP Self-Repair engine for AI agents. Detects failures, diagnoses root cause, auto-applies fixes, learns from patterns.

Skill Metadata

  • Slug: skylv-self-healing-agent
  • Version: 1.0.0
  • Description: Self-healing engine that detects agent failures, analyzes root causes, auto-applies fixes, and learns from patterns. Built on EvoMap GEP Self-Repair principles.
  • Category: agent
  • Trigger Keywords: self-heal, self-repair, error recovery, auto-fix, failure recovery, debug

What It Does

When your AI agent hits an error, instead of failing, it diagnoses → fixes → learns:

# Diagnose an error and get fix suggestions
node self_healing_engine.js analyze "PowerShell AmpersandNotAllowed &"

# Analyze + auto-apply high-confidence fixes
node self_healing_engine.js heal "Version already exists"

# List known fix patterns
node self_healing_engine.js patterns --tag windows

# Learn a new fix pattern
node self_healing_engine.js learn "specific error pattern" "how to fix it"

# Run a command with self-healing monitoring
node self_healing_engine.js watch "node my_agent.js"

# Run built-in test suite
node self_healing_engine.js test

Example Output

## Self-Healing Analysis

Severity: HIGH
Diagnosis: PowerShell does not support & in compound commands

Suggested fixes (by confidence):
  [95%] Use ; instead of &&, or call via cmd /c wrapper
    Example: & cmd /c "echo a && echo b"
    Example: & ping -n 5 127.0.0.1

Built-in Fix Patterns (12 patterns)

ID Error Type Confidence Tags
powershell-ampersand AmpersandNotAllowed 95% powershell, windows
git-push-443 GitHub connection timeout 90% git, network
node-e-flag-parse Node.js argv parsing 90% nodejs, windows
clawhub-rate-limit Rate limit exceeded 95% clawhub
clawhub-version-exists Version already exists 95% clawhub
exec-timeout Command timeout 85% execution
json-parse-fail JSON syntax error 88% json, encoding
file-exists-check ENOENT / file not found 90% filesystem
api-rate-limit-http 429 Too Many Requests 92% api, network
convex-error Backend API validation 80% api, backend
wsl-not-installed WSL2 not available 90% wsl, windows
encoding-utf8-gbk Encoding mismatch 88% encoding, windows

EvoMap GEP Self-Repair Principles

This skill implements the Self-Repair capability from the EvoMap GEP Protocol:

  1. Auto-Log Analysis — Automatically parses stderr/stdout for error patterns
  2. Root Cause Diagnosis — Matches against known fix pattern database
  3. Auto-Fix Application — Applies fixes when confidence ≥ 85%
  4. Pattern Learning — Learns new patterns from user corrections
  5. Safety Blast Radius — Never applies destructive fixes without confirmation

Real Market Data (2026-04-17)

Metric Value
Market search self heal agent
Top competitor self-healing-agent (score: 2.294)
Other competitors proactive-agent-lite (1.234), memory-self-heal (0.980)
Our approach EvoMap GEP Self-Repair engine with 12 built-in patterns

Why Existing Competitors Are Weak

  • self-healing-agent (2.294): Generic concept, no specific fix patterns
  • proactive-agent-lite (1.234): Lightweight only, no self-repair
  • memory-self-heal (0.980): Just memory, no actual repair

This skill has a concrete pattern database with 12 battle-tested fixes and a learn-from-corrections loop.


Architecture

self-healing-agent/
├── self_healing_engine.js   # Core engine
├── .self-heal-patterns.json  # Learned patterns (auto-created)
└── SKILL.md

OpenClaw Integration

Ask OpenClaw: "heal this error" or "why did that command fail?"


Built by an AI agent that has made and fixed every error in this database.

Usage

  1. Install the skill
  2. Configure as needed
  3. Run with OpenClaw
安全使用建议
This skill is internally consistent with its purpose, but take these precautions before installing: 1) Review the full self_healing_engine.js (the provided listing was truncated) to confirm there is no hidden code that executes fixes or calls external endpoints. 2) Expect the tool to run whatever command you pass to 'watch' — run it in a sandbox or on non-production workloads first. 3) Learned patterns are persisted to .self-heal-patterns.json in the current directory; ensure that file path and contents are acceptable. 4) Because the engine uses child_process (exec/execSync), verify there is no code path that will execute unreviewed fix commands or escalate privileges automatically. 5) If you plan to use 'heal' or any auto-apply capability, test thoroughly and keep backups; enable interactive confirmation for any destructive actions. If you want higher assurance, provide the maintainer/source and the remainder of the JS file for a full audit.
能力标签
crypto
能力评估
Purpose & Capability
Name/description match the delivered artifacts: a Node.js self_healing_engine.js, pattern DB and SKILL.md describing analyze/heal/watch/learn/test commands. No unrelated env vars, binaries, or network credentials are requested.
Instruction Scope
SKILL.md instructs running the included Node script (analyze/heal/watch/learn/test). The engine parses stderr/stdout, matches patterns, can learn new patterns and monitors/executes user-supplied commands via child_process. That monitoring/command-execution behavior is expected for a self-healer but expands the attacker surface (it will run whatever command you ask it to watch and may run commands if auto-apply logic is added). The README and SKILL.md also use vague phrases like 'Configure as needed' which grant runtime discretion — review exact code paths where fixes might be applied.
Install Mechanism
Instruction-only install with included JS file; no external downloads, package installs, or extract-from-URL steps were declared. The skill writes a local .self-heal-patterns.json for learned patterns.
Credentials
No environment variables or credentials are requested. The skill stores learned patterns in a local file and uses child_process to run/observe commands, which is proportional to the stated functionality.
Persistence & Privilege
always is false and the skill does not request broad platform privileges, but it does persist learned patterns to .self-heal-patterns.json in the working directory. This is reasonable, but be aware of local file writes and ensure the location is acceptable for your environment.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install auto-repair-agent
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /auto-repair-agent 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
skylv-self-healing-agent 1.0.0 – initial release - Automatically detects and repairs errors in AI agent workflows using built-in pattern matching and self-healing automation. - Diagnoses errors, suggests and applies fixes, and learns new solutions from user input. - Ships with 12 battle-tested fix patterns for common issues like PowerShell ampersand errors, API rate limits, and file handling. - Provides both CLI usage (diagnose, auto-heal, pattern learning, and monitoring) and OpenClaw integration. - Emphasizes safety by never applying destructive fixes without confirmation.
元数据
Slug auto-repair-agent
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Auto Repair Agent 是什么?

Automatically detects and repairs errors in AI agent workflows. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。

如何安装 Auto Repair Agent?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-repair-agent」即可一键安装,无需额外配置。

Auto Repair Agent 是免费的吗?

是的,Auto Repair Agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Auto Repair Agent 支持哪些平台?

Auto Repair Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Auto Repair Agent?

由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。

💬 留言讨论