# Send Huizai Error Guard to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "hz-error-guard",
    "name": "Huizai Error Guard",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/lidekahdjdhdhsjjs-lang/hz-error-guard",
    "canonicalUrl": "https://clawhub.ai/lidekahdjdhdhsjjs-lang/hz-error-guard",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/hz-error-guard",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=hz-error-guard",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "benchmark-worker.ts",
      "control.ts",
      "events.ts",
      "heartbeat.ts"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "hz-error-guard",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T21:33:38.673Z",
      "expiresAt": "2026-05-08T21:33:38.673Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=hz-error-guard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=hz-error-guard",
        "contentDisposition": "attachment; filename=\"hz-error-guard-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "hz-error-guard"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/hz-error-guard"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/hz-error-guard",
    "downloadUrl": "https://openagent3.xyz/downloads/hz-error-guard",
    "agentUrl": "https://openagent3.xyz/skills/hz-error-guard/agent",
    "manifestUrl": "https://openagent3.xyz/skills/hz-error-guard/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/hz-error-guard/agent.md"
  }
}
```
## Documentation

### 功能

实时监控错误、自动拦截、预防问题

### 1. 错误分类

致命错误 (立即处理)

内存溢出
磁盘满
认证失效
系统崩溃

严重错误 (快速处理)

API 超时
连接失败
权限不足

警告 (记录并监控)

速率限制
临时失败
资源紧张

信息 (仅记录)

调试日志
性能指标

### 2. 错误模式识别

def detect_error_pattern(errors):
    # 检测重复错误
    if len(set(errors[-5:])) == 1:
        return "repeating_error"
    
    # 检测错误累积
    if error_rate() > threshold:
        return "error_accumulation"
    
    # 检测级联错误
    if has_cascade(errors):
        return "cascade_failure"
    
    return "isolated_error"

### 3. 自动拦截规则

IF 同一错误出现 3 次 THEN
    记录并警告
    暂停相关操作
    进入熔断模式
END

IF 错误率 > 10% THEN
    降低操作频率
    增加重试延迟
    通知管理员
END

IF 致命错误 THEN
    保存完整上下文
    执行优雅关闭
    触发重启
END

### 4. 错误预防

# 执行前验证
async def pre_execution_check(command):
    checks = {
        "auth": verify_token(),
        "resources": check_resources(),
        "rate_limit": check_rate_limit(),
        "dependencies": check_services()
    }
    
    if not all(checks.values()):
        raise PreExecutionError("验证失败")
    
    return True

### 5. 错误恢复

async def error_recovery(error):
    strategies = {
        "auth_error": refresh_and_retry,
        "timeout_error": retry_with_backoff,
        "rate_limit_error": wait_and_retry,
        "resource_error": free_resources_and_retry
    }
    
    strategy = strategies.get(error.type, default_retry)
    return await strategy(error)

🦞 辉仔 - 错误终结者
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lidekahdjdhdhsjjs-lang
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T21:33:38.673Z
- Expires at: 2026-05-08T21:33:38.673Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/hz-error-guard)
- [Send to Agent page](https://openagent3.xyz/skills/hz-error-guard/agent)
- [JSON manifest](https://openagent3.xyz/skills/hz-error-guard/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/hz-error-guard/agent.md)
- [Download page](https://openagent3.xyz/downloads/hz-error-guard)