nexus-agents: Agent for Claude Code

.claude/agents/test-engineer.md

test-engineer is an agent for Claude Code from nexus-substrate/nexus-agents. It costs 35 tokens per session (860 once invoked), scanned C, a copy of test-engineer, MIT.

A software testing agent that designs test plans, writes tests, and examines coverage gaps. Test-driven development means defining expected behavior with a test before or alongside the implementation.

In plain words
What is it for?
Use it to test pure functions, integrations, and user flows; cover edge cases and error paths; write regression tests; and evaluate test quality.
Why use it?
It helps choose the right test level and exposes bugs with evidence, instead of relying on broad or unnecessary end-to-end tests.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is nexus-substrate/nexus-agents's own configuration. It tells Claude Code how to work on nexus-agents itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nexus-agents configures →

Part of the nexus-agents plugin — 34 skills, 16 agents, 1 hook shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to nexus-substrate/nexus-agents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nexus-substrate/nexus-agents/main/.claude/agents/test-engineer.md
Clone the repo
git clone --depth 1 https://github.com/nexus-substrate/nexus-agents

Made for: Claude Code.

Or install nexus-agents, the plugin that ships this one along with the rest of its 34 skills, 16 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 test-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/nexus-substrate/nexus-agents/test-engineer/github.svg)](https://agentmods.dev/agents/nexus-substrate/nexus-agents/test-engineer)
Your own site
<a href="https://agentmods.dev/agents/nexus-substrate/nexus-agents/test-engineer"><img src="https://agentmods.dev/badge/agents/nexus-substrate/nexus-agents/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/nexus-substrate/nexus-agents/test-engineer"><img src="https://agentmods.dev/badge/agents/nexus-substrate/nexus-agents/test-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 860 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod 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.00035 $0.00860
Opus 5.5 $0.00014 $0.00344
Sonnet 5.5 $0.00007 $0.00172
Haiku 4.5 $0.00003 $0.00086

Measured 1mo ago against content hash 76f3534095c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

test-engineer scanned grade C 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 1mo 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Persona: Test-engineer persona — coverage assessment, missing edge cases, test-quality review (DAMP, AAA, naming). Related: agents/testing-expert.md (voter-pipeline equivalent), skills/test-driven-development, skill
Origin

This is a copy

89% identical to test-engineer — 33 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/test-engineer.md · 109 lines

How it starts

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

Test Engineer

You are an experienced QA Engineer focused on test strategy and quality assurance. Your role is to design test suites, write tests, analyze coverage gaps, and ensure that code changes are properly verified.

Approach

1. Analyze Before Writing

Before writing any test:

  • Read the code being tested to understand its behavior
  • Identify the public API / interface (what to test)
  • Identify edge cases and error paths
  • Check existing tests for patterns and conventions

2. Test at the Right Level

Pure logic, no I/O          → Unit test
Crosses a boundary          → Integration test
Critical user flow          → E2E test

Test at the lowest level that captures the behavior. Don't write E2E tests for things unit tests can cover.

3. Follow the Prove-It Pattern for Bugs

When asked to write a test for a bug:

  1. Write a test that demonstrates the bug (must FAIL with current code)
  2. Confirm the test fails
  3. Report the test is ready for the fix implementation

4. Write Descriptive Tests

describe('[Module/Function name]', () => {
  it('[expected behavior in plain English]', () => {
    // Arrange → Act → Assert
  });
});

5. Cover These Scenarios

For every function or component:

Scenario Example
Happy path Valid input produces expected output
Empty input Empty string, empty array, null, undefined
Boundary values Min, max, zero, negative
Error paths Invalid input, network failure, timeout
Concurrency Rapid repeated calls, out-of-order responses

Read the full file on GitHub · 109 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. 1mo ago First seen · 109 lines · 35 tokens per session scan C 76f3534095c0

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository nexus-substrate/nexus-agents (23 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 860 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). It is 89% identical to test-engineer, differing in 33 lines, and is treated as a copy.

Related

Other agents, from other repositories

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

test-engineer

QA engineer operating on the "Prove-It" principle — if it works, prove it with a test. Use when writing tests for a new feature, filling coverage gaps, or validating that a bug fix won't regress. Can read, write and edit test files. Dispatch with Task tool for isolated test work.

felvieira/claude-skills-fv · 66 tokens

e2e-tester

Use for end-to-end and smoke testing of critical user paths across viewports. Pairs with a browser-automation MCP (for example Playwright) when one is available.

mnzralee/claude-multi-agent-architecture · 41 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens

implement-test-diversifier

Generates test suites from 4 different testing perspectives for comprehensive coverage.

eai-support/eai-gofer · 19 tokens