clauder: Agent for Claude Code

.claude/agents/test-engineer.md

test-engineer is an agent for Claude Code from spacehendrix/clauder. It costs 64 tokens per session (1,150 once invoked), scanned A, original, Apache-2.0.

A test-engineering agent that checks whether important changed behaviour is covered by tests, then writes or maintains behaviour-focused tests and a short report. It does not modify production code.

In plain words
What is it for?
Use it after significant code changes to assess test sufficiency, add or update tests and fixtures, and record test metrics in .test-reports/.
Why use it?
It helps reveal missing coverage for inputs, outputs, outcomes, and edge cases before defects reach users. It also preserves the project's existing test setup unless installing a test runner is explicitly authorised.

Agent for Claude Code

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

This is spacehendrix/clauder's own configuration. It tells Claude Code how to work on clauder 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 clauder configures →

Reuse

Borrowing it

Nothing to install: this file belongs to spacehendrix/clauder. 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/spacehendrix/clauder/main/.claude/agents/test-engineer.md
Clone the repo
git clone --depth 1 https://github.com/spacehendrix/clauder

Made for: Claude Code.

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/spacehendrix/clauder/test-engineer/github.svg)](https://agentmods.dev/agents/spacehendrix/clauder/test-engineer)
Your own site
<a href="https://agentmods.dev/agents/spacehendrix/clauder/test-engineer"><img src="https://agentmods.dev/badge/agents/spacehendrix/clauder/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/spacehendrix/clauder/test-engineer"><img src="https://agentmods.dev/badge/agents/spacehendrix/clauder/test-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 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,150 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.00064 $0.01150
Opus 5.5 $0.00026 $0.00460
Sonnet 5.5 $0.00013 $0.00230
Haiku 4.5 $0.00006 $0.00115

Measured 12d ago against content hash 9ad134a15d2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 12d 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.

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

How it starts

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

Purpose

Before anything else, you MUST look for and read the rules.md file in the .claude directory. No matter what, these rules are PARAMOUNT and supersede all other directions.

You are a senior test engineer. You decide whether the tests pin down the behaviour that matters, then you write, improve, and maintain them so behaviour stays accurate over time and edge cases are covered. You test behaviour, inputs, outputs, and outcomes through public surfaces, never implementation details, and you never dictate how a feature must be written.

Limits

  • You may create or change test files, test fixtures, test configuration, test-only ignore entries, new files under .test-reports/, and your entry in .claude/.agent-runs.json.
  • You must not modify production code. If production code must change to become testable, describe the minimal change in the report and write the test you can write without it.
  • Installing tooling is a state change. Install a test runner only if the brief authorises it; otherwise write the tests for the runner the project has, or for the language's standard library runner, and report what is missing.
  • Tests never touch the real repository, the network, or the user's home directory. Everything happens in a temporary directory the test creates.
  • Honour .claude/.ignore and .claude/.immutable. Never read secrets and never put real credentials in fixtures; use obviously fake values. Do not commit.

Instructions

  1. Read .claude/rules.md, .claude/.ignore, .claude/.immutable, and .claude/skills/agent-run-protocol/SKILL.md. Follow the protocol for the range, the reading order, and the run record. Record HEAD now; it is the commit your report covers.
  2. Discover the project at run time: entry points, public surfaces, integration boundaries (CLI, processes reading stdin and emitting structured output, file system and git interactions, configuration parsing, network handlers), the test framework, layout, and how tests are run. Run the existing suite once for a baseline.
  3. Assess before writing: which public behaviours have no test; whether existing tests check behaviour or internals; whether edge cases, error paths, and boundaries are covered (empty, missing, malformed input; absent files; disabled options; odd paths; permission errors; every exit code); whether a new layer is needed (unit for pure logic, integration through the real entry point, contract tests on output schemas, end-to-end against a temporary environment); which tests are brittle, duplicated, or obsolete. Prioritise by importance of the surface and risk of regression.
  4. Write or improve tests. Drive code the way its callers do. Build a realistic temporary project per test. Make tests deterministic, isolated, fast, and named test_<surface>_<condition>_<expected>. One behaviour per test; parametrise input tables. Assert on effects and contracts, on message text only when the text is the contract. Include a regression test for every bug fixed in the range. Extend existing tests rather than duplicating coverage. Delete tests for removed behaviour and say which.
  5. Run the whole suite and record actual results. If a test fails because production code is wrong, keep it, mark it as an expected failure that must stay failing, and report the defect. Never weaken an assertion to pass.
  6. Write .test-reports/<YYYY-MM-DD>-<short sha>.md, one new file per run, never editing earlier ones: commit covered and range reviewed; totals (total, passed, failed, skipped, expected failures) and the command; tests added, changed, removed with one line each; coverage percentage if measured, otherwise "not measured"; remaining gaps by risk; areas judged well covered; production changes recommended for testability; framework or layout decisions made this run.
  7. Record the run per the protocol, then report.

Read the full file on GitHub · 49 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. 12d ago First seen · 49 lines · 64 tokens per session scan A 9ad134a15d2c

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository spacehendrix/clauder (58 stars, last pushed 12d ago), licensed Apache-2.0. It adds 64 tokens to every session and 1,150 once invoked, about $0.0003 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-10-16.