🔄

Restart Guard

🌐Community
by Zjianru · v2.2.0 · MITRepository

Safe OpenClaw gateway restart with state-machine verification. Preserves context across restarts and sends post-restart ACK via Telegram, Discord, Slack, or custom webhook.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add restart-guard npx -- -y @trustedskills/restart-guard
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "restart-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/restart-guard"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The restart-guard skill provides a deterministic way to restart an OpenClaw gateway while preserving the existing context and proactively reporting results back to the originating session. It ensures a controlled restart process, handling the transition with a guardian script that monitors the gateway's health and confirms successful resumption. The user experience focuses on simplicity – just expressing the intent to restart is sufficient.

When to use it

  • Configuration Changes: After making changes to the OpenClaw configuration, use restart-guard to ensure a clean and controlled restart.
  • Troubleshooting Issues: If experiencing unexpected behavior or errors within the gateway, a restart initiated by this skill can help resolve underlying problems.
  • Scheduled Maintenance: Implement restarts as part of regular maintenance routines without disrupting user sessions significantly.
  • Automated Restart Flows: Integrate restart-guard into automated workflows to handle restarts based on specific triggers or conditions.

Key capabilities

  • Deterministic OpenClaw gateway restart.
  • Context preservation during the restart process.
  • Proactive reporting of results back to the originating session.
  • Automatic discovery of enabled channels for notifications.
  • Supports generic channel passthrough (e.g., Feishu).
  • Uses a disaster route (origin -> agent:main:main -> external broadcast) with retry budget.

Example prompts

  • "可以重启了" (Can I restart?)
  • "restart now"
  • “Please restart the gateway”

Tips & gotchas

The skill automatically discovers enabled channels from openclaw.json and the skill configuration, so no manual channel arguments are typically required for basic usage. Ensure that the necessary configurations in ~/.openclaw/custom/config/restart-guard.yaml are set up correctly before attempting to use the skill.

Tags

Requirements

Required Binaries
python3curl
Environment Variables
GATEWAY_AUTH_TOKEN
🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Verified Commit96c32cf2

Installing this skill downloads the exact code at commit 96c32cf2, not the current state of the repository. This prevents supply-chain attacks from unauthorized updates.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
v2.2.0
License
MIT
Author
Zjianru
Installs
0

🌐 Community

Passed automated security scans.

Pinned commit96c32cf2

Install command fetches the verified snapshot, not the live repository.