From supadevops
supadevops 阶段4(验收)的并行加速 authoring 技能。当已实现、且 endpoint(Route Handler)、end2end(next 路由 / Expo web / Expo 画面)的验收对象有3个以上、且用户选择启用时,生成 .claude/workflows/supa-acceptance-workflow.js 并并行生成、执行 Playwright/Maestro 的验收测试。用于在 supa-tdd 的阶段4对并行化取得同意的场景。当对象较少、无选择启用时不使用。
How this skill is triggered — by the user, by Claude, or both
Slash command
/supadevops:supa-acceptanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
将 `supa-tdd` 的阶段4(endpoint、end2end 的**实现后的验收测试**)以 Workflow 并行化。**不内置模板**。生成 `.claude/workflows/supa-acceptance-workflow.js` 并以 `Workflow({ name: 'supa-acceptance-workflow' })` 启动。
将 supa-tdd 的阶段4(endpoint、end2end 的实现后的验收测试)以 Workflow 并行化。不内置模板。生成 .claude/workflows/supa-acceptance-workflow.js 并以 Workflow({ name: 'supa-acceptance-workflow' }) 启动。
sequenceDiagram
participant S as supa-tdd(会话)
participant K as supa-acceptance(本技能)
participant W as Workflow 工具
participant A as supa-implementer ×N
S->>K: 阶段4、选择启用
K->>W: 生成并启动 supa-acceptance-workflow.js
W->>A: 逐对象:生成验收测试 → 执行
A-->>W: pass / 失败
W-->>S: 汇总 → 阶段5(门控)
args(kind 为 endpoint / e2e-web / e2e-native)。例:const args = [
{ kind: 'endpoint', target: 'POST /api/orders', spec: 'app/next-shop/src/endpoint/orders.spec.js' },
{ kind: 'e2e-web', target: '/checkout', spec: 'app/next-shop/src/end2end/checkout.spec.js' },
{ kind: 'e2e-native', target: '主页画面', spec: 'app/expo-shop/src/end2end/native/home.yaml' },
];
--scope project 则 repo/.claude/workflows/,默认 user 则 ~/.claude/workflows/。supa-acceptance-workflow.js 并启动。args 为实际 JSON。export const meta = {
name: 'supa-acceptance-workflow',
description: '为 Route Handler 生成 endpoint、为路由/画面生成 end2end,并行生成与执行',
phases: [{ title: 'Author' }, { title: 'Run' }],
}
const VERDICT = { type: 'object', properties: { pass: { type: 'boolean' }, note: { type: 'string' } }, required: ['pass'] }
const out = await pipeline(args,
t => agent(`将 ${t.target} 的验收测试生成到 ${t.spec}。kind=${t.kind}。` +
`endpoint=Playwright request(通用、外部服务以 env stub 的 dev 服务器、无浏览器),` +
`e2e-web=Playwright(浏览器),e2e-native=Maestro 流程(*.yaml)。` +
`放置:endpoint=src/endpoint/,e2e-web=next 为 src/end2end/、Expo 为 src/end2end/web/,e2e-native=src/end2end/native/。`,
{ agentType: 'supa-implementer', label: `author:${t.target}`, phase: 'Author' }),
(_, t) => agent(`执行 ${t.spec} 并返回结果(endpoint/e2e-web=Playwright,e2e-native=prebuild+expo run 后 maestro test)。`,
{ label: `run:${t.target}`, phase: 'Run', schema: VERDICT }))
return { results: out.filter(Boolean) }
endpoint/end2end 较重且非交互,故不纳入 Stop 钩子(以本 Workflow 或 CI 执行)。
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.