← 返回
开发者工具 中文

Superpowers Dev Workflow

Spec-first, TDD, subagent-driven software development workflow. Use when: (1) building any new feature or app — triggers brainstorm → plan → subagent executi...
以规格为首、测试驱动开发、子代理驱动的软件开发工作流。适用于:① 构建任何新功能或应用——触发头脑风暴 → 规划 → 子代理执行……
wlshlad85
开发者工具 clawhub v1.0.0 1 版本 93119.3 Key: 无需
★ 27
Stars
📥 19,070
下载
💾 735
安装
1
版本
#latest

概述

Superpowers — OpenClaw Edition

Adapted from obra/superpowers. Mandatory workflow — not suggestions.

The Pipeline

Idea → Brainstorm → Plan → Subagent-Driven Build (TDD) → Code Review → Finish Branch

Every coding task follows this pipeline. "Too simple to need a design" is always wrong.


Phase 1: Brainstorming

Trigger: User wants to build something. Activate before touching any code.

See: references/brainstorming.md

Summary:

  1. Explore project context (files, docs, recent commits)
  2. Ask clarifying questions — one at a time, prefer multiple choice
  3. Propose 2–3 approaches with trade-offs + recommendation
  4. Present design in sections, get approval after each
  5. Write design doc → docs/plans/YYYY-MM-DD--design.md → commit
  6. Hand off to Phase 2: Writing Plans

HARD GATE: Do NOT write any code until user approves design.


Phase 2: Writing Plans

Trigger: Design approved. Activated by brainstorming phase.

See: references/writing-plans.md

Summary:

  • Write a detailed task-by-task implementation plan
  • Each task = 2–5 minutes: write test → watch fail → implement → watch pass → commit
  • Save to docs/plans/YYYY-MM-DD-.md
  • Announce: "I'm using the writing-plans skill to create the implementation plan."
  • After saving, offer two execution modes:
  • Subagent-driven (current session): sessions_spawn per task + two-stage review
  • Manual execution: User runs tasks themselves

Phase 3: Subagent-Driven Development

Trigger: Plan exists, user chooses subagent-driven execution.

See: references/subagent-development.md

Per-task loop (OpenClaw):

  1. sessions_spawn an implementer subagent with task + full plan context
  2. Wait for completion announcement
  3. sessions_spawn a spec-reviewer subagent → must confirm code matches spec
  4. sessions_spawn a code-quality reviewer subagent → must approve quality
  5. Fix any issues, re-review if needed
  6. Mark task done, move to next
  7. Final: dispatch overall code reviewer → hand off to Phase 5

TDD is mandatory in every task. See references/tdd.md.


Phase 4: Systematic Debugging

Trigger: Bug, test failure, unexpected behaviour — any technical issue.

See: references/systematic-debugging.md

HARD GATE: No fixes without root cause investigation first.

Four phases:

  1. Root Cause Investigation (read errors, reproduce, check recent changes, trace data flow)
  2. Pattern Analysis (find working examples, compare, identify differences)
  3. Hypothesis + Testing (one hypothesis at a time, test to prove/disprove)
  4. Fix + Verification (fix at root, not symptom; verify fix doesn't break anything)

Phase 5: Finishing a Branch

Trigger: All tasks complete, all tests pass.

See: references/finishing-branch.md

Summary:

  1. Verify all tests pass
  2. Determine base branch
  3. Present 4 options: merge locally / push + PR / keep / discard
  4. Execute choice
  5. Clean up

OpenClaw Subagent Dispatch Pattern

When dispatching implementer or reviewer subagents, use sessions_spawn:

Goal: [one sentence]
Context: [why it matters, which plan file]
Files: [exact paths]
Constraints: [what NOT to do — no scope creep, TDD only]
Verify: [how to confirm success — tests pass, specific command]
Task text: [paste full task from plan]

Run sessions_spawn with the task as a detailed prompt. The sub-agent announces results automatically.


Key Principles

  • One question at a time during brainstorm
  • TDD always — write failing test first, delete code written before tests
  • YAGNI — remove unnecessary features from all designs
  • DRY — no duplication
  • Systematic over ad-hoc — follow the process especially under time pressure
  • Evidence over claims — verify before declaring success
  • Frequent commits — after each green test

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 17:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,720
data-analysis

clawl skill

wlshlad85
在智能体搜索引擎 Clawl 上注册此 AI 智能体。生成 clawl. 发现文件并通知 clawl.co.uk 进行索引。适用于智能体希望被发现、在 Clawl 排行榜上获得排名、参与“城堡之王”竞赛或发布能力供其他智能体查找的情况。当被
★ 0 📥 1,215
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,767