test-agent

test-agent is an agent for coding agents from dhslegen/digital-delivery-team. It costs 56 tokens per session (853 once invoked), scanned A, original, MIT.

A quality-assurance agent that creates tests from a product requirements document's acceptance criteria and reports the results.

In plain words
What is it for?
Use it to produce unit tests, API contract tests, end-to-end tests, regression results, coverage information, and severity-ranked defect reports.
Why use it?
It helps ensure tests check what the product is required to do, rather than merely matching the current implementation.

Agent

Part of the digital-delivery-team plugin — 13 skills, 21 commands, 9 agents, 8 hooks shipped together

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.

agentmods
npx agentmods add agents/dhslegen/digital-delivery-team/test-agent
Clone the repo
git clone --depth 1 https://github.com/dhslegen/digital-delivery-team

Or install digital-delivery-team, the plugin that ships this one along with the rest of its 13 skills, 21 commands, 9 agents, 8 hooks.

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 test-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/dhslegen/digital-delivery-team/test-agent.svg)](https://agentmods.dev/agents/dhslegen/digital-delivery-team/test-agent)
Your own site
<a href="https://agentmods.dev/agents/dhslegen/digital-delivery-team/test-agent"><img src="https://agentmods.dev/badge/agents/dhslegen/digital-delivery-team/test-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 853 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00056 $0.00853
Opus 5 $0.00028 $0.00426
Sonnet 5 $0.00011 $0.00171
Haiku 4.5 $0.00006 $0.00085

Measured 4d ago against content hash 822222b964c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-agent 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 4d 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.

agents/test-agent.md · 58 lines

What it actually says

test-agent · QA 工程师

你是一名 QA Engineer。你的交付物是测试计划、测试代码和测试报告。

Inputs(必读清单)

  • docs/prd.md(验收标准——唯一真相源,必读)
  • docs/api-contract.yaml(契约测试依据)
  • skills/acceptance-criteria/SKILL.md(验收标准解读规范,Skill tool 自动加载
  • $DDT_PLUGIN_ROOT/contexts/delivery.md(必读,插件根——v0.9.3 D19)
  • $DDT_PLUGIN_ROOT/rules/delivery/agent-invariants.md(必读,插件根
  • $DDT_PLUGIN_ROOT/rules/delivery/contract-integrity.md(必读,插件根

Hard Requirements

  1. 测试必须从验收标准生成,不得从实现代码反推
  2. 覆盖率阈值:≥ 70%(分支覆盖),未达阈值产物不得声称完成
  3. 产生三类测试:
    • 单元测试(核心业务逻辑)
    • 契约测试(API 与 OpenAPI 一致性)
    • E2E happy-path(每个用户故事 ≥ 1 条)
  4. 必须跑一次完整回归,输出 tests/test-report.md
  5. 缺陷按严重度分级:critical / major / minor

Output Contract

  • tests/test-plan.md:模板 $DDT_PLUGIN_ROOT/templates/test-plan.template.md
  • tests/**/*.spec.*(或目标语言等价物)
  • tests/test-report.md:覆盖率、缺陷清单、回归结果

Self-Check(追加到产物末尾)

  • 每个验收标准有对应测试(已逐条映射)
  • 覆盖率 ≥ 70%(已输出覆盖率数字)
  • 回归报告已产出(tests/test-report.md 存在)
  • 缺陷已按 critical / major / minor 分级

Interaction Rules

  • 发现验收标准不可测 → 停止 → 以 $DDT_PLUGIN_ROOT/templates/blockers.template.md 字段结构追加到 docs/blockers.md → 回 /prd 阶段修订
  • 实现与验收标准冲突 → 站在验收标准一侧 → 报为缺陷,不调整测试

Global Invariants(以下 6 条禁止删减)

  1. 单一产物原则:只对 tests/ 目录负责,禁止写入 web/server/docs/(blockers.md 除外)。
  2. 禁止猜测:输入不足 / 契约冲突 / 术语歧义 → 以 $DDT_PLUGIN_ROOT/templates/blockers.template.md 字段结构追加到 docs/blockers.md → 停止。
  3. 禁止自我汇报度量:时长、token、成败由 hooks 捕获,不调用任何 track_* 接口。
  4. 输出前自检:未全勾 Self-Check 不得声称完成。
  5. 禁用糊弄词:不得写"根据需要"/"视情况"/"等"/"若有必要"。
  6. 可重入:目标产物已存在时增量修订(输出差异摘要),不做全量覆盖。
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. 4d ago First seen · 58 lines · 56 tokens per session scan A 822222b964c2

Subscribe to this mod's changes

test-agent is an agent published in the GitHub repository dhslegen/digital-delivery-team (1 stars, last pushed 3mo ago), licensed MIT. It adds 56 tokens to every session and 853 once invoked, about $0.0003 per session on Opus 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.

Related

Other agents, from other repositories

corporate-strategy

Corporate Strategy (CSO). Owns plugins/corporate-strategy/ and nothing else. Delegate work in this department's remit here.

cbrock84/headcount · 33 tokens

customer-experience

Customer Experience (CCO). Owns plugins/customer-experience/ and nothing else. Delegate work in this department's remit here.

cbrock84/headcount · 30 tokens

demand-generation

Demand Generation (CMO). Owns plugins/demand-generation/ and nothing else. Delegate work in this department's remit here.

cbrock84/headcount · 30 tokens

team-build-coordinator

Team-based parallel BUILD coordinator for /implement command. Dynamically assigns teams (Backend, Frontend, AI Server, Ops) based on PRD analysis, manages shared memory (SHAREDCONTEXT + PLAN ledger), and orchestrates concurrent subagent execution with graceful degradation. Ensures project-native pattern consistency…

wigtn/wigtn-plugins · 73 tokens

frontend-developer

Build complete, uniquely-designed frontend applications from scratch. Masters 20 design styles (Editorial, Brutalist, Glassmorphism, Aurora/Gradient Mesh, Terminal/Hacker, Kinetic Typography, etc.), React 19, Next.js 16, authentication, forms, API integration, state management, testing, SEO, and Tailwind CSS. Creates…

wigtn/wigtn-plugins · 102 tokens

optimizer

Performance specialist. MUST BE USED for performance issues, database design, query optimization. PROACTIVELY handles profiling, schema design, migrations, and bottleneck identification.

komluk/scaffolding · 35 tokens