用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Mrlyk/superharness --skill qa命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Set up superharness in a project: scan the codebase to discover conventions and tech stack, write findings into .superharness/spec/, then distill them into AGENTS.md and CLAUDE.md. Use when the user asks to set up superharness, to scan or re-scan the codebase for conventions, or to generate or refresh AGENTS.md / CLAUDE.md.
Session start guide: explains how to use superharness skills and conventions. Injected by SessionStart hook.
Generate a developer-facing efficiency and focus-area report for a completed Superharness task. Use when the user asks to "生成开发者报告", "开发交接报告", "to-coder", "developer report", or when /superharness:to-coder is invoked.
基于 SOC 职业分类
正在显示 SKILL.md
| name | qa |
| description | Single entry point for all verification. Auto-detects E2E cases and runs e2e-verify internally via CLI. |
superharness qa 是用户在任务首次完成后明确选择的可选交付动作。只有显式调用该命令时,任务才从 complete 进入 qa;用例文件存在不会自动启动 QA 或阻断交付。
superharness qa --task .superharness/tasks/{task} [--json] [--services name1,name2]
superharness qa --task .superharness/tasks/{task} --decision accept-risk|fix
tty: trueWithout tty: true, output is buffered in pipes and the user sees nothing for 30-60 seconds. The user will feel blind and anxious.
Correct exec_command call:
{"cmd": "superharness qa --task .superharness/tasks/{task} --json 2>&1", "tty": true, "yield_time_ms": 15000}
Key parameters:
tty: true — MANDATORY. Streams output to user terminal in real-time.yield_time_ms: 15000 — Poll every 15s. Do not exceed 30000.Each time you poll the running process and get new output, share the key progress with the user. Do not just say "QA is running, waiting". Instead, relay what you see:
The user needs to know what step the QA is on, not just that it's "running".
config.yaml -> qa.services:
managed: HTTP POST to endpoint (not yet implemented)autonomous: Run command, read output file for pass/fail countsagent: Produce signal for AI agent to invoke a skille2e-cases.yaml in the task directory. When found, calls superharness e2e verify directly and reads qa-issues.json for results. No config entry needed.The superharness qa command outputs detailed execution logs to the terminal in real-time. When E2E verification runs, you will see:
@eN)These logs are visible to the user in the terminal during execution. Do not discard them — they are valuable for diagnosing failures.
When running with --json, the structured JSON result appears at the END of the output (after all execution logs). Parse the JSON from the end of the command output.
After QA completes, do not just report pass/fail counts. Share with the user:
Example response to user:
E2E 验证完成:4/6 通过,2/6 失败。
失败的 case:
grey-check-hit:断言失败,文本"命中"未找到。mock 拦截计数为 1(拦截成功),可能是 mock body 格式问题。截图:evals/run_xxx/process/grey-check-hit/screenshots/step-3.pnggrey-check-error:元素未找到,未找到 alert 组件。截图:evals/run_xxx/process/grey-check-error/screenshots/step-3.png完整报告:
.superharness/tasks/xxx/evals/run_xxx/qa-issues.json
Do NOT give a bare "QA passed" or "QA failed" without context. The user needs to see what happened.
In --json mode, structured JSON appears at the end of terminal output:
{
"schema_version": "qa-result/v1",
"task_id": "...",
"services": [
{ "name": "e2e-verify", "type": "builtin", "status": "done", "result": { "total": 6, "passed": 5, "failed": 1, "issues": [...] } }
],
"summary": { "total_services": 1, "completed": 1, "signaled"
Read the status field for each service:
done + failed: 0 — Passed, ready to finalizedone + failed: >0 — Run superharness:fix to address issues, then re-run QAerror — Infra/auth failure, check error message (also visible in terminal output above the JSON)signal — Custom agent service, invoke the indicated skill进入 qa 后,自动发现的 E2E 必须执行,--services 只筛选配置服务。QA 通过自动回到 complete;fail/error 停留在 qa,由用户明确选择 accept-risk(记录决定后回到 complete)或 fix(记录决定后进入 implement)。持久摘要只写入 verification.md 与 trace.jsonl,并绑定 Verified Implementation HEAD。摘要可保存本次原始问题源的任务内相对路径、service 与 SHA-256,用于中断恢复时验证 run/revision 关联;issue 明细仍只存在本地 qa-issues.json 或 qa-results-<service>.json,不得写入持久证据,也不得创建 qa-summary.json。
superharness:e2e-verify directly — always route through superharness qatype: builtin to config.yaml — E2E is auto-detected, not a configured service--services is presentsuperharness qa without tty: true — the user will see nothing for 30-60 seconds and feel blind