Files
AgentHub/server/data/pipelines/ship-feature.json
T
nntrivi2001 6df69d8811 feat(lanes): give every pipeline node its own driver command
A pipeline template named ONE command for the whole run (`skill`), so the
only way to know what actually moves a given node was to read that node's
`detect` regexes. Each node now carries its own `command`: a slash command
(`/superpowers:writing-plans`) or a shell one (`ccam lanes hook ci-gate`),
whichever its detect rules already watch for.

The values are derived from each node's own detect rules, not invented —
every `ccam …` string was checked against bin/ccam.js and every
`/superpowers:*` against the installed plugin. Nodes reaching which is a
declaration rather than an action (`done`, `merged`, `reported`,
`e2e-feature-passed`, `qc-plan`) are deliberately left empty.

`pipelines.js` normalizes a missing or non-string value to "", so a
custom template written before this field keeps loading rather than
rendering "undefined". `nodeStates()` and GET /api/lanes/pipeline-stats
pass it through. Never executed by the dashboard — display text, the same
contract `skill` already had.

Surfaced where each view has room for it: the Workflows pass-rate panel
shows it under the node label and copies it on click; PipelineMap folds
it into the node tooltip, because a 16-node pipeline has to fit across
one card and there is no width for a second line.

`command?: string` is optional in the client type only to spare four
unrelated test fixtures — the server always sends the key, and the UI has
to branch on the empty string regardless.

Verified: npm run test:server (1373, +3), npm run test:client (459, +2),
tsc --noEmit, prettier and check-headers clean. docs/LANES.md § Custom
template format documents the field. openapi.yaml needs no change: the
lane payload and pipeline-stats were never schematized there.
2026-09-04 11:43:43 +07:00

290 lines
6.2 KiB
JSON

{
"id": "ship-feature",
"name": "Ship feature (lane pipeline)",
"skill": "/ccam:ship-feature-lane",
"nodes": [
{
"id": "intake",
"label": "Intake",
"icon": "📝",
"gate": false,
"command": "/superpowers:brainstorming",
"aliases": [
"assigned",
"claimed",
"start",
"bootstrapping"
],
"detect": [
{
"tool": "Skill",
"match": "brainstorming"
},
{
"tool": "Bash",
"match": "\\bccam\\b[^;&|]*\\bfeature activate\\b"
},
{
"tool": "Agent",
"match": "^Explore$"
}
]
},
{
"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/superpowers/specs/lane-.*\\.md"
},
{
"tool": "Agent",
"match": "^Plan$|Software Architect"
},
{
"tool": "TaskCreate"
}
]
},
{
"id": "implementing",
"label": "Implement (TDD)",
"icon": "🛠",
"gate": false,
"command": "/superpowers:test-driven-development",
"aliases": [
"implement",
"coding",
"build"
],
"detect": [
{
"tool": "Skill",
"match": "test-driven-development|executing-plans|subagent-driven-development|systematic-debugging"
},
{
"tool": "Edit",
"match": "^(?!.*docs/superpowers/specs/)"
},
{
"tool": "Write",
"match": "^(?!.*(?:^|/)docs/)"
}
]
},
{
"id": "gates",
"label": "CI gates + preflight",
"icon": "🧪",
"gate": true,
"command": "ccam lanes hook ci-gate",
"aliases": [
"pre-push-gate",
"tests",
"migration-collision",
"sync-conflict"
],
"detect": [
{
"tool": "Bash",
"match": "\\bccam\\b[^;&|]*(\\bhook ci-gate\\b|\\bsync-base --check\\b)"
},
{
"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"
}
]
},
{
"id": "e2e-feature",
"label": "E2e on feature branch",
"icon": "🧪",
"gate": false,
"command": "ccam lanes up --qc",
"aliases": [
"e2e",
"e2e-scoped",
"booting",
"live"
],
"detect": [
{
"tool": "Bash",
"match": "\\bccam\\b[^;&|]*(\\bup --qc\\b|\\bhook e2e\\b)"
}
]
},
{
"id": "e2e-feature-passed",
"label": "E2e passed",
"icon": "🧪",
"gate": true,
"aliases": [
"e2e-passed"
]
},
{
"id": "review",
"label": "Code 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": "Agent",
"match": "(?<!senior-gate-)[Rr]eviewer"
}
]
},
{
"id": "qc-plan",
"label": "QC plan",
"icon": "📋",
"gate": false,
"aliases": []
},
{
"id": "qc",
"label": "Browser QC",
"icon": "🔍",
"gate": true,
"command": "ccam lanes proof-link",
"aliases": [],
"detect": [
{
"tool": "Agent",
"match": "qc-local|Evidence Collector|Accessibility Auditor"
},
{
"tool": "Bash",
"match": "\\bccam\\b[^;&|]*\\blanes proof-link\\b"
}
]
},
{
"id": "gate",
"label": "Senior GO/NO-GO gate",
"icon": "🚦",
"gate": true,
"command": "/superpowers:verification-before-completion",
"aliases": [
"sr-gate",
"verify",
"verification",
"gate-blocked"
],
"detect": [
{
"tool": "Agent",
"match": "senior-gate-reviewer|Reality Checker"
},
{
"tool": "Skill",
"match": "verification-before-completion"
}
]
},
{
"id": "publishing",
"label": "Publish PR",
"icon": "🔀",
"gate": false,
"command": "/superpowers:finishing-a-development-branch",
"aliases": [
"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"
}
]
},
{
"id": "pr-open",
"label": "PR open",
"icon": "🔀",
"gate": false,
"command": "gh pr create --base development",
"aliases": [
"ship",
"pr",
"push-conflict",
"push-revalidate"
],
"detect": [
{
"tool": "Bash",
"match": "\\bgh\\b[^;&|]*\\bpr create\\b"
}
]
},
{
"id": "reported",
"label": "Reported",
"icon": "📣",
"gate": false,
"aliases": []
},
{
"id": "watching-pr",
"label": "Watching PR",
"icon": "👁",
"gate": false,
"command": "ccam lanes ci status",
"aliases": [
"pr-comment-fix"
],
"detect": [
{
"tool": "Bash",
"match": "\\bgh\\b[^;&|]*\\bpr view\\b"
}
]
},
{
"id": "merged",
"label": "Merged — post-verify",
"icon": "🔗",
"gate": false,
"aliases": []
},
{
"id": "done",
"label": "Done",
"icon": "✅",
"gate": false,
"aliases": [
"complete",
"completed"
]
}
]
}