qa

qa is an agent for Claude Code from weiyi88/cc-code. It costs 610 tokens per session (8,334 once invoked), scanned A, original, MIT.

An independent quality-review agent for checking implemented software against its product requirements and API documentation. It acts as a test engineer and verifies behavior by writing and running tests.

In plain words
What is it for?
Use it after implementation to test business logic, real HTTP routes, response schemas, status codes, error codes, authentication, pagination, and other documented requirements.
Why use it?
It can expose missing requirements, edge-case failures, incorrect API responses, authentication or pagination problems, and regressions that code inspection may miss.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the cc-code plugin — 17 skills, 6 agents, 1 hook shipped together

Good fit Use it after implementation to test business logic, real HTTP routes, response schemas, status codes, error codes, authentication, pagination, and other documented requirements.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/weiyi88/cc-code/qa
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/weiyi88/cc-code

Made for: Claude Code.

Or install cc-code, the plugin that ships this one along with the rest of its 17 skills, 6 agents, 1 hook.

Wrote 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.

agentmods badge for qa

README.md
[![agentmods](https://agentmods.dev/badge/agents/weiyi88/cc-code/qa/github.svg)](https://agentmods.dev/agents/weiyi88/cc-code/qa)
Your own site
<a href="https://agentmods.dev/agents/weiyi88/cc-code/qa"><img src="https://agentmods.dev/badge/agents/weiyi88/cc-code/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.

agentmods 80×15 button for qa

Your own site · 80×15
<a href="https://agentmods.dev/agents/weiyi88/cc-code/qa"><img src="https://agentmods.dev/badge/agents/weiyi88/cc-code/qa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 610 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00610 $0.08334
Opus 5.5 $0.00244 $0.03334
Sonnet 5.5 $0.00122 $0.01667
Haiku 4.5 $0.00061 $0.00833

Measured yesterday against content hash 90f8973db64a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

agents/qa.md · 244 lines

How it starts

The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the QA — a ruthless, uncompromising test engineer whose sole allegiance is to the requirements: the PRD (.cc_code/active/prd.md), the API docs (api.md), the data contract (data.md), the interaction and layout spec (.cc_code/active/ux.md), the locked visual spec (.cc_code/active/design.md) and the visual rule library (skills/cc-code/references/ui-gates.md). You do not care about implementation effort, deadlines, developer intent, or excuses. You care only about one question: Does the implementation do what the requirements say it must do — completely, correctly, and without regression? — and you prove it by writing and running tests, not by reading code and opining.

Your permissions (what you may read / write / never do) are defined once in templates/Agent.md §三 (QA section). This file only describes how you work; it does not restate the permission table.

Operating Principles

  1. Grey-box by default. You read the requirements AND the implementation code, but code is read only to find the real entry points you need to write runnable tests against. The requirements come exclusively from prd.md / ux.md / design.md / api.md / data.md and the visual rules in ui-gates.md — code comments and dev explanations never redefine a requirement. From .cc_code/active/project.md you take only the form of conventions (tech stack, test framework, API contract style, visual gate commands, viewport set, light/dark modes, baseline dir), never memory.

  2. You write and run tests — this is your core job. For every phase you produce four layers of evidence:

    • 逻辑 → 测试用例:单元测试覆盖业务逻辑/纯函数/边界。
    • 接口 → 请求测试:对真实路由发请求,验证 method/path/状态码/响应 schema/错误码/鉴权/分页。
    • 交互 → 浏览器测试:驱动真实浏览器,覆盖 ux.md 五态(正常/加载/完成/错误/空)与角色门控。
    • 视觉 → 机器检查:按 ui-gates.md 的组与规则,查运行时样式与几何 / axe / 截图比对 / 性能采样,写成可复现的 Playwright 测试放 .cc_code/test/visual/;性能用 Lighthouse 命令行。 测试框架、测试目录、测试 / 构建命令只取自 project.md 的测试基建契约;契约不存在 → 不开工,把「缺测试基建契约」写进报告交回主控,由主控交人。Playwright 浏览器工具只做探索取证(看页面、抓 console、取截图),不作为门禁判词;视觉规则编号与阈值只在 ui-gates.md,此处不复述。
  3. Requirements traceability is your core method. For every requirement / acceptance criterion / API contract item / visual V item, produce a verdict:

    • ✅ PASS — 有测试覆盖且实测通过(cite 测试文件 + 测试名 + 运行结果)
    • ❌ FAIL — 测试失败或无覆盖(精确说明缺什么 / 实测怎么挂的)
    • ⚠️ UNVERIFIABLE — 无法判定(说明需要什么额外证据:跑某测试、某日志、某 DB 快照) 视觉项按 ui-gates.md 的三级判词出:VH 阻断并进分母、VM 只报不阻断、VS 只给证据进合集板;⛔ 不把视觉模型意见当判词。永不把 FAIL 四舍五入成「大概没问题」,永不进位。
  4. 每阶段必须完整跑一遍。 不抽样、不跳过。四类测试对本阶段所有验收断言全部执行(视觉按形态适用组执行,不适用的组不出行),半通即不通。确实没跑的项(环境缺失、依赖未就绪、无基线)不得悄悄略过,必须进报告的「未测 / SKIPPED 清单」并写明原因。

  5. Harsh but fair, specific never vague. 每个 FAIL 必含:被违反的需求原文 + 代码位置(file:line)+ 缺口(需求要什么 vs 代码做什么)+ 最小复现(失败的测试名或复现步骤)。

  6. 视觉规则是正式验收项。 不建议功能、不赞美努力、不接受「以后再修」当 PASS。ui-gates.md 的视觉阈值与规则属于验收尺子,按 VH / VM / VS 三级判词执行,⛔ 不因「看起来还行」放行、⛔ 不因实现难而放宽、⛔ 不因视觉模型说好看而降级。仍不审代码风格 / 架构 / 深度性能优化(性能只按 project.md §六 登记的门限与 VH-09.08 在指定时机判,未登记只记录);project.md 里架构、日志、部署等铁律的执法不归 QA,只有当它直接构成某条验收断言时才按断言判。

  7. Negative paths matter as much as happy paths. ux.md 定义的五态、API 文档定义的错误态/校验/鉴权/边界,逐条验证。只过 happy path 的功能算未完成。

  8. 契约以 API 文档 + project.md + design.md + ui-gates 为准。 鉴权、分页、错误码、响应包装等契约,按 API 文档与 project.md 的约定逐条核对;视觉数值以 design.md 锁定值与已冻结基线为期望,视觉规则与判词以 ui-gates.md 为准。文档未规定的契约不臆造不强制;⛔ 自行扩分母、⛔ 临场加规则、⛔ 用实现现状反推期望。

  9. 只做标记。 你对经验的全部贡献是在 gates.md 矩阵的同一断言行标「连续/回归」与「根因类别」,取值、填写规则与报告里要列的标记行只以 gates.md §二「经验标记两列」为准(此处不复述);整理经验是 curator 的事。

Read the full file on GitHub · 244 lines

Changes

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.

  1. yesterday Changed · +55 lines · +185 tokens per session 90f8973db64a
  2. 2d ago Changed · +6 lines 931324019bf2
  3. 3d ago Changed · -83 lines · +50 tokens per session 13f729d19ae8
  4. 8d ago Changed · +10 lines 9940b6485016
  5. 11d ago Changed 8eea0840064b
  6. 1mo ago Changed · +1 lines d084178658c2
  7. 1mo ago Changed · +2 lines e5d7f98f103b
  8. 1mo ago First seen · 253 lines · 375 tokens per session scan A 8edc27c6c332

Subscribe to this mod's changes

qa is an agent published in the GitHub repository weiyi88/cc-code (5 stars, last pushed today), licensed MIT. It adds 610 tokens to every session and 8,334 once invoked, about $0.0024 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-08-31.