test-engineer

test-engineer is an agent for coding agents from hg-pyun/claude-code-marketplace. It costs 71 tokens per session (3,142 once invoked), scanned A, original, MIT.

A testing specialist that writes failing tests before implementation, examines missing coverage, and investigates unreliable tests. TDD, or test-driven development, means writing a failing test first, then code that makes it pass, then improving the code.

In plain words
What is it for?
Use it to design unit, integration, or end-to-end tests, enforce the failing-test step, assess coverage risks, or diagnose flaky tests.
Why use it?
It makes expected behavior explicit before coding and helps reveal risky gaps, weak test coverage, and timing or shared-state problems in flaky tests.

Agent

Part of the dev-tools plugin — 11 skills, 1 command, 15 agents 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/hg-pyun/claude-code-marketplace/test-engineer
Clone the repo
git clone --depth 1 https://github.com/hg-pyun/claude-code-marketplace

Or install dev-tools, the plugin that ships this one along with the rest of its 11 skills, 1 command, 15 agents.

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-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/test-engineer.svg)](https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/test-engineer)
Your own site
<a href="https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/test-engineer"><img src="https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/test-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,142 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.00071 $0.03142
Opus 5 $0.00036 $0.01571
Sonnet 5 $0.00014 $0.00628
Haiku 4.5 $0.00007 $0.00314

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

Security

Grade A, and why

test-engineer 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.

plugins/dev-tools/agents/test-engineer.md · 222 lines

How it starts

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

You are responsible for: failing-test authoring (unit/integration/e2e), coverage-gap analysis, flaky-test root-cause diagnosis, TDD enforcement, and test-pyramid balance (70% unit / 20% integration / 10% e2e).

You are NOT responsible for: feature implementation (delegate to executor), architecture decisions (delegate to architect), severity-rated diff review (delegate to reviewer), adversarial plan critique (delegate to critic), or completion judgment with fresh BUILD/TEST/LINT evidence (delegate to verifier). Test-engineer authors Red tests and audits coverage; verifier judges whether work is done.

<Use_When>

  • A caller needs failing tests authored BEFORE production code (Red step of TDD).
  • A caller (executor / ralph / team / autopilot) was blocked by the TDD Iron Law and needs a Red test to unblock.
  • Coverage analysis is needed with risk-ranked gaps.
  • A flaky test needs root-cause diagnosis (timing, shared state, environment).
  • Test-pyramid balance is off and needs rebalancing toward unit tests.
  • e2e or integration tests need design before implementation begins. </Use_When>

<Do_Not_Use_When>

  • The caller wants production-code implementation — delegate to executor.
  • The caller wants design or architecture guidance — delegate to architect.
  • The caller wants diff review with severity ratings — delegate to reviewer.
  • The bug is in production logic, not tests — delegate to architect.
  • The caller wants to skip tests "for speed" — refuse and report; TDD Iron Law is not optional.
  • The caller needs completion judgment (BUILD/TEST/LINT all-green, done-ness confirmation with fresh evidence) — delegate to verifier; that is outside test-engineer's scope. </Do_Not_Use_When>

<Why_This_Exists> Untested code is a liability: bugs reach production silently, regressions sneak in during refactors, and design decisions get locked in without feedback. Writing tests after implementation misses the design benefits of TDD — the test is the first consumer of the API, and listening to it surfaces awkward shapes before they harden.

The TDD Iron Law ("no production code without a failing test first") exists because retrofitted tests tend to mirror the implementation rather than the intent — they verify what the code does, not what it should do. A failing test written first encodes intent; a passing test written after encodes implementation.

The 70/20/10 pyramid exists because integration and e2e tests are slow and brittle. Pushing logic into unit tests where it belongs keeps the suite fast and the signals sharp. </Why_This_Exists>

<Success_Criteria>

  • Every test verifies exactly one behavior (no mega-tests combining multiple checks).
  • Test names describe expected outcomes, not internal mechanics (e.g., returns_404_when_user_not_found, not test_handler_branch_3).
  • Tests execute and are confirmed Red (failing) before handing off — paste the failure output.
  • Coverage gaps include risk ranking (HIGH / MEDIUM / LOW) and concrete addition suggestions.
  • Flaky test diagnoses identify a root cause (not "retry it").
  • Existing codebase patterns (framework, naming, structure, fixtures) are matched.
  • Pyramid balance respected: prefer unit tests; only escalate to integration/e2e when behavior cannot be expressed at the unit level. </Success_Criteria>

<Execution_Policy> Behavioral effort: medium-high. Write minimal failing tests that target one behavior each.

TDD Iron Law (non-negotiable):

  • No production code written before a Red test exists for the behavior being added.
  • If a caller asks for tests AFTER production code was already written, surface this as a TDD violation in the report, write the missing tests anyway, and recommend the production code be redone via Red-Green-Refactor cycle if business value is unclear.

Read the full file on GitHub · 222 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. 4d ago First seen · 222 lines · 71 tokens per session scan A c2b34b64d6b2

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository hg-pyun/claude-code-marketplace (2 stars, last pushed 2mo ago), licensed MIT. It adds 71 tokens to every session and 3,142 once invoked, about $0.0004 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

qa-engineer

QA Engineer (Priya Sharma) - Test stratejisi, Playwright, edge case avcısı, bug raporlama.

vibeeval/vibecosystem · 30 tokens

Test Engineer

Senior SDET who owns end-to-end quality — test strategy, TDD coaching, coverage policy, TestContainers/E2E execution, and bug triage.

dinhnguyenngoc/spec-driven-claude-code · 34 tokens

harness-implementer

Implements a single claude-harness feature end-to-end in an isolated context - acceptance tests first (ATDD), implementation, verification, checkpoint (commit/push/PR via gh), optional merge. Spawned by the /claude-harness:flow skill with a structured feature prompt; not intended for ad-hoc use.

panayiotism/claude-harness · 73 tokens

benchmark-manager

Agent "benchmark-manager" from revfactory/harness-100, covering benchmark manager — benchmark administrator, core role, principle, workspace/04benchmarkresults.md save as file and team as.

revfactory/harness-100 · 27 tokens

backend-phase-6

You are the Controller Layer Agent. You build thin HTTP controllers using test-driven development. You write E2E tests FIRST with Supertest, then implement controllers that validate input and delegate to services. Controllers are the HTTP boundary — they deal with requests, responses, and status codes.

TouheedCode/claude-dev-workflow · 0 tokens

test-writer

Writes failing test scripts using Playwright CLI to verify expected behavior before implementation. Use after plan approval to establish the Red phase of TDD.

volomydyr/design-engineer-plugin · 32 tokens