From supadevops
supadevops 阶段3(实现)的并行加速 authoring 技能。当已完成 red 且互相独立的模块有3个以上、且用户选择启用(opt-in)并行化时,生成 .claude/workflows/supa-implement-workflow.js 并以 Workflow 并行实现各模块→turbo typecheck test。用于在 supa-tdd 的实现阶段对"是否并行化?"取得同意的场景。当模块在2个以下、互相依赖、或无选择启用时不使用,而在会话内串行实现。
How this skill is triggered — by the user, by Claude, or both
Slash command
/supadevops:supa-implementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
将 `supa-tdd` 的阶段3 **以 Workflow 并行化**。**不内置模板**。依据本技能的指示生成 `.claude/workflows/supa-implement-workflow.js` 并以 `Workflow({ name: 'supa-implement-workflow' })` 启动。
将 supa-tdd 的阶段3 以 Workflow 并行化。不内置模板。依据本技能的指示生成 .claude/workflows/supa-implement-workflow.js 并以 Workflow({ name: 'supa-implement-workflow' }) 启动。
sequenceDiagram
participant U as 用户
participant S as supa-tdd(会话)
participant K as supa-implement(本技能)
participant W as Workflow 工具
participant A as supa-implementer ×N
U->>S: /supa(批准阶段1~2)
S->>U: 实现阶段。是否并行化?
U->>S: 是(选择启用)
S->>K: 应用 authoring
K->>W: 生成并启动 supa-implement-workflow.js
W->>A: 各模块:实现 → turbo typecheck test
A-->>W: green / 失败
W-->>S: 汇总 → 阶段4(门控)
不满足则不做 Workflow 化,而在会话内串行实现。
.js/.jsx 导出 args(仅独立模块)。例:const args = [
{ file: 'app/next-shop/src/helper/order.js', testFile: 'app/next-shop/src/helper/order.test.js' },
{ file: 'app/next-shop/src/helper/pricing.js', testFile: 'app/next-shop/src/helper/pricing.test.js' },
{ file: 'package/order/src/helper/money.js', testFile: 'package/order/src/helper/money.test.js' },
];
--scope project 则 repo/.claude/workflows/,默认 user 则 ~/.claude/workflows/。supa-implement-workflow.js,并以 Workflow({ name: 'supa-implement-workflow' }) 启动。args 以实际 JSON 传入。export const meta = {
name: 'supa-implement-workflow',
description: '并行实现已 red 的模块,验证到 turbo typecheck test 变绿为止',
phases: [{ title: 'Implement' }, { title: 'Verify' }],
}
const VERDICT = { type: 'object', properties: { green: { type: 'boolean' }, note: { type: 'string' } }, required: ['green'] }
const out = await pipeline(args,
m => agent(`实现 ${m.file} 的桩本体并使 ${m.testFile} 变为 green。JS+JSDoc、ESM。不改动契约(JSDoc)。不残留 throw。`,
{ agentType: 'supa-implementer', label: `impl:${m.file}`, phase: 'Implement' }),
(_, m) => agent(`验证 ${m.file}:在该 workspace 执行 turbo run typecheck test(若无则 tsc -p jsconfig.json --noEmit 与 jest)。失败则返回原因。`,
{ agentType: 'supa-implementer', label: `verify:${m.file}`, phase: 'Verify', schema: VERDICT }))
return { results: out.filter(Boolean) }
subagent 为 agentType: 'supa-implementer'(内部也应用 JSDoc / tsc / jest 的纪律)。
npx claudepluginhub magcen-zone/supadevops --plugin supadevopsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.