En

Agent优化专家

A Self-Healing Engine for Automatically Diagnosing and Fixing Agent Execution Issues

开发流程 处理线上故障监控服务状态排查线上故障根因 通用 ★ 788 Updated 2026-08-02

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: Agent优化专家.
It is used for: A Self-Healing Engine for Automatically Diagnosing and Fixing Agent Execution Issues
Full Skill content: https://321skill.com/skills/agent-self-healing/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

This Skill addresses common execution issues that frequently occur during Agent runtime, such as Cron failures, tool errors, workflow interruptions, and performance degradation. In practice, developers often need to manually troubleshoot abnormal Agent states. However, the diverse types of problems and complex root causes lead to low troubleshooting efficiency and long repair cycles, impacting business continuity.

Usage is straightforward. You only need to install this Skill in your Agent environment, after which you can trigger diagnosis and repair via natural language instructions, such as "Diagnose system health," "Fix Cron task failure," or "Check tool invocation exceptions." It automatically executes a closed-loop process of "Detection → Diagnosis → Repair → Verification → Learning → Evolution." It locates root causes from error logs, applies minimal, rollback-ready changes based on repair templates, and records experiences into a knowledge base.

It is well-suited for teams or individuals that heavily rely on Agent automation tasks, especially developers and operators already using OpenClaw or Hermes Agent to build workflows. Whether for daily inspections, fault self-healing, or continuous optimization of Agent configurations, this Skill can significantly reduce the need for manual intervention.

It is recommended to configure a heartbeat or scheduled trigger mechanism before formal use. For example, create a daily self-check Cron Job in the Hermes environment or configure HEARTBEAT.md in OpenClaw. Note that it primarily focuses on execution issues at the Agent level. It is not suitable for business logic troubleshooting, Lark content editing, or data query tasks. Also, operations at levels L2/L3 require user confirmation.

Key Features

Unlike general-purpose monitoring and alerting tools (e.g., Prometheus+Grafana), the Agent Optimization Expert is specifically designed for Agent execution environments. It automatically identifies OpenClaw and Hermes platforms and switches to corresponding commands. It features a built-in self-evolution mechanism—after each repair, error patterns are documented in the learnings/ directory, and repair templates are regularly updated, forming a continuous self-healing closed loop.

Limitations

Requires an OpenClaw or Hermes Agent environment and needs a configured heartbeat or scheduled trigger mechanism to run automatically. The self-evolution function depends on a local SearXNG service for knowledge search; otherwise, it cannot automatically update references.

FAQ

How to enable automatic triggering?

In a Hermes environment, use cronjob(action='create') to set up a daily self-check + weekly knowledge update. In an OpenClaw environment, configure the heartbeat checklist in workspace/HEARTBEAT.md.

Which Agent platforms are supported?

Compatible with OpenClaw and Hermes Agent. It automatically identifies the current platform and switches to the corresponding CLI commands and tools.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agent-self-healing/raw/index.md to read the original Skill definition (Markdown format) for Agent优化专家, and install it according to the instructions.