gateway-rescue

OpenClaw Gateway 看门狗,纯 systemd/launchd 原生管理。崩溃自动重启,连续失败3次停止等待人工介入。 支持:install(安装)、uninstall(卸载)、status(状态)、test(故障测试)。

3,891 stars

Best use case

gateway-rescue is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

OpenClaw Gateway 看门狗,纯 systemd/launchd 原生管理。崩溃自动重启,连续失败3次停止等待人工介入。 支持:install(安装)、uninstall(卸载)、status(状态)、test(故障测试)。

Teams using gateway-rescue should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/gateway-rescue/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aqbjqtd/gateway-rescue/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/gateway-rescue/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How gateway-rescue Compares

Feature / Agentgateway-rescueStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

OpenClaw Gateway 看门狗,纯 systemd/launchd 原生管理。崩溃自动重启,连续失败3次停止等待人工介入。 支持:install(安装)、uninstall(卸载)、status(状态)、test(故障测试)。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# gateway-rescue

OpenClaw Gateway 看门狗,纯 systemd/launchd 原生管理,零自定义守护脚本。

## 一句话

用系统原生服务管理器守护 OpenClaw Gateway 进程,崩溃自动重启,失败3次后停止等待人工介入。

## 核心要点

1. **Linux/WSL2** → systemd service(`Restart=on-failure`,失败 3 次后停止,需人工介入)
2. **macOS** → launchd plist + 轻量 wrapper(计数 3 次后停止,需人工介入)
3. **极简实现** → Linux 零 wrapper,macOS 仅一个 20 行计数脚本
4. **四个操作** → install / uninstall / status / test

## 使用方法

```bash
# 安装看门狗
bash ~/.openclaw/workspace/skills/gateway-rescue/scripts/install.sh

# 卸载看门狗
bash ~/.openclaw/workspace/skills/gateway-rescue/scripts/uninstall.sh

# 查看状态
bash ~/.openclaw/workspace/skills/gateway-rescue/scripts/status.sh

# 测试(停止 gateway,等待自动恢复)
bash ~/.openclaw/workspace/skills/gateway-rescue/scripts/test.sh
```

## 行为说明

| 平台 | 服务管理器 | 失败后 | 失败限制 |
|------|-----------|--------|----------|
| Linux/WSL2 | systemd | 自动重启 | 5 分钟内失败 3 次后停止,需人工介入 |
| macOS | launchd | 自动重启 | 连续失败 3 次后停止,需人工介入 |

## 文件结构

```
gateway-rescue/
├── SKILL.md              # 本文件
├── scripts/
│   ├── install.sh        # 自动检测平台并安装
│   ├── uninstall.sh      # 卸载服务
│   ├── status.sh         # 查看状态和日志
│   ├── test.sh           # 测试自动恢复
│   └── launchd-wrapper.sh # macOS 失败计数(3次停止)
└── units/
    ├── openclaw-gateway.service   # systemd 模板
    └── com.openclaw.gateway.plist # launchd 模板
```

Related Skills

ai-gateway

3891
from openclaw/skills

Access 340+ AI models through the Agnic AI Gateway. Use when the user wants to chat with an AI model, generate images with AI, list available models, delegate a task to another LLM, or get a second opinion. Covers phrases like "ask GPT", "use Claude", "generate an image", "list AI models", "chat with AI", "call a model", "what models are available".

Authensor Gateway

3891
from openclaw/skills

Fail-safe policy gate for OpenClaw marketplace skills. Intercepts tool calls before execution and checks them against your Authensor policy. Low-risk actions run automatically. High-risk actions require your approval. Dangerous actions are blocked. Only action metadata is sent to the control plane — never your files, API keys, or conversation content.

gateway-safety

3891
from openclaw/skills

Safely update OpenClaw gateway configuration (openclaw.json) with automatic validation, backup, and 30-second health-check rollback. Use this skill whenever an agent needs to modify gateway settings, ports, provider credentials, or network bindings to ensure the session is not permanently lost due to a bad configuration.

windows-healing-gateway

3891
from openclaw/skills

OpenClaw Gateway Self-Healing System for Windows

crebee-social-media-gateway

3891
from openclaw/skills

CreBee 社交媒体网关。当用户需要管理社交媒体账号、发布内容(视频/图文/文章)、获取数据分析、访问粉丝画像、搜索话题/活动/音乐、或与抖音、B站、小红书、快手等 12 个平台交互时触发此技能。适用于 AI Agent 自动化管理中国社交媒体平台运营。 触发场景: - 发布内容到社交媒体平台 - 获取账号列表或账号信息 - 查询分析数据、数据概览、表现指标 - 访问粉丝/观众画像 - 搜索话题、标签、音乐、活动 - 管理抖音、B站、小红书、快手等平台的内容

SKILL.md - Gateway Watchdog Skill

3891
from openclaw/skills

> 一句话让 OpenClaw 安装 Gateway Watchdog

SKILL.md - OpenClaw Gateway Watchdog

3891
from openclaw/skills

> 让你的 OpenClaw Gateway 7/24 稳定运行

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

find-skills

3891
from openclaw/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

General Utilities

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research