Agent优化专家
A self-healing engine for automatic diagnosis and repair of Agent execution issues
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 automatic diagnosis and repair of Agent execution issues Full Skill content: https://321skill.com/skills/agent-self-healing-2/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 pain points in the daily operation of AI Agents, such as recurring Cron task failures, tool invocation errors, workflow interruptions, and performance degradation. In practice, developers and DevOps engineers often need to manually check logs, switch platform commands, and consult repair templates, which is inefficient and prone to oversight. This Skill automates the diagnosis → repair → verification → learning loop, significantly reducing Agent maintenance overhead.
Usage is straightforward: simply describe the issue in natural language, e.g., "Cron task failed" or "Check system health." The Skill will automatically execute the diagnostic process: first listing all Cron tasks or tool invocation statuses, pinpointing the cause of failure, applying minimal changes based on built-in repair templates (references/fix-templates.md), and finally verifying the repair results. It is compatible with both OpenClaw and Hermes Agent environments, automatically detecting the current platform and switching to the corresponding commands without manual configuration.
It is ideal for DevOps engineers, Agent developers, and full-stack developers who frequently manage Agent instances. Particularly for teams already using OpenClaw or Hermes Agent to build automated workflows, this Skill can facilitate daily inspections, self-healing repairs, and continuous optimization. It is also suitable for individual developers maintaining the stable operation of personal Agents.
It is recommended to prioritize using this Skill for diagnosis whenever an Agent anomaly occurs, rather than making manual modifications directly. Note that it primarily targets technical issues at the Agent execution level and is not suitable for business logic troubleshooting, Lark content editing, or data query tasks. The Skill includes a tiered security mechanism (L0-L3) for operations; actions involving modifications to core configurations or data deletion will require user confirmation to prevent unintended changes.
Key Features
Unlike manual troubleshooting scripts or single-platform repair tools, this Skill features built-in continuous self-evolution—each repair automatically logs error patterns to `learnings/error-log.md` and periodically updates `fix-templates.md`, enabling error-driven knowledge accumulation. Additionally, it natively supports both OpenClaw and Hermes environments, automatically switching commands to avoid platform fragmentation.
Limitations
Requires an OpenClaw or Hermes Agent environment and depends on the health status of local services (e.g., Firecrawl, SearXNG, Crawl4AI). If these services are not running, some diagnostic functions will be unavailable.
FAQ
Can this Skill fix all Cron failure issues?
It covers common causes: not enabled, expression errors, timeouts, insufficient permissions, dependency service unavailability, etc. For complex business logic errors (e.g., internal script exceptions), it will automatically log the error and recommend manual analysis.
Is additional configuration required to use it?
Ensure that OpenClaw or Hermes Agent is installed in the environment and that basic services (e.g., search, web crawling) are configured. For first-time use, it is recommended to run a system health inspection to confirm all dependency services are reachable.
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-2/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-self-healing-2/raw/index.md