Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/weiyi88/cc-codenpx agentmods add skills/weiyi88/cc-code/agent-whole-qaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/weiyi88/cc-code/agent-whole-qa)<a href="https://agentmods.dev/skills/weiyi88/cc-code/agent-whole-qa"><img src="https://agentmods.dev/badge/skills/weiyi88/cc-code/agent-whole-qa/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/weiyi88/cc-code/agent-whole-qa"><img src="https://agentmods.dev/badge/skills/weiyi88/cc-code/agent-whole-qa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.10238 |
| Opus 5.5 | $0.00014 | $0.04095 |
| Sonnet 5.5 | $0.00007 | $0.02048 |
| Haiku 4.5 | $0.00003 | $0.01024 |
Grade A, and why
agent-whole-qa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 439 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agent-whole-qa — 全量验收 + 修复闭环编排器
⚠️ 暂停(1.17.0 起):本命令依赖旧 qa 的全量验收 / 复现取证职责;qa 已改造为检测员(只比对本次改动),本命令待重新设计,暂勿使用。日常交付走
/cc-code:check-fix。
与
qaagent 的关系:qa是「单模块测一次」的原子能力;本 skill 是「全模块 × 多轮 + 修复回环」的编排层,复用qa,不重写测试逻辑。 与agent-mvp的关系:agent-mvp每阶段用qa做增量验收;本 skill 用于 MVP 收口前的一次性全量清算。 运行中零提问:ESCALATE、视觉规格错、未收敛都不中途问人,记账后照跑能跑的部分,结尾按../cc-code/references/dev-qa-loop.md§九 的交人报告格式一次交人(本命令只借用该节的挂起与交人报告,不适用单段回环)。 主控是编排者,不扮演任何角色:派哪个 agent 就是哪个角色(权限唯一出处 =active/Agent.md§三)。主控的写权限见active/Agent.md§一;清点与汇总记账、gates.md、docs/qa/**、视觉测试与截图基线全归 qa,修复归 dev。
⛔ 六条硬约束(违反任一即本次验收无效)
1. 你是编排器,不是执行者
❌ 错:agent-whole-qa 自己测、自己修
→ 测的人知道修的人怎么想,修的人知道测的人怎么测 → 互相糊弄
✅ 对:agent-whole-qa 只做 清点 / 分发 / 汇总 / 循环控制
agent-whole-qa(不碰代码,不碰需求,不碰验收记录)
├─ Agent(subagent_type=qa) ──► 清点 / 测 / 汇总记账(测的时候只拿到断言,不知道谁会修)
└─ Agent(subagent_type=dev) ──► 修(只拿到 FAIL 清单,不知道怎么测的)
主控绝不自己写测试、自己改代码。发现自己在写 expect(...) 或改 src/ 就是越界了。
2. 分母先锁定,再开测
INVENTORY 阶段的产物落盘后本轮分母不可变更。禁止中途以「这个按钮不用测」「这个接口是内部的」为由缩小分母。要改分母,只能作废本轮重新开始。
全量分母固定为五个基础分母 + 一个视觉组合子行:
断言 A / 页面五态 U / 可交互元素 E / 接口 / 视觉 V 行
└─ 视觉组合子行 = V 行 × 视口集合 × 亮暗 ← 只记组合覆盖,⛔ 不乘进 V 行分母
视觉分母口径(唯一出处 = skills/cc-code/references/ui-gates.md §8.2)
全量轮:V0.02 全站 + 每页每适用组 + 全站性能 V0.09
V0.01(设计数值)只在锁定前复核出,全量轮不出
⛔ V 行不按「视口 × 亮暗」乘开;屏宽与亮暗写证据列
3. 禁止修需求,也禁止动尺子
本 skill 及其派生的 dev subagent 对以下文件【只读,绝对禁写】:
active/prd.md active/ux.md active/api.md
active/design.md ← 视觉数值(V 段判词的尺子)
.cc-code/test/visual/** ← 视觉测试与基线(qa 独占写)
.cc-code/test/visual/baseline/** ← 截图基线与允许值集合
修不动 → 标记 ESCALATE,进结尾交人报告(§九)
这是 AI 修 bug 时最常走的偷懒路径:改断言 / 改基线让测试变绿。不用规则堵死,它一定会走。⛔ 主控不代写
design.md、不代为更新基线。
4. 收敛门控
第 N 轮 FAIL 数 必须 < 第 N-1 轮 FAIL 数
├─ 不递减 → 停止,报告「未收敛」,出交人报告(§九)
├─ 出现新增 FAIL → 停止(修 A 坏 B),报告震荡点,建议回滚本轮
└─ 最多 3 轮
5. 回归门(每轮必跑)
每轮修完,重跑范围 = 本轮 FAIL 项 + affected 算出的真实影响面
↑ 缺这半段就会「越修越坏」而毫不知情
⭐0.10.0:影响面从「同模块已 PASS 项」升级为 codegraph affected 算出的
传递闭包 —— 同模块是人凭直觉画的圈,affected 是沿 import 图算出的事实,
跨模块的隐式依赖只有后者抓得到。
codegraph affected <本轮修改的源文件...>
非 .spec/.test 命名的测试补跑 --filter "<project.md §六 登记的 glob>"
返回空 → 报一行「未匹配到测试,本轮用全量」+ 自查三点:
① 测试代码是否被 .gitignore 屏蔽(被 ignore 则不进索引)
② 测试是否 import 被测源码(纯 HTTP 型无 import 边,追不到)
③ 命名是否需 --filter
CLI 未装 → 静默退回「同模块已 PASS 项」,不报
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 27d ago Changed · +2 lines · +3 tokens per session 7ebf9e4f953b
- 1mo ago Changed a9ced43f3e63
- 1mo ago Changed · +1 lines b87cb1004d03
- 1mo ago Changed · +88 lines b73e30df0c86
- 1mo ago Changed · +54 lines · +6 tokens per session 2e98266d4aeb
- 1mo ago Changed · +5 lines fae993c0e68c
- 2mo ago Changed · -99 tokens per session c6a329396b8d
- 2mo ago First seen · 289 lines · 125 tokens per session scan A a765fa9a9993
agent-whole-qa is a skill published in the GitHub repository weiyi88/cc-code (5 stars, last pushed 27d ago), licensed MIT. It adds 35 tokens to every session and 10,238 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.
agent-whole-qa compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-whole-qaweiyi88/cc-code | Skill | 5 | 27d ago | MIT | A | 35 | Claude Code, Codex |
| state-machineMadAppGang/claude-code | Skill | 290 | 8mo ago | MIT | A | 20 | Claude Code, Codex |
| skill-creatortae0y/python-project-template | Skill | 15 | 3mo ago | none | A | 64 | Claude Code |
| mutation-testingtae0y/python-project-template | Skill | 15 | 3mo ago | none | A | 23 | Claude Code |
| planningtae0y/python-project-template | Skill | 15 | 3mo ago | none | A | 22 | Claude Code |
| testingtae0y/python-project-template | Skill | 15 | 3mo ago | none | A | 17 | Claude Code |
| davinci-definetae0y/python-project-template | Skill | 15 | 3mo ago | none | A | 52 | Claude Code |