{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/hz-error-guard",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=hz-error-guard",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "benchmark-worker.ts",
      "control.ts",
      "events.ts",
      "heartbeat.ts"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/hz-error-guard",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "功能",
        "body": "实时监控错误、自动拦截、预防问题"
      },
      {
        "title": "1. 错误分类",
        "body": "致命错误 (立即处理)\n\n内存溢出\n磁盘满\n认证失效\n系统崩溃\n\n严重错误 (快速处理)\n\nAPI 超时\n连接失败\n权限不足\n\n警告 (记录并监控)\n\n速率限制\n临时失败\n资源紧张\n\n信息 (仅记录)\n\n调试日志\n性能指标"
      },
      {
        "title": "2. 错误模式识别",
        "body": "def detect_error_pattern(errors):\n    # 检测重复错误\n    if len(set(errors[-5:])) == 1:\n        return \"repeating_error\"\n    \n    # 检测错误累积\n    if error_rate() > threshold:\n        return \"error_accumulation\"\n    \n    # 检测级联错误\n    if has_cascade(errors):\n        return \"cascade_failure\"\n    \n    return \"isolated_error\""
      },
      {
        "title": "3. 自动拦截规则",
        "body": "IF 同一错误出现 3 次 THEN\n    记录并警告\n    暂停相关操作\n    进入熔断模式\nEND\n\nIF 错误率 > 10% THEN\n    降低操作频率\n    增加重试延迟\n    通知管理员\nEND\n\nIF 致命错误 THEN\n    保存完整上下文\n    执行优雅关闭\n    触发重启\nEND"
      },
      {
        "title": "4. 错误预防",
        "body": "# 执行前验证\nasync def pre_execution_check(command):\n    checks = {\n        \"auth\": verify_token(),\n        \"resources\": check_resources(),\n        \"rate_limit\": check_rate_limit(),\n        \"dependencies\": check_services()\n    }\n    \n    if not all(checks.values()):\n        raise PreExecutionError(\"验证失败\")\n    \n    return True"
      },
      {
        "title": "5. 错误恢复",
        "body": "async def error_recovery(error):\n    strategies = {\n        \"auth_error\": refresh_and_retry,\n        \"timeout_error\": retry_with_backoff,\n        \"rate_limit_error\": wait_and_retry,\n        \"resource_error\": free_resources_and_retry\n    }\n    \n    strategy = strategies.get(error.type, default_retry)\n    return await strategy(error)\n\n🦞 辉仔 - 错误终结者"
      }
    ],
    "body": "error-guard - 错误守卫\n功能\n\n实时监控错误、自动拦截、预防问题\n\n核心机制\n1. 错误分类\n致命错误 (立即处理)\n内存溢出\n磁盘满\n认证失效\n系统崩溃\n严重错误 (快速处理)\nAPI 超时\n连接失败\n权限不足\n警告 (记录并监控)\n速率限制\n临时失败\n资源紧张\n信息 (仅记录)\n调试日志\n性能指标\n2. 错误模式识别\ndef detect_error_pattern(errors):\n    # 检测重复错误\n    if len(set(errors[-5:])) == 1:\n        return \"repeating_error\"\n    \n    # 检测错误累积\n    if error_rate() > threshold:\n        return \"error_accumulation\"\n    \n    # 检测级联错误\n    if has_cascade(errors):\n        return \"cascade_failure\"\n    \n    return \"isolated_error\"\n\n3. 自动拦截规则\nIF 同一错误出现 3 次 THEN\n    记录并警告\n    暂停相关操作\n    进入熔断模式\nEND\n\nIF 错误率 > 10% THEN\n    降低操作频率\n    增加重试延迟\n    通知管理员\nEND\n\nIF 致命错误 THEN\n    保存完整上下文\n    执行优雅关闭\n    触发重启\nEND\n\n4. 错误预防\n# 执行前验证\nasync def pre_execution_check(command):\n    checks = {\n        \"auth\": verify_token(),\n        \"resources\": check_resources(),\n        \"rate_limit\": check_rate_limit(),\n        \"dependencies\": check_services()\n    }\n    \n    if not all(checks.values()):\n        raise PreExecutionError(\"验证失败\")\n    \n    return True\n\n5. 错误恢复\nasync def error_recovery(error):\n    strategies = {\n        \"auth_error\": refresh_and_retry,\n        \"timeout_error\": retry_with_backoff,\n        \"rate_limit_error\": wait_and_retry,\n        \"resource_error\": free_resources_and_retry\n    }\n    \n    strategy = strategies.get(error.type, default_retry)\n    return await strategy(error)\n\n\n🦞 辉仔 - 错误终结者"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/lidekahdjdhdhsjjs-lang/hz-error-guard",
    "publisherUrl": "https://clawhub.ai/lidekahdjdhdhsjjs-lang/hz-error-guard",
    "owner": "lidekahdjdhdhsjjs-lang",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}