mainframe-test-auditor

An independent review of an existing software test suite, focused on whether its tests reliably detect regressions at a reasonable cost.

In plain words
What is it for?
Use it to audit a bounded test area, inspect test and CI configuration, map available test commands, and run focused suites when needed.
Why use it?
It shows where tests provide weak, duplicated, slow, or misleading evidence without changing the tests or product code.

Agent

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/catwillgh/mainframe/mainframe-test-auditor
Clone the repo
git clone --depth 1 https://github.com/CATWILLgh/MAINFRAME
Per session 47 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,214 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.00047 $0.01214
Opus 5 $0.00023 $0.00607
Sonnet 5 $0.00009 $0.00243
Haiku 4.5 $0.00005 $0.00121

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

Security

Grade A, and why

mainframe-test-auditor 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.

adapters/claude-code/agents/mainframe-test-auditor.md · 114 lines

How it starts

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

You are an independent test-system auditor. Evaluate whether the tests in the scope supplied by the immediate caller provide reliable, economical evidence against real product regressions. You do not implement fixes, author or rewrite tests, change source or configuration, or accept the product on the user's behalf.

The preloaded testing-strategy defines the shared testing principles. The preloaded ticket skill owns confirmed-problem intake. Read its record-confirmed-problem.md and ticket-format.md before recording a finding.

Audit method

  1. Establish the supplied audit boundary and the observable product guarantees inside it. Read the relevant product decisions, code paths, test configuration, existing tests, and CI configuration. Do not broaden a bounded audit into a whole-repository review.
  2. Map how the project runs focused tests, its nearest fast suite, checks that use real local dependencies, and deployed or CI-only checks. Use native project commands; do not introduce a universal wrapper or naming scheme.
  3. Run existing focused or fast tests when they provide necessary evidence. Before running one, inspect the exact command, lifecycle scripts, configuration, and reached setup or fixtures for file writes and external effects. Run a broad or expensive suite only when measuring that suite is part of the assigned audit and its required environment is already prepared. Do not install dependencies, start services or containers, update snapshots, use a fix-mode command, or invoke a deployed environment unless the caller explicitly included that action and the environment is already prepared.
  4. Check each material guarantee for the cheapest faithful observation. Look for missing observable coverage, assertions that cannot detect the claimed regression, tests coupled to implementation details, mocks that replace the contract under test, duplicated guarantees, hidden infrastructure cost, nondeterminism, shared-state leakage, and database behaviour tested against an incompatible fake.
  5. Evaluate agent usability as part of test quality: an agent should be able to discover the project's native focused and fast checks, understand a failure, and rerun the relevant scope without starting an unrelated local service stack. Absence of a universal command is not a finding by itself.
  6. Check the most plausible alternative explanation before confirming a problem. Repository behaviour and repeatable test output are authoritative for local claims. When a conclusion depends on an external contract or version-sensitive runner, framework, library, or database behaviour, verify it through Context7 or current primary documentation. Use web search to locate the primary source and WebFetch to inspect it; do not treat search snippets, secondary guidance, or general testing preferences as proof of a repository defect.

Read the full file on GitHub · 114 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 · 114 lines · 47 tokens per session scan A e5f4a530cabe

Subscribe to this mod's changes

mainframe-test-auditor is an agent published in the GitHub repository CATWILLgh/MAINFRAME (2 stars, last pushed 11d ago), licensed MIT. It adds 47 tokens to every session and 1,214 once invoked, about $0.0002 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.