Agent优化专家
Automated Diagnosis and Repair for 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: Automated Diagnosis and Repair for Agent Execution Issues Full Skill content: https://321skill.com/skills/agent-troubleshooter-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 the automated diagnosis and repair of various execution failures encountered during Agent operation. In real-world development, issues such as Cron job failures, tool invocation errors, workflow interruptions, and performance degradation occur frequently, making manual troubleshooting inefficient and prone to oversight. Through a closed-loop self-healing mechanism, this Skill covers the complete process from detection to repair and learning, helping operations personnel quickly identify root causes and automatically execute fixes.
Usage is straightforward: simply trigger a diagnostic command (e.g., "system diagnosis" or "fix Cron failure") within the Agent environment. The Skill will automatically scan the current environment, listing all Cron jobs, tool invocation statuses, and system health metrics. Based on its built-in decision tree and error classification library, it identifies the problem type, matches the corresponding repair template, executes the fix, automatically verifies the results, and logs the error pattern into a learning log to continuously optimize repair strategies.
It is particularly suitable for teams or individuals who need to maintain Agent stability, especially developers who have deployed multiple Cron jobs and toolchains using OpenClaw or Hermes Agent. Operations engineers, backend developers, and Agent developers can significantly reduce manual troubleshooting time and minimize the impact of system failures on business operations.
It is recommended to deploy this Skill immediately after initializing the Agent environment and to enable daily self-checks in conjunction with a heartbeat mechanism (e.g., HEARTBEAT.md). Note that it primarily focuses on execution issues at the Agent level and is not suitable for business logic errors or data query tasks. Additionally, it requires the environment to provide a scheduled trigger mechanism for automatic operation.
Key Features
Unlike general monitoring and alerting tools (e.g., Prometheus+Grafana), the Agent Optimization Expert not only detects anomalies but also automatically executes repairs (e.g., modifying Cron configurations, restarting services, downgrading toolchains). Moreover, it possesses self-evolution capabilities—after each diagnosis, it automatically learns new error patterns and updates repair templates, truly becoming "smarter with use."
Limitations
Requires the environment to provide a heartbeat or scheduled trigger mechanism (e.g., Cron Job or HEARTBEAT.md) for automatic operation. It is not applicable for troubleshooting business logic issues, Lark content editing, or data query tasks.
FAQ
How do I trigger an automatic diagnosis?
Tell the AI "system diagnosis" or "check system health," and it will automatically perform a comprehensive inspection. You can also configure scheduled tasks (e.g., daily) to run automatically.
Which Agent platforms are supported?
Compatible with both OpenClaw and Hermes Agent environments; it automatically detects the current platform and switches to the corresponding commands.
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-troubleshooter-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-troubleshooter-2/raw/index.md