一键导入
oc-health
Use when the user asks to check remote host health, OpenClaw service status, or recent gateway errors, or says '檢查狀態', 'health check', '遠端狀態', '龍蝦狀態'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user asks to check remote host health, OpenClaw service status, or recent gateway errors, or says '檢查狀態', 'health check', '遠端狀態', '龍蝦狀態'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | oc-health |
| description | Use when the user asks to check remote host health, OpenClaw service status, or recent gateway errors, or says '檢查狀態', 'health check', '遠端狀態', '龍蝦狀態'. |
執行前讀取 setup.json:
remote.sshAlias(以下以 ${SSH_ALIAS} 表示)remote.openclawPath(以下以 ${OPENCLAW_PATH} 表示)remote.user(以下以 ${REMOTE_USER} 表示)gateway.serviceName(以下以 ${SERVICE_NAME} 表示)agents 陣列取得ssh ${SSH_ALIAS} 'systemctl --user status ${SERVICE_NAME}'
確認是否 active (running)。如果 SSH 連線失敗,跳過後續步驟,回報連線問題並建議使用者嘗試 /oc-ssh-fix。
ssh ${SSH_ALIAS} 'journalctl --user -u ${SERVICE_NAME} --no-pager -n 20'
掃描是否有 error、Error、MissingEnvVarError、FATAL、panic 等關鍵字。
ssh ${SSH_ALIAS} 'df -h ~'
回報可用空間,若低於 1GB 發出警告。
從 setup.json 的 agents 陣列動態產生 workspace 路徑清單,逐一檢查:
# 對每個 agent 的 workspaceDir,檢查對應目錄
ssh ${SSH_ALIAS} 'ls -d ${OPENCLAW_PATH}/workspace-<workspaceDir>'
整理為以下格式(workspace 數量動態):
## 遠端主機 OpenClaw 健康檢查
| 項目 | 狀態 |
|------|------|
| Gateway service | ✅ active / ❌ inactive |
| 最近 log | ✅ 無錯誤 / ⚠️ 發現 N 個錯誤 |
| 磁碟空間 | ✅ X GB 可用 / ⚠️ 低於 1GB |
| Workspace (N) | ✅ 全部存在 / ❌ 缺少: ... |
如有異常,附上相關 log 片段供 使用者 判斷。
Use when the user wants to add a new bot/agent to OpenClaw, or says '加 bot', '新增 agent', 'add agent', 'add bot', '多一個 bot', '再加一個'.
Use when the user has an idea or feature request and wants to explore implementation approaches, or says 'brainstorm', '腦力激盪', '想辦法', 'explore idea', '有個想法', '可不可以做', 'how would we', '怎麼實現'.
Use when the user asks to search, browse, install, or audit ClawHub skills, or says '找 skill', 'search clawhub', '裝 skill', 'install skill', '安全檢查', 'audit skill', 'suggest skills', '推薦 skill', or wants to add new capabilities from ClawHub.
Use when the user asks to deploy, push, or sync openclaw.json to the remote host, or says '部署設定', '推設定', or wants to apply local config changes to the remote.
Use when the user wants to pause or shelve current work due to a blocker, or says 'park', '暫存', '先放著', 'blocker', '等一下再做'.
Use when the user says 'resume', '繼續', 'pending', '撿回', '之前暫存的', or asks what was parked previously.