Files
AgentHub/server/data/pipelines/default.json
T
nntrivi2001 26b0fe53c7 feat(skills,pipelines): ask the user at the two points being wrong is cheap, and stop paying for reviews the diff does not need
The `default` 8-node pipeline walked past its own intake: the node declared
`agenthub stage intake`, a stage report with no work attached, so "intake" was
a label the run passed through without ever asking a question. It now declares
`/superpowers:brainstorming` (and detects it — that rule moves off `plan`),
and both driving skills make the brainstorm mandatory, asked with
AskUserQuestion and waited on rather than answered on the user's behalf.

Three stops replace three silent slides:

- After the plan is written and adversarially challenged, it goes to the USER
  for approval. Implementation does not start without it, and work that turns
  out to need a different approach comes back for a fresh one.
- Review picks its reviewers from `git diff --name-only`: Claude Code's own
  `code-review` always, a domain reviewer only for a layer the diff actually
  touched, and — new — only once the change is big enough to have seams. Three
  agents re-reading twenty lines buys one opinion at three times the tokens, on
  every fix-loop lap. Review is also a loop now: it ends on a clean pass over
  the current diff, not on one pass having happened.
- The gate asks the user to accept before anything is claimed done (and in the
  lane pipeline, before the PR is published — publishing is outward-facing).
  A NO-GO re-enters by SIZE: a defect goes back to implement, a wrong approach
  back to plan. Nothing carries a NO-GO forward with a note about it.

Also here, from a real stall seen on a lane: `ship-feature` had no waiting rule
at all, and a session at the gate invented one with `ScheduleWakeup` — a
/loop-only primitive that paces nothing here and is refused outright when
`auto` mode cannot reach its safety classifier. The rule the lane skill already
had now exists in both.

Cost, measured in what each agent is actually for: the suite run leaves its
agent (nothing is judged, so nothing is delegated — an agent there buys a
second model's tokens to read output the session can read for free), and
`backend-reviewer` drops from opus to sonnet like its frontend twin; both read
a scoped diff against a fixed checklist, and the senior gate above them is
still opus.

Skill bugs found in the same sweep: doc-map told agents not to recreate the
removed translations and then, three lines later, to mirror every README change
into them; the docs mapping still carried `+VN+CN` and the punctuation left by
their removal; Procedure jumped 2 → 6; Verify required `scripts/doc-coverage.sh`,
which does not exist in this repo.
2026-09-18 10:21:03 +07:00

192 lines
4.2 KiB
JSON

{
"id": "default",
"name": "Default feature pipeline",
"skill": "/agenthub:ship-feature",
"nodes": [
{
"id": "intake",
"label": "Intake",
"icon": "📝",
"gate": false,
"command": "/superpowers:brainstorming",
"aliases": [
"assigned",
"claimed",
"start"
],
"detect": [
{
"tool": "Agent",
"match": "^Explore$"
},
{
"tool": "Skill",
"match": "brainstorming"
}
]
},
{
"id": "plan",
"label": "Plan",
"icon": "🧭",
"gate": false,
"command": "/superpowers:writing-plans",
"aliases": [
"planning",
"brainstorm",
"design"
],
"detect": [
{
"tool": "Skill",
"match": "writing-plans"
},
{
"tool": "Write",
"match": "docs/.*plan.*\\.md"
},
{
"tool": "Agent",
"match": "^Plan$|Software Architect|Backend Architect|UX Architect"
},
{
"tool": "TaskCreate"
}
]
},
{
"id": "implement",
"label": "Implement",
"icon": "🛠",
"gate": false,
"command": "/superpowers:test-driven-development",
"aliases": [
"implementing",
"coding",
"build"
],
"detect": [
{
"tool": "Skill",
"match": "executing-plans|subagent-driven-development|test-driven-development"
},
{
"tool": "Edit"
},
{
"tool": "Write",
"match": "^(?!.*(?:^|/)(?:docs|\\.superpowers)/)"
}
]
},
{
"id": "tests",
"label": "Tests",
"icon": "🧪",
"gate": true,
"command": "npm test",
"aliases": [
"testing",
"unit",
"gates",
"pre-push-gate"
],
"detect": [
{
"tool": "Bash",
"match": "\\b(npm (run )?test|pytest|vitest|jest|go test|cargo test|node\\s+--test|rspec|phpunit|dotnet test|mvn test|gradle test)\\b"
},
{
"tool": "Agent",
"match": "Test Results Analyzer|API Tester|Performance Benchmarker"
}
]
},
{
"id": "review",
"label": "Review",
"icon": "👀",
"gate": true,
"command": "/superpowers:requesting-code-review",
"aliases": [
"reviewing",
"code-review",
"self-review"
],
"detect": [
{
"tool": "Skill",
"match": "code-review|requesting-code-review|receiving-code-review"
},
{
"tool": "Bash",
"match": "\\bgh\\b[^;&|]*\\bpr diff\\b"
},
{
"tool": "Agent",
"match": "(?<!senior-gate-)[Rr]eviewer|Evidence Collector|Accessibility Auditor"
}
]
},
{
"id": "gate",
"label": "Gate",
"icon": "🚦",
"gate": true,
"command": "/superpowers:verification-before-completion",
"aliases": [
"verify",
"verification",
"sr-gate",
"gate-blocked"
],
"detect": [
{
"tool": "Skill",
"match": "verification-before-completion"
},
{
"tool": "Agent",
"match": "senior-gate-reviewer|Reality Checker"
}
]
},
{
"id": "ship",
"label": "Ship",
"icon": "🔀",
"gate": false,
"command": "/superpowers:finishing-a-development-branch",
"aliases": [
"pr",
"pr-open",
"publishing",
"commit",
"push"
],
"detect": [
{
"tool": "Skill",
"match": "finishing-a-development-branch"
},
{
"tool": "Bash",
"match": "\\bgit\\b(?:\\s+-c\\s+[\\w.-]+=(?:'[^']*'|\\\"[^\\\"]*\\\"|\\S+)|\\s+-{1,2}[\\w.-]+(?:=(?:'[^']*'|\\\"[^\\\"]*\\\"|\\S+))?)*\\s+push\\b|\\bgh\\b[^;&|]*\\bpr create\\b"
}
]
},
{
"id": "done",
"label": "Done",
"icon": "✅",
"gate": false,
"command": "agenthub stage done",
"aliases": [
"complete",
"completed",
"merged"
]
}
]
}