laborany
基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...
Use when diagnosing, repairing, or maintaining an OpenClaw Gateway on the same machine. Designed for rescue agents to fix a down gateway or check operational health. Supports Linux (systemd) and macOS (launchd).
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install dinstein/openclaw-opsInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
This skill serves two core scenarios and nothing else:
What this skill is NOT for:
openclaw daemon install and openclaw configure)Principle: Diagnose → Judge → Act → Verify. Never skip steps.
Detect the platform first — commands differ between Linux (systemd) and macOS (launchd):
OS=$(uname -s) # "Linux" or "Darwin"
echo "Platform: $OS"
Do NOT assume port 18789. Detect the actual configured port first:
PORT=$(openclaw config get gateway.port 2>/dev/null | grep -oE '[0-9]+')
PORT=${PORT:-18789} # fallback to default only if config unavailable
echo "Gateway port: $PORT"
Use $PORT in all port-related commands throughout this guide.
Follow these sections in order when the main gateway is not running.
# Is the service running at all?
# Linux:
systemctl --user status openclaw-gateway
# macOS:
launchctl list | grep openclaw
# Is the process alive?
pgrep -af openclaw
# Is the port listening?
# Linux:
ss -tlnp | grep $PORT
# macOS:
lsof -iTCP:$PORT -sTCP:LISTEN
Linux:
journalctl --user -u openclaw-gateway --since "1 hour ago" --no-pager | grep -iE "error|crash|fatal|SIGTERM|OOM"
# Last 50 lines for context
journalctl --user -u openclaw-gateway -n 50 --no-pager
*...
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
A skill that teaches any AI agent how to operate and maintain an OpenClaw Gateway running as a persistent service.
Works with any agent that has shell access — Claude Code, Codex, OpenClaw, Pi, or any AI agent with shell access running on the same machine as the OpenClaw Gateway.
Supports both Linux (systemd) and macOS (launchd).
⚠️ Install this skill on your rescue agent (Claude Code, secondary OpenClaw, etc.), NOT on the main OpenClaw Gateway you want to maintain.
Just tell your rescue agent in a conversation:
> Install the openclaw-ops skill from https://github.com/dinstein/openclaw-ops-skill
The agent will download SKILL.md and place it in the correct skills directory automatically.
clawhub install openclaw-ops
Copy SKILL.md into your agent's skills directory:
# Claude Code
mkdir -p ~/.claude/skills/openclaw-ops
cp SKILL.md ~/.claude/skills/openclaw-ops/SKILL.md
# OpenClaw
mkdir -p ~/.openclaw/workspace/skills/openclaw-ops
cp SKILL.md ~/.openclaw/workspace/skills/openclaw-ops/SKILL.md
# Other agents — place in whatever skills directory your agent reads from
graph LR
You["👤 You"] -->|remote access| Rescue["🛠️ Rescue Agent<br/>+ openclaw-ops skill"]
Rescue -->|diagnoses & fixes| Main["🦞 Main OpenClaw<br/>Gateway"]
Main -->|serves users| Users["👥 Discord / Telegram / etc"]
Main OpenClaw Gateway — Your primary AI agent system. Handles all day-to-day operations: chat channels, cron jobs, sessions, etc.
Rescue Agent — A separate agent (Claude Code, secondary OpenClaw instance, or any AI agent with shell access) with this skill installed. Lives on the same machine. Its sole purpose: fix the main gateway when it breaks, and perform operational...
# OpenClaw Operations
## Design Philosophy
This skill serves **two core scenarios** and nothing else:
1. **Rescue** — The main OpenClaw Gateway is down or broken. You (the rescue agent) need to diagnose the root cause, fix it, and bring the gateway back online.
2. **Health Check** — The main OpenClaw Gateway is running. You need to verify its operational health, clean up resources, or perform maintenance tasks like upgrades.
**What this skill is NOT for:**
- Day-to-day business configuration (adding channels, configuring agents, setting up integrations)
- Application-level issues (agent behavior, prompt tuning, skill management)
- Initial deployment or first-time setup (use `openclaw daemon install` and `openclaw configure`)
**Principle:** Diagnose → Judge → Act → Verify. Never skip steps.
## Platform Detection
Detect the platform first — commands differ between Linux (systemd) and macOS (launchd):
```bash
OS=$(uname -s) # "Linux" or "Darwin"
echo "Platform: $OS"
```
## Port Detection
Do NOT assume port 18789. Detect the actual configured port first:
```bash
PORT=$(openclaw config get gateway.port 2>/dev/null | grep -oE '[0-9]+')
PORT=${PORT:-18789} # fallback to default only if config unavailable
echo "Gateway port: $PORT"
```
Use `$PORT` in all port-related commands throughout this guide.
---
# Scenario A: Rescue (Gateway Down)
Follow these sections in order when the main gateway is not running.
## A1. Assess the Situation
```bash
# Is the service running at all?
# Linux:
systemctl --user status openclaw-gateway
# macOS:
launchctl list | grep openclaw
# Is the process alive?
pgrep -af openclaw
# Is the port listening?
# Linux:
ss -tlnp | grep $PORT
# macOS:
lsof -iTCP:$PORT -sTCP:LISTEN
```
## A2. Check Logs for Root Cause
**Linux:**
```bash
journalctl --user -u openclaw-gateway --since "1 hour ago" --no-pager | grep -iE "error|crash|fatal|SIGTERM|OOM"
# Last 50 lines for context
journalctl --user -u openclaw-gateway -n 50 --no-pager
```
*...# openclaw-ops
[English](README.md) | [中文](README_CN.md)
A skill that teaches any AI agent how to operate and maintain an [OpenClaw](https://openclaw.ai) Gateway running as a persistent service.
Works with **any agent that has shell access** — Claude Code, Codex, OpenClaw, Pi, or any AI agent with shell access running on the same machine as the OpenClaw Gateway.
Supports both **Linux (systemd)** and **macOS (launchd)**.
## Install
> **⚠️ Install this skill on your rescue agent (Claude Code, secondary OpenClaw, etc.), NOT on the main OpenClaw Gateway you want to maintain.**
### Ask your agent to install it
Just tell your rescue agent in a conversation:
```
> Install the openclaw-ops skill from https://github.com/dinstein/openclaw-ops-skill
```
The agent will download `SKILL.md` and place it in the correct skills directory automatically.
### From ClawHub (when using a secondary OpenClaw as rescue agent)
```bash
clawhub install openclaw-ops
```
### Manual
Copy `SKILL.md` into your agent's skills directory:
```bash
# Claude Code
mkdir -p ~/.claude/skills/openclaw-ops
cp SKILL.md ~/.claude/skills/openclaw-ops/SKILL.md
# OpenClaw
mkdir -p ~/.openclaw/workspace/skills/openclaw-ops
cp SKILL.md ~/.openclaw/workspace/skills/openclaw-ops/SKILL.md
# Other agents — place in whatever skills directory your agent reads from
```
## Architecture
```mermaid
graph LR
You["👤 You"] -->|remote access| Rescue["🛠️ Rescue Agent<br/>+ openclaw-ops skill"]
Rescue -->|diagnoses & fixes| Main["🦞 Main OpenClaw<br/>Gateway"]
Main -->|serves users| Users["👥 Discord / Telegram / etc"]
```
**Main OpenClaw Gateway** — Your primary AI agent system. Handles all day-to-day operations: chat channels, cron jobs, sessions, etc.
**Rescue Agent** — A separate agent (Claude Code, secondary OpenClaw instance, or any AI agent with shell access) with this skill installed. Lives on the same machine. Its sole purpose: fix the main gateway when it breaks, and perform operational...基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Reusable OpenClaw skill for remote Linux deployment with MiniMax M2.1 and Telegram bot setup
Bots learn, human earns, curated open claw playbook list and skill list for life long learners at https://botlearn.ai