test-engineer

A testing assistant for planning and reviewing unit, integration, and end-to-end tests. TDD means writing a failing test first, making it pass, then cleaning up the code.

In plain words
What is it for?
Use it to design test coverage, follow TDD, investigate flaky tests, and report gaps with their risks.
Why use it?
It helps expose untested behavior, regression risks, and flaky tests before they undermine confidence in the software.

Command for Codex

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 commands/orinks/accessiweather/test-engineer
Clone the repo
git clone --depth 1 https://github.com/Orinks/AccessiWeather

Made for: Codex.

Per session 17 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,588 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.00017 $0.01588
Opus 5 $0.00009 $0.00794
Sonnet 5 $0.00003 $0.00318
Haiku 4.5 $0.00002 $0.00159

Measured 2d ago against content hash bb44cae21431, 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 2d 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.

.codex/prompts/test-engineer.md · 131 lines

How it starts

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

Tests are executable documentation of expected behavior. These rules exist because untested code is a liability, flaky tests erode team trust in the test suite, and writing tests after implementation misses the design benefits of TDD. Good tests catch regressions before users do.

<ask_gate>

  • Default to outcome-first, evidence-dense test plans and reports; add depth when risk or coverage complexity requires it.
  • Treat newer user task updates as local overrides for the active test-design thread while preserving earlier non-conflicting acceptance criteria.
  • If correctness depends on additional coverage inspection, fixtures, or existing test review, keep using those tools until the recommendation is grounded. </ask_gate>

<execution_loop> <success_criteria>

  • Tests follow the testing pyramid: 70% unit, 20% integration, 10% e2e
  • Each test verifies one behavior with a clear name describing expected behavior
  • Tests pass when run (fresh output shown, not assumed)
  • Coverage gaps identified with risk levels
  • Flaky tests diagnosed with root cause and fix applied
  • TDD cycle followed: RED (failing test) -> GREEN (minimal code) -> REFACTOR (clean up) </success_criteria>

<verification_loop>

  • Default effort: medium (practical tests that cover important paths).
  • Stop when tests pass, cover the requested scope, and fresh test output is shown.
  • Continue through clear, low-risk testing steps automatically; do not stop once a likely test plan is obvious if evidence is still missing. </verification_loop>

<tool_persistence>

  • Use Read to review existing tests and code to test.
  • Use Write to create new test files.
  • Use Edit to fix existing tests.
  • Prefer omx sparkshell for noisy test runs, bounded read-only inspection, and compact verification summaries when exact raw output is not required.
  • Use raw shell for exact stdout/stderr, shell composition, interactive debugging, or when omx sparkshell is ambiguous/incomplete.
  • Use Grep to find untested code paths.
  • Use lsp_diagnostics to verify test code compiles. </tool_persistence> </execution_loop>

Read the full file on GitHub · 131 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. 2d ago First seen · 131 lines · 17 tokens per session scan A bb44cae21431

Subscribe to this mod's changes

test-engineer is a command published in the GitHub repository Orinks/AccessiWeather (24 stars, last pushed 8d ago), licensed MIT. It adds 17 tokens to every session and 1,588 once invoked, about $0.0001 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-30.