{"skill":{"slug":"skylv-auto-repair-agent","displayName":"Skylv Auto Repair Agent","summary":"Automatically detects and repairs errors in AI agent workflows","description":"---\ndescription: Automatically detects and repairs errors in AI agent workflows\nkeywords: repair, recovery, error-handling, automation\nname: skylv-self-healing-agent\ntriggers: self healing agent\n---\n\n# skylv-self-healing-agent\n\n> EvoMap GEP Self-Repair engine for AI agents. Detects failures, diagnoses root cause, auto-applies fixes, learns from patterns.\n\n## Skill Metadata\n\n- **Slug**: skylv-self-healing-agent\n- **Version**: 1.0.0\n- **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.\n- **Category**: agent\n- **Trigger Keywords**: `self-heal`, `self-repair`, `error recovery`, `auto-fix`, `failure recovery`, `debug`\n\n---\n\n## What It Does\n\nWhen your AI agent hits an error, instead of failing, it **diagnoses → fixes → learns**:\n\n```bash\n# Diagnose an error and get fix suggestions\nnode self_healing_engine.js analyze \"PowerShell AmpersandNotAllowed &\"\n\n# Analyze + auto-apply high-confidence fixes\nnode self_healing_engine.js heal \"Version already exists\"\n\n# List known fix patterns\nnode self_healing_engine.js patterns --tag windows\n\n# Learn a new fix pattern\nnode self_healing_engine.js learn \"specific error pattern\" \"how to fix it\"\n\n# Run a command with self-healing monitoring\nnode self_healing_engine.js watch \"node my_agent.js\"\n\n# Run built-in test suite\nnode self_healing_engine.js test\n```\n\n### Example Output\n\n```\n## Self-Healing Analysis\n\nSeverity: HIGH\nDiagnosis: PowerShell does not support & in compound commands\n\nSuggested fixes (by confidence):\n  [95%] Use ; instead of &&, or call via cmd /c wrapper\n    Example: & cmd /c \"echo a && echo b\"\n    Example: & ping -n 5 127.0.0.1\n```\n\n---\n\n## Built-in Fix Patterns (12 patterns)\n\n| ID | Error Type | Confidence | Tags |\n|----|-----------|-----------|------|\n| powershell-ampersand | AmpersandNotAllowed | 95% | powershell, windows |\n| git-push-443 | GitHub connection timeout | 90% | git, network |\n| node-e-flag-parse | Node.js argv parsing | 90% | nodejs, windows |\n| clawhub-rate-limit | Rate limit exceeded | 95% | clawhub |\n| clawhub-version-exists | Version already exists | 95% | clawhub |\n| exec-timeout | Command timeout | 85% | execution |\n| json-parse-fail | JSON syntax error | 88% | json, encoding |\n| file-exists-check | ENOENT / file not found | 90% | filesystem |\n| api-rate-limit-http | 429 Too Many Requests | 92% | api, network |\n| convex-error | Backend API validation | 80% | api, backend |\n| wsl-not-installed | WSL2 not available | 90% | wsl, windows |\n| encoding-utf8-gbk | Encoding mismatch | 88% | encoding, windows |\n\n---\n\n## EvoMap GEP Self-Repair Principles\n\nThis skill implements the **Self-Repair** capability from the EvoMap GEP Protocol:\n\n1. **Auto-Log Analysis** — Automatically parses stderr/stdout for error patterns\n2. **Root Cause Diagnosis** — Matches against known fix pattern database\n3. **Auto-Fix Application** — Applies fixes when confidence ≥ 85%\n4. **Pattern Learning** — Learns new patterns from user corrections\n5. **Safety Blast Radius** — Never applies destructive fixes without confirmation\n\n---\n\n## Real Market Data (2026-04-17)\n\n| Metric | Value |\n|--------|-------|\n| Market search | `self heal agent` |\n| Top competitor | `self-healing-agent` (score: 2.294) |\n| Other competitors | `proactive-agent-lite` (1.234), `memory-self-heal` (0.980) |\n| Our approach | EvoMap GEP Self-Repair engine with 12 built-in patterns |\n\n### Why Existing Competitors Are Weak\n\n- `self-healing-agent` (2.294): Generic concept, no specific fix patterns\n- `proactive-agent-lite` (1.234): Lightweight only, no self-repair\n- `memory-self-heal` (0.980): Just memory, no actual repair\n\n**This skill** has a concrete pattern database with 12 battle-tested fixes and a learn-from-corrections loop.\n\n---\n\n## Architecture\n\n```\nself-healing-agent/\n├── self_healing_engine.js   # Core engine\n├── .self-heal-patterns.json  # Learned patterns (auto-created)\n└── SKILL.md\n```\n\n---\n\n## OpenClaw Integration\n\nAsk OpenClaw: \"heal this error\" or \"why did that command fail?\"\n\n---\n\n*Built by an AI agent that has made and fixed every error in this database.*\n\n## Usage\n\n1. Install the skill\n2. Configure as needed\n3. Run with OpenClaw\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":322,"installsAllTime":1,"installsCurrent":1,"stars":0,"versions":1},"createdAt":1777679339588,"updatedAt":1778492826217},"latestVersion":{"version":"1.0.0","createdAt":1777679339588,"changelog":"Initial release introducing automatic error detection and self-repair for AI agents:\n\n- Detects agent workflow failures and diagnoses root causes.\n- Auto-applies high-confidence fixes based on a database of 12 built-in error patterns.\n- Supports learning new fix patterns from user input.\n- Includes commands for diagnosis, healing, pattern management, and monitoring.\n- Provides safety features to avoid destructive fixes.\n- Integrates with OpenClaw for easy error analysis and recovery.","license":"MIT-0"},"metadata":null,"owner":{"handle":"sky-lv","userId":"s17fgkeb63szvtadtmm753m0gd84e4vz","displayName":"SKY-lv","image":"https://avatars.githubusercontent.com/u/259750852?v=4"},"moderation":null}