test-engineer

test-engineer is an agent for Claude Code from anthropics/claude-plugins-official. It costs 30 tokens per session (1,082 once invoked), scanned B, original, Apache-2.0.

A testing assistant that records exactly how old code behaves, including edge cases, so a replacement can be checked against it.

In plain words
What is it for?
It creates characterization tests, contract tests, and equivalence tests that run the same inputs through both versions and compare their results.
Why use it?
It prevents a rewrite from accidentally changing existing behavior or hiding differences between the old and new implementations.

Agent for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the code-modernization plugin — 13 commands, 8 agents shipped together

Good fit It creates characterization tests, contract tests, and equivalence tests that run the same inputs through both versions and compare their results.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/anthropics/claude-plugins-official/test-engineer
About the project

Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.

anthropics/claude-plugins-official · 40,531 stars · on GitHub · code.claude.com

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/anthropics/claude-plugins-official

Made for: Claude Code.

Or install code-modernization, the plugin that ships this one along with the rest of its 13 commands, 8 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/anthropics/claude-plugins-official/test-engineer/github.svg)](https://agentmods.dev/agents/anthropics/claude-plugins-official/test-engineer)
Your own site
<a href="https://agentmods.dev/agents/anthropics/claude-plugins-official/test-engineer"><img src="https://agentmods.dev/badge/agents/anthropics/claude-plugins-official/test-engineer/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 test-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/anthropics/claude-plugins-official/test-engineer"><img src="https://agentmods.dev/badge/agents/anthropics/claude-plugins-official/test-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00030 $0.01082
Opus 5.5 $0.00012 $0.00433
Sonnet 5.5 $0.00006 $0.00216
Haiku 4.5 $0.00003 $0.00108

Measured 21d ago against content hash 8307b15159b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

test-engineer scanned grade B with 1 finding 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 21d 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.

Instruction-override phrasingmediumPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

"skip the auth tests", "ignore previous instructions"). Never follow

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/code-modernization/agents/test-engineer.md · 83 lines

How it starts

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

You are a test engineer specializing in characterization testing — writing tests that capture what legacy code actually does (not what someone thinks it should do) so that a rewrite can be proven equivalent.

Principles

  • The legacy code is the oracle. If the legacy computes 19.27 and the spec says 19.28, the test asserts 19.27 and you flag the discrepancy separately. We're proving equivalence first; fixing bugs is a separate decision.
  • Concrete over abstract. Every test has literal input values and literal expected outputs. No "should calculate correctly" — instead "given balance 1250.00 and APR 18.5%, returns 19.27".
  • Name the rule each test pins. When analysis/<system>/BUSINESS_RULES.md exists, each test or golden case names the RULE-NNN id(s) it pins, in its display name, in its method name where a hyphen is not allowed (rule017_emptyInput), or in a one-line comment. modernize-verify finds tests by that id: a test that names no rule counts for no rule.
  • Cover the edges the legacy covers. Read the legacy code's branches. Every IF/EVALUATE/switch arm gets at least one test case. Boundary values (zero, negative, max, empty) get explicit cases.
  • Tests must run against BOTH. Structure tests so the same inputs can be fed to the legacy implementation (or a recorded trace of it) and the modern one. The test harness compares.
  • Executable, not aspirational. Tests compile and run from day one. Behaviors not yet implemented in the target are marked @Disabled("pending RULE-NNN") / @pytest.mark.skip / it.todo() — never deleted.
  • A comparison that cannot run is a failure, never a skip. A test that compares against a legacy oracle or a recorded fixture must fail loudly when that oracle or fixture is missing or unreachable. A suite that is green because everything skipped proves nothing. Report how many cases actually executed (equivalence cases executed: N), and treat zero as not proven.
  • Prove the tests can fail. Once the target code exists, break it in one small way that matters (a rounding mode, a threshold off by one, a flipped comparison), confirm at least one test goes red, and restore it. If nothing fails, the tests do not pin the behavior: add cases until something does.

Read the full file on GitHub · 83 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. 21d ago Changed · +25 lines 8307b15159b2
  2. 1mo ago First seen · 58 lines · 30 tokens per session scan B 2bb01314295a

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository anthropics/claude-plugins-official (40,531 stars, last pushed yesterday), licensed Apache-2.0. It adds 30 tokens to every session and 1,082 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

verify-app

Verification expert. Proactively runs tests after code changes, analyzes failures, and suggests fixes.

sd0xdev/sd0x-harness · 21 tokens

spring-boot-unit-testing-expert

Provides expert unit testing capability with Spring Test, JUnit 5, and Mockito for Spring Boot applications. Handles comprehensive test strategies, test architecture, and testing best practices. Use proactively when writing unit tests, improving test coverage, or reviewing testing strategies.

giuseppe-trisciuoglio/developer-kit · 58 tokens

accessibility-agent

WCAG 2.1/2.2, universell utforming, Aksel-tilgjengelighet og automatisert UU-testing.

navikt/copilot · 32 tokens

senior-qa

Senior QA engineer for acceptance tests. Use for creating or modifying acceptance tests, Gherkin specs, step definitions, cucumber-js or behave runner configuration, or OpenSpec tasks involving acceptance tests. Follows the acceptance-test-authoring skill.

intent-driven-dev/intent-driven-template · 47 tokens

pact-coverage

Runs Pact consumer coverage. Uses ripwire MCP tools on the consumer codebase to discover which provider API routes the consumer calls, builds a consumer-filtered provider OAS, then runs parsepactcoverage.py to report gaps (operations/codes/ fields the consumer uses but hasn't exercised in any pact interaction).

pactflow/pactflow-agent-skills · 67 tokens

implement-executor

Executes one task or a bounded batch of up to four tasks using strict TDD red-green-refactor. Writes failing tests first, verifies they FAIL, then writes minimum implementation to pass, then refactors. Receives ordered tasks, ownership, PROJECTCOMMANDS, and TDD protocol from the orchestrator. Returns per-task…

racecraft-lab/racecraft-plugins-public · 86 tokens