# Send Gateway Auto-Fix 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": "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": {
    "downloadUrl": "/downloads/gateway-auto-fix",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gateway-auto-fix",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "openclaw-auto-fix.sh",
      "setup.sh"
    ],
    "downloadMode": "redirect",
    "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Overview

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.

### What It Does

Checks openclaw gateway status every minute
Detects "RPC probe: failed" in the output
Automatically runs:

openclaw doctor --fix to fix config issues
openclaw gateway restart to restart the gateway


Logs all actions to /tmp/openclaw-auto-fix.log

### Quick Install (Automatic)

npx clawhub install gateway-auto-fix

That's it! The skill will:

✅ Add OpenClaw cron job (every 1 minute)
✅ Create the script
✅ Start monitoring

### Manual Install (If ClawHub Not Available)

# 1. Copy the script to workspace
mkdir -p ~/.openclaw-it/workspace
cp /path/to/gateway-auto-fix/openclaw-auto-fix.sh ~/.openclaw-it/workspace/

# 2. Make executable
chmod +x ~/.openclaw-it/workspace/openclaw-auto-fix.sh

# 3. Add OpenClaw cron job
openclaw cron add \\
  --name "gateway-auto-fix" \\
  --every "1m" \\
  --message "Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh" \\
  --no-deliver

### Manual Uninstall

# Remove cron job
openclaw cron rm gateway-auto-fix

# Remove script
rm ~/.openclaw-it/workspace/openclaw-auto-fix.sh

### Check Cron Status

openclaw cron list
openclaw cron status

### Check Logs

tail -f /tmp/openclaw-auto-fix.log

### Run Manually

~/.openclaw-it/workspace/openclaw-auto-fix.sh

# Or via OpenClaw cron
openclaw cron run gateway-auto-fix

### Check if cron is running:

openclaw cron status

### Check gateway:

openclaw gateway status

### Run manually:

openclaw cron run gateway-auto-fix

### Files Created

Script: ~/.openclaw-it/workspace/openclaw-auto-fix.sh
Log: /tmp/openclaw-auto-fix.log
Cron: OpenClaw built-in (every 1 minute)

### Change Interval

# Remove old job
openclaw cron rm gateway-auto-fix

# Add new job with different interval (e.g., 5 minutes)
openclaw cron add \\
  --name "gateway-auto-fix" \\
  --every "5m" \\
  --message "Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh" \\
  --no-deliver

### Complete Manual Setup Commands

# Step 1: Create workspace
mkdir -p ~/.openclaw-it/workspace

# Step 2: Create the script
cat > ~/.openclaw-it/workspace/openclaw-auto-fix.sh << 'EOF'
#!/bin/bash
LOG_FILE="/tmp/openclaw-auto-fix.log"
echo "=== $(date) ===" >> $LOG_FILE
STATUS_OUTPUT=$(openclaw gateway status 2>&1)
echo "$STATUS_OUTPUT" >> $LOG_FILE
if echo "$STATUS_OUTPUT" | grep -q "RPC probe: failed"; then
    echo "RPC probe FAILED! Running auto-fix..." >> $LOG_FILE
    openclaw doctor --fix 2>&1 >> $LOG_FILE
    openclaw gateway restart 2>&1 >> $LOG_FILE
    echo "Auto-fix completed at $(date)" >> $LOG_FILE
else
    echo "Gateway is healthy" >> $LOG_FILE
fi
echo "---" >> $LOG_FILE
EOF

# Step 3: Make executable
chmod +x ~/.openclaw-it/workspace/openclaw-auto-fix.sh

# Step 4: Add OpenClaw cron job
openclaw cron add \\
  --name "gateway-auto-fix" \\
  --every "1m" \\
  --message "Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh" \\
  --no-deliver

# Step 5: Verify
openclaw cron list
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: nwcalvin
- Version: 2.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/gateway-auto-fix)
- [Send to Agent page](https://openagent3.xyz/skills/gateway-auto-fix/agent)
- [JSON manifest](https://openagent3.xyz/skills/gateway-auto-fix/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/gateway-auto-fix/agent.md)
- [Download page](https://openagent3.xyz/downloads/gateway-auto-fix)