agentleFS
weininghuiweininghui/skills/superpowers-dev-workflow/SKILL.md

superpowers-dev-workflow

Skill1 starsChanged 31 days agoMITView on GitHub

Spec-first, TDD, subagent-driven software development workflow. Use when: (1) building any new feature or app — triggers brainstorm → plan → subagent execution loop, (2) debugging a bug or test failure — triggers systematic root-cause process, (3) user says \"let's build\", \"help me plan\", \"I want to add X\", or \"this is broken\", (4) completing a feature branch — triggers test verification + merge/PR options. NOT for: one-liner fixes (just edit), reading code, or non-code tasks. Requires exec tool and sessions_spawn.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every coding task follows this pipeline.

    line 18
  2. Distinctive:

    Ask clarifying questions — one at a time, prefer multiple choice

    line 30
  3. Very specific:

    Write design doc → docs/plans/YYYY-MM-DD-<topic>-design.md → commit

    line 33
  4. Distinctive:

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

    line 36
  5. Distinctive:

    Write a detailed task-by-task implementation plan

    line 47
  6. Distinctive:

    After saving, offer two execution modes:

    line 51
  7. Distinctive:

    Wait for completion announcement

    line 65
  8. Distinctive:

    HARD GATE: No fixes without root cause investigation first.

    line 82
  9. Distinctive:

    Trigger: All tasks complete, all tests pass.

    line 94
  10. Distinctive:

    Verify all tests pass

    line 99
  11. Very specific:

    When dispatching implementer or reviewer subagents, use sessions_spawn:

    line 109
  12. Very specific:

    Run sessions_spawn with the task as a detailed prompt.

    line 120

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

迁移说明:本技能原为 OpenClaw / ClawHub 生态技能,现已转为 WorkBuddy 技能规范。正文如出现 openclaw / clawhub / claw 命令或 ~/.openclaw 路径,请忽略该命令形式,改用 WorkBuddy 等价操作:技能目录 = ~/.workbuddy/skills/<name>/;装包用 pip / npm;联网用 WebSearch / WebFetch;读写文件用 Read / Write / Edit;执行命令用 Bash(Windows 走 PowerShell 工具)。

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-<topic>-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-<feature>.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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.