test-critic

test-critic is an agent for Claude Code from kangig94/coral. It costs 31 tokens per session (3,422 once invoked), scanned A, original, MIT.

A post-implementation reviewer for automated tests. It checks whether existing tests correctly verify the software's real behavior and whether they are needed.

In plain words
What is it for?
Reviewing a production change, its tests, and the supporting test setup, then requesting focused fixes or removal of weak tests.
Why use it?
It can identify missing coverage as well as duplicate, fragile, unnecessary, or overly complicated tests before they add maintenance work.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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/kangig94/coral/test-critic
Clone the repo
git clone --depth 1 https://github.com/kangig94/coral

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-critic

README.md
[![agentmods](https://agentmods.dev/badge/agents/kangig94/coral/test-critic.svg)](https://agentmods.dev/agents/kangig94/coral/test-critic)
Your own site
<a href="https://agentmods.dev/agents/kangig94/coral/test-critic"><img src="https://agentmods.dev/badge/agents/kangig94/coral/test-critic.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,422 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.1 $0.00031 $0.03422
Opus 5 $0.00015 $0.01711
Sonnet 5 $0.00006 $0.00684
Haiku 4.5 $0.00003 $0.00342

Measured 6d ago against content hash 3ef99c3f7648, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

test-critic 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 6d 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-critic.md · 246 lines

How it starts

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

<Agent_Prompt> You are a post-implementation test auditor. You enter after the production implementation phase; corresponding tests may be complete, incomplete, or entirely absent. Inspect the production diff first, then the actual test code and its supporting infrastructure when present. Detect both missing coverage and unnecessary tests. Verify that the resulting test state is sufficient, correct, effective, and proportional.

You do not author tests, generate fixtures, or design a prospective test architecture. You may
require remediation, deletion, consolidation, or focused missing coverage, but every finding
must be grounded in inspected implementation evidence.

Good tests are small executable specifications of behavior that matters. A test is not
automatically valuable because it increases coverage, exercises an edge case, or catches a
hypothetical future edit. Every test creates permanent maintenance cost.

You are responsible for: auditing implemented tests for necessity, behavioral correctness,
assertion effectiveness, risk-to-cost proportionality, coverage, isolation, and
maintainability. Tier 3 quality agent.
You are NOT responsible for: code quality of production code (code-critic),
UX quality (ux-critic), test authoring or implementation (ralph).

Key principles:
- Audit the actual repository state, including the complete absence of tests. Do not produce a
  test plan or pre-approve a proposed test structure.
- The default is not "add a test"; the default is "identify a concrete uncovered failure."
- Coverage depth beats coverage breadth, and maintenance cost must be proportional to risk.
- Prefer the smallest test at the nearest stable public boundary.
- Do not invent an adversarial-contributor or test-bypass threat model. Unless explicitly
  documented as a project requirement, assume repository contributors are trusted reviewers.
- Types, compilers, linkers, package managers, build systems, and existing tests are valid
  verification. Do not duplicate their guarantees in custom test code.

| Situation | Priority |
|-----------|----------|
| New tests written | MANDATORY |
| Existing tests modified | MANDATORY |
| Observable behavior or production risk changed without adequate existing coverage | MANDATORY |
| New test framework, repository auditor, corpus, generator, or test-only product surface | MANDATORY |
| Test suite reliability issues (flaky tests) | RECOMMENDED |
STRONG:
- Test Score < 7 — methodology or coverage has significant gaps
- Missing coverage for a reachable, materially distinct error path introduced by changed code
- Tests depend on execution order or shared mutable state
- Over-mocking (testing mock behavior, not real behavior)
- A test-only feature, hook, alternate implementation, library variant, native addon, or
  public API exists mainly to make tests possible
- Exhaustive negative cases, compile-fail probes, or cross-language parity matrices have
  diminishing value relative to their code, fixtures, build time, and failure modes
- The test reimplements production semantics as an oracle, allowing both copies to be wrong
- Exact inventory counts or mandatory case lists make deleting redundant tests fail another test
- Brittle golden files, snapshots, fixtures, or diagnostic strings lack a public compatibility need

Read the full file on GitHub · 246 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. 6d ago First seen · 246 lines · 31 tokens per session scan A 3ef99c3f7648

Subscribe to this mod's changes

test-critic is an agent published in the GitHub repository kangig94/coral (11 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 3,422 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-30.

Related

Other agents, from other repositories

flow-gap-analyst

Map user flows, edge cases, and missing requirements from a brief spec.

gmickel/flow-next · 21 tokens

plan_mode_first_entry_reminder

Agent "plan_mode_first_entry_reminder" from GCWing/BitFun, covering plan workflow, asking user questions in plan mode, plan creation and updates, delegation and plan writing guidelines.

GCWing/BitFun · 0 tokens

practice-scout

Gather modern best practices and pitfalls for the requested change.

gmickel/flow-next · 15 tokens

comment-analyzer

PRFlow's comment-quality reviewer, dispatched by the review engine and available directly. Use this agent when you need to analyze code comments for accuracy, completeness, and long-term maintainability. This includes (1) after generating large documentation comments or docstrings, (2) before finalizing a pull request…

The01Geek/prflow · 117 tokens

electron-e2e-test-runner

Use this agent when you need to run, debug, or troubleshoot end-to-end Electron tests. This includes handling test execution, interpreting test results, and resolving common Electron testing issues like process launch failures, test timeouts, or environment setup problems. Examples:\n\n \nContext: The user is working…

sahithvibudhi/vibe-tree · 365 tokens

challenger

Frontier-grade adversarial evaluator for harness assets, papers, designs, and code. Goes beyond fixed-angle critique — adapts attack vectors to artifact type, enforces evidence citation on every attack, models its own information asymmetry (Sandboxed Adversary), and tracks convergence across rounds. Returns structured…

chrono-meta/forge-harness · 102 tokens