Agent优化专家
Automatically diagnose and fix Agent execution issues, enabling a self-healing closed loop.
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: Automatically diagnose and fix Agent execution issues, enabling a self-healing closed loop. Full Skill content: https://321skill.com/skills/agent-diagnosis-repair/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 the pain points of frequent execution issues in Agents during actual operation, such as Cron job failures, tool invocation errors, workflow interruptions, and performance degradation. Whether an agent's background scheduled task crashes or there are repeated timeouts when calling external APIs, there is a lack of an automated diagnostic and repair mechanism, forcing operations personnel to manually troubleshoot and repeat tasks.
Usage is straightforward: simply load this Skill in your Agent environment, and you can trigger the diagnostic process via natural language commands. It automatically executes a closed loop of detection → diagnosis → repair → verification → learning → evolution: first scanning system status and error logs to identify the root cause, then applying minimal changes based on built-in repair templates, and finally verifying the repair results and storing new error patterns in the knowledge base. It supports both OpenClaw and Hermes environments, automatically detecting the current platform and switching to the corresponding commands without manual adaptation.
It is ideal for teams or individuals who need to run Agent automation tasks long-term, especially those who have deployed Cron scheduled tasks, rely on multiple tool APIs, or operate in scenarios involving sub-agent collaboration. For Agent developers and operations engineers, it significantly reduces the time spent handling online failures caused by Agent instability, enabling Agents with self-healing capabilities.
We recommend using this tool uniformly when configuring Agent heartbeat or scheduled self-check mechanisms to achieve 7×24-hour automated monitoring. Note that it primarily focuses on technical issues at the Agent execution level and is not suitable for business logic troubleshooting, data querying, or content editing tasks. Additionally, operation tiering restricts L2 and above operations to require user confirmation, ensuring core configurations are not accidentally modified.
Key Features
Unlike general monitoring tools (e.g., Prometheus+Grafana), Agent Optimization Expert not only detects anomalies but also automatically performs repair operations and records error patterns, forming a self-healing closed loop. It also features built-in dual-environment adaptation (OpenClaw and Hermes), eliminating the need for manual command switching.
Limitations
Requires an OpenClaw or Hermes Agent environment to run, and needs a configured heartbeat or scheduled trigger mechanism to enable automated monitoring. Repair operations are subject to tiering restrictions, with L2 and above operations requiring user confirmation.
FAQ
How do I trigger automatic diagnosis?
You can directly tell the AI 'Help me diagnose the cause of the Cron failure' or 'Check system health,' and the Skill will automatically execute the detection process. You can also configure scheduled tasks (e.g., daily self-checks) to trigger it.
Does it support custom repair rules?
Yes. After each repair, the Skill writes new error patterns and learning records to `learnings/error-log.md` and automatically updates `fix-templates.md`. Therefore, you can extend repair rules by modifying these files.
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-diagnosis-repair/raw/index.md to read the original Skill definition (Markdown format) for Agent优化专家, and install it according to the instructions.
Raw Markdown URL for AI: /skills/agent-diagnosis-repair/raw/index.md