원클릭으로
superclaw-execute
SuperClaw Phase 3: 执行。通过 superclaw 让 Claude Code 自治执行 plan。 使用场景:plan 已 approve,选定了执行方式。 终态:执行完成 → 自动触发 verify(通过 hook 或轮询)。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
SuperClaw Phase 3: 执行。通过 superclaw 让 Claude Code 自治执行 plan。 使用场景:plan 已 approve,选定了执行方式。 终态:执行完成 → 自动触发 verify(通过 hook 或轮询)。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Delegate coding tasks to Claude Code via ACPX from OpenClaw. Runs Claude Code as root with IS_SANDBOX=1 bypass, full file-write permissions, Opus model support, and persistent named sessions. Use when: (1) The user asks to write, review, or refactor code in a project directory (2) The user wants a persistent coding session ("start a session", "continue working on X") (3) Multi-file code generation or editing is needed (4) The user says "use Claude Code", "code this", "write code for", "build", "implement" (5) Complex coding tasks that benefit from Claude Code's tool-use (file read/write/edit, terminal) Not for: simple one-line edits (use the edit tool directly), reading files (use read tool), non-coding tasks, or tasks that don't need file system access.
SuperClaw AutoDream: 记忆整理持久 agent。定期整理 OpenClaw 记忆文件。 触发条件:距上次 >= 24 小时 AND >= 5 个 session。 由 agent-check.sh 自动触发,也可用户手动 invoke。
SuperClaw Phase 2: 技术对齐。OpenClaw 与 Claude Code 协商,把 spec 变成可执行的 plan。 使用场景:align 阶段完成、spec 已 approve。 终态:plan approved → invoke execute。
Meta-skill that teaches OpenClaw its role and boundaries in the SuperClaw system. Use at the start of any conversation that might involve coding tasks. Establishes: what you are, what you're not, when to activate the workflow, and how to interact with Claude Code through the superclaw bridge.
SuperClaw Phase 4-L2: OpenClaw 独立验收。不信任 Claude Code 的自我声明,独立跑测试和检查。 使用场景:execute 阶段完成,收到执行报告。 终态:验收通过 → invoke deliver;不通过 → 回 execute 修复。
SuperClaw Phase 1: 产品对齐。将用户模糊需求转化为结构化 spec。 使用场景:用户提出开发需求(一句话、一段描述、一个链接都行)。 唯一终态:用户 approve spec → invoke plan。 借鉴 gstack office-hours 的深度对齐方法论,包括 Forcing Questions、 Premise Challenge、Anti-Sycophancy、Spec Review Loop。
| name | superclaw-execute |
| description | SuperClaw Phase 3: 执行。通过 superclaw 让 Claude Code 自治执行 plan。 使用场景:plan 已 approve,选定了执行方式。 终态:执行完成 → 自动触发 verify(通过 hook 或轮询)。 |
Phase 3 — OpenClaw 发起 → Claude Code 自治执行
把 approved plan 交给 Claude Code,让它用 Superpowers 的 subagent-driven-development 自治完成。OpenClaw 只管启动和等结果,不做逐 task 微操。
宣告: "我在用 superclaw:execute 启动 Claude Code 执行 plan。Claude Code 会自治完成所有 task,每个 task 完成后有自动 review。"
plan.md 已存在且已 approve以下 board 操作仅在
.superclaw/board/存在时执行。没有 board 时 skill 正常运行。
| 时机 | Board 操作 | 命令 |
|---|---|---|
| 开始执行 | 从 planned 移到 executing | board-move.sh {task} planned executing "开始执行" |
| 执行中 | 更新 updated 时间戳 + 追加 history | 定期更新任务文件 |
| CC 完成 | 从 executing 移到 reviewing | board-move.sh {task} executing reviewing "执行完成" |
| CC 阻塞 | 从 executing 移到 blocked | board-move.sh {task} executing blocked "原因: ..." |
如果 CC session 意外终止(Stop hook 写入 last_event.json 且 status: "interrupted"):
executing/ 但 session 已结束tool_log.jsonl 判断进度OpenClaw 不做逐 task 微操。 subagent-driven-development 是 Claude Code 的原生能力:
OpenClaw 只需要:启动 → 等结果 → 收到通知后触发 verify
收到 approved plan + 执行方式 + session 名称
→ superclaw send(复用 plan 阶段的 session)
→ Claude Code 自治区域
│ ┌─────────────────────────────────────────┐
│ │ 读 plan → 逐 task 执行 │
│ │ ├─ 派 subagent 执行 task │
│ │ ├─ spec-reviewer 验 task │
│ │ ├─ code-quality-reviewer 审 task │
│ │ └─ 处理 task 状态: │
│ │ ├─ DONE → 下一个 task │
│ │ ├─ DONE_WITH_CONCERNS → 记录 → 继续 │
│ │ ├─ NEEDS_CONTEXT → 上报 OpenClaw │
│ │ └─ BLOCKED → 上报 OpenClaw │
│ └─────────────────────────────────────────┘
→ [Hook: PostToolUse] 记录进度到 tool_log.jsonl
→ [Hook: Stop] session 结束 → 飞书通知 + 写 last_event.json
→ OpenClaw 收到通知
→ 读取执行结果(状态文件 + CC 输出)
→ 判断最终状态:
├─ SUCCESS → invoke verify
├─ PARTIAL → 通知用户 + 决定是否 verify 已完成部分
└─ FAILED → 通知用户 + 决定重试/放弃
复用 plan 阶段的 session——CC 已经探索过代码库,直接 continue 而不是 start 新 session:
superclaw send \
--name "superclaw-<feature>" \
--cwd <project-dir> \
--prompt "
你现在是 SuperClaw execute 阶段的执行者。
## 你的任务
使用 superpowers:subagent-driven-development 执行下面的 plan。
## Plan
<plan.md 路径>
## 重要
- 每个 task 派独立 subagent
- 每个 task 完成后走 spec compliance review + code quality review
- 遇到 BLOCKED 或 NEEDS_CONTEXT 状态,在报告中说明
- 全部完成后,写一份执行报告
## 执行报告格式
完成后输出:
- 总 task 数 / 完成数 / 跳过数 / 失败数
- 每个 task 的状态和摘要
- concerns 列表(如果有)
- 所有改动的文件列表
- 测试结果汇总
"
superclaw send \
--name "superclaw-<feature>" \
--cwd <project-dir> \
--prompt "
使用 superpowers:executing-plans 执行下面的 plan。
<plan.md 路径>
"
OpenClaw 在 Claude Code 执行期间可以做:
被动等待(推荐)— 靠 Hook 通知
superclaw-notify.sh 在 CC session Stop 时自动通知飞书 + 写状态文件.superclaw/last_event.json 后触发 verify主动轮询(备选)— 如果 Hook 不可用
superclaw ps 检查 session 状态如果 Claude Code 在执行中遇到 NEEDS_CONTEXT 或 BLOCKED:
CC: "Task 3 需要知道数据库的连接字符串配置方式,plan 里没写。"
OpenClaw 处理:
superclaw send 传入答案CC: "Task 5 依赖的 API 还没部署,无法测试。"
OpenClaw 处理:
读取 Claude Code 的执行报告,判断状态:
| 最终状态 | 条件 | 下一步 |
|---|---|---|
| SUCCESS | 所有 task DONE(可含 DONE_WITH_CONCERNS) | invoke verify |
| PARTIAL | 部分 task 完成,部分 BLOCKED/跳过 | 通知用户,问是否 verify 已完成部分 |
| FAILED | 关键 task 失败 | 通知用户,问是否重试/修改 plan/放弃 |
执行完成时自动通知用户(通过 Hook):
🦞 SuperClaw 执行完成
📊 结果:8/10 task 完成
⏱️ 耗时:约 15 分钟
📝 状态:SUCCESS
正在进入验收阶段...
superclaw:verifysuperclaw:verify 或回到 plan❌ OpenClaw 逐 task 给 CC 发指令 — CC 自治,OpenClaw 不微操 ❌ 忽略 DONE_WITH_CONCERNS — 要记录 concerns,verify 时重点检查 ❌ Hook 和轮询同时用 — 选一种,别重复触发 ❌ CC 说完成了就直接信 — 必须走 verify