一键导入
oc-resume
Use when the user says 'resume', '繼續', 'pending', '撿回', '之前暫存的', or asks what was parked previously.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user says 'resume', '繼續', 'pending', '撿回', '之前暫存的', or asks what was parked previously.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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 asks to check remote host health, OpenClaw service status, or recent gateway errors, or says '檢查狀態', 'health check', '遠端狀態', '龍蝦狀態'.
Use when the user wants to pause or shelve current work due to a blocker, or says 'park', '暫存', '先放著', 'blocker', '等一下再做'.
| name | oc-resume |
| description | Use when the user says 'resume', '繼續', 'pending', '撿回', '之前暫存的', or asks what was parked previously. |
執行前讀取 setup.json:
remote.sshAlias(以下以 ${SSH_ALIAS} 表示)gateway.serviceName(以下以 ${SERVICE_NAME} 表示)讀取 docs/pending-plans/*.md 的所有檔案。
如果沒有任何 plan 檔,告知使用者「沒有暫存的計畫」並結束。
如果有多個 plan,列出清單讓使用者選擇:
## Pending Plans
1. <標題> — blocker: <簡述> (YYYY-MM-DD)
2. <標題> — blocker: <簡述> (YYYY-MM-DD)
要恢復哪一個?
如果只有一個 plan,直接載入(不需選擇)。
載入選定的 plan 檔後,先檢查可自動驗證的 blocker:
| Blocker 類型 | 環境 | 檢查方式 |
|---|---|---|
| 遠端主機離線 | 遠端 | ssh -o ConnectTimeout=5 ${SSH_ALIAS} 'echo ok' |
| OpenClaw 服務未啟動 | 遠端 | ssh -o ConnectTimeout=5 ${SSH_ALIAS} 'systemctl --user is-active ${SERVICE_NAME}' |
如果 blocker 仍然存在,告知使用者並詢問是否仍要繼續(可能部分步驟可先做)。
如果 blocker 已解除,告知使用者。
無法自動檢查的 blocker(如等人工操作),直接詢問使用者是否已完成。
當所有剩餘步驟完成後:
docs/pending-plans/<filename>)## Parked Plans 區塊移除對應索引行