{
  "schemaVersion": "1.0",
  "item": {
    "slug": "gateway-auto-fix",
    "name": "Gateway Auto-Fix",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/nwcalvin/gateway-auto-fix",
    "canonicalUrl": "https://clawhub.ai/nwcalvin/gateway-auto-fix",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/gateway-auto-fix",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gateway-auto-fix",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "openclaw-auto-fix.sh",
      "setup.sh"
    ],
    "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/gateway-auto-fix"
    },
    "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/gateway-auto-fix",
    "agentPageUrl": "https://openagent3.xyz/skills/gateway-auto-fix/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gateway-auto-fix/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gateway-auto-fix/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": "Overview",
        "body": "This skill automatically monitors the OpenClaw gateway and fixes it when the RPC probe fails. It uses OpenClaw's built-in cron system for scheduling."
      },
      {
        "title": "What It Does",
        "body": "Checks openclaw gateway status every minute\nDetects \"RPC probe: failed\" in the output\nAutomatically runs:\n\nopenclaw doctor --fix to fix config issues\nopenclaw gateway restart to restart the gateway\n\n\nLogs all actions to /tmp/openclaw-auto-fix.log"
      },
      {
        "title": "Quick Install (Automatic)",
        "body": "npx clawhub install gateway-auto-fix\n\nThat's it! The skill will:\n\n✅ Add OpenClaw cron job (every 1 minute)\n✅ Create the script\n✅ Start monitoring"
      },
      {
        "title": "Manual Install (If ClawHub Not Available)",
        "body": "# 1. Copy the script to workspace\nmkdir -p ~/.openclaw-it/workspace\ncp /path/to/gateway-auto-fix/openclaw-auto-fix.sh ~/.openclaw-it/workspace/\n\n# 2. Make executable\nchmod +x ~/.openclaw-it/workspace/openclaw-auto-fix.sh\n\n# 3. Add OpenClaw cron job\nopenclaw cron add \\\n  --name \"gateway-auto-fix\" \\\n  --every \"1m\" \\\n  --message \"Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh\" \\\n  --no-deliver"
      },
      {
        "title": "Manual Uninstall",
        "body": "# Remove cron job\nopenclaw cron rm gateway-auto-fix\n\n# Remove script\nrm ~/.openclaw-it/workspace/openclaw-auto-fix.sh"
      },
      {
        "title": "Check Cron Status",
        "body": "openclaw cron list\nopenclaw cron status"
      },
      {
        "title": "Check Logs",
        "body": "tail -f /tmp/openclaw-auto-fix.log"
      },
      {
        "title": "Run Manually",
        "body": "~/.openclaw-it/workspace/openclaw-auto-fix.sh\n\n# Or via OpenClaw cron\nopenclaw cron run gateway-auto-fix"
      },
      {
        "title": "Check if cron is running:",
        "body": "openclaw cron status"
      },
      {
        "title": "Check gateway:",
        "body": "openclaw gateway status"
      },
      {
        "title": "Run manually:",
        "body": "openclaw cron run gateway-auto-fix"
      },
      {
        "title": "Files Created",
        "body": "Script: ~/.openclaw-it/workspace/openclaw-auto-fix.sh\nLog: /tmp/openclaw-auto-fix.log\nCron: OpenClaw built-in (every 1 minute)"
      },
      {
        "title": "Change Interval",
        "body": "# Remove old job\nopenclaw cron rm gateway-auto-fix\n\n# Add new job with different interval (e.g., 5 minutes)\nopenclaw cron add \\\n  --name \"gateway-auto-fix\" \\\n  --every \"5m\" \\\n  --message \"Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh\" \\\n  --no-deliver"
      },
      {
        "title": "Complete Manual Setup Commands",
        "body": "# Step 1: Create workspace\nmkdir -p ~/.openclaw-it/workspace\n\n# Step 2: Create the script\ncat > ~/.openclaw-it/workspace/openclaw-auto-fix.sh << 'EOF'\n#!/bin/bash\nLOG_FILE=\"/tmp/openclaw-auto-fix.log\"\necho \"=== $(date) ===\" >> $LOG_FILE\nSTATUS_OUTPUT=$(openclaw gateway status 2>&1)\necho \"$STATUS_OUTPUT\" >> $LOG_FILE\nif echo \"$STATUS_OUTPUT\" | grep -q \"RPC probe: failed\"; then\n    echo \"RPC probe FAILED! Running auto-fix...\" >> $LOG_FILE\n    openclaw doctor --fix 2>&1 >> $LOG_FILE\n    openclaw gateway restart 2>&1 >> $LOG_FILE\n    echo \"Auto-fix completed at $(date)\" >> $LOG_FILE\nelse\n    echo \"Gateway is healthy\" >> $LOG_FILE\nfi\necho \"---\" >> $LOG_FILE\nEOF\n\n# Step 3: Make executable\nchmod +x ~/.openclaw-it/workspace/openclaw-auto-fix.sh\n\n# Step 4: Add OpenClaw cron job\nopenclaw cron add \\\n  --name \"gateway-auto-fix\" \\\n  --every \"1m\" \\\n  --message \"Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh\" \\\n  --no-deliver\n\n# Step 5: Verify\nopenclaw cron list"
      }
    ],
    "body": "Gateway Auto-Fix Skill\nOverview\n\nThis skill automatically monitors the OpenClaw gateway and fixes it when the RPC probe fails. It uses OpenClaw's built-in cron system for scheduling.\n\nWhat It Does\nChecks openclaw gateway status every minute\nDetects \"RPC probe: failed\" in the output\nAutomatically runs:\nopenclaw doctor --fix to fix config issues\nopenclaw gateway restart to restart the gateway\nLogs all actions to /tmp/openclaw-auto-fix.log\nQuick Install (Automatic)\nnpx clawhub install gateway-auto-fix\n\n\nThat's it! The skill will:\n\n✅ Add OpenClaw cron job (every 1 minute)\n✅ Create the script\n✅ Start monitoring\nManual Install (If ClawHub Not Available)\n# 1. Copy the script to workspace\nmkdir -p ~/.openclaw-it/workspace\ncp /path/to/gateway-auto-fix/openclaw-auto-fix.sh ~/.openclaw-it/workspace/\n\n# 2. Make executable\nchmod +x ~/.openclaw-it/workspace/openclaw-auto-fix.sh\n\n# 3. Add OpenClaw cron job\nopenclaw cron add \\\n  --name \"gateway-auto-fix\" \\\n  --every \"1m\" \\\n  --message \"Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh\" \\\n  --no-deliver\n\nManual Uninstall\n# Remove cron job\nopenclaw cron rm gateway-auto-fix\n\n# Remove script\nrm ~/.openclaw-it/workspace/openclaw-auto-fix.sh\n\nUsage\nCheck Cron Status\nopenclaw cron list\nopenclaw cron status\n\nCheck Logs\ntail -f /tmp/openclaw-auto-fix.log\n\nRun Manually\n~/.openclaw-it/workspace/openclaw-auto-fix.sh\n\n# Or via OpenClaw cron\nopenclaw cron run gateway-auto-fix\n\nTroubleshooting\nCheck if cron is running:\nopenclaw cron status\n\nCheck gateway:\nopenclaw gateway status\n\nRun manually:\nopenclaw cron run gateway-auto-fix\n\nFiles Created\nScript: ~/.openclaw-it/workspace/openclaw-auto-fix.sh\nLog: /tmp/openclaw-auto-fix.log\nCron: OpenClaw built-in (every 1 minute)\nConfiguration\nChange Interval\n# Remove old job\nopenclaw cron rm gateway-auto-fix\n\n# Add new job with different interval (e.g., 5 minutes)\nopenclaw cron add \\\n  --name \"gateway-auto-fix\" \\\n  --every \"5m\" \\\n  --message \"Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh\" \\\n  --no-deliver\n\nComplete Manual Setup Commands\n# Step 1: Create workspace\nmkdir -p ~/.openclaw-it/workspace\n\n# Step 2: Create the script\ncat > ~/.openclaw-it/workspace/openclaw-auto-fix.sh << 'EOF'\n#!/bin/bash\nLOG_FILE=\"/tmp/openclaw-auto-fix.log\"\necho \"=== $(date) ===\" >> $LOG_FILE\nSTATUS_OUTPUT=$(openclaw gateway status 2>&1)\necho \"$STATUS_OUTPUT\" >> $LOG_FILE\nif echo \"$STATUS_OUTPUT\" | grep -q \"RPC probe: failed\"; then\n    echo \"RPC probe FAILED! Running auto-fix...\" >> $LOG_FILE\n    openclaw doctor --fix 2>&1 >> $LOG_FILE\n    openclaw gateway restart 2>&1 >> $LOG_FILE\n    echo \"Auto-fix completed at $(date)\" >> $LOG_FILE\nelse\n    echo \"Gateway is healthy\" >> $LOG_FILE\nfi\necho \"---\" >> $LOG_FILE\nEOF\n\n# Step 3: Make executable\nchmod +x ~/.openclaw-it/workspace/openclaw-auto-fix.sh\n\n# Step 4: Add OpenClaw cron job\nopenclaw cron add \\\n  --name \"gateway-auto-fix\" \\\n  --every \"1m\" \\\n  --message \"Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh\" \\\n  --no-deliver\n\n# Step 5: Verify\nopenclaw cron list"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/nwcalvin/gateway-auto-fix",
    "publisherUrl": "https://clawhub.ai/nwcalvin/gateway-auto-fix",
    "owner": "nwcalvin",
    "version": "2.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/gateway-auto-fix",
    "downloadUrl": "https://openagent3.xyz/downloads/gateway-auto-fix",
    "agentUrl": "https://openagent3.xyz/skills/gateway-auto-fix/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gateway-auto-fix/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gateway-auto-fix/agent.md"
  }
}