test-quality-review

test-quality-review is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 100 tokens per session (1,561 once invoked), scanned A, original, Apache-2.0.

A review checklist for judging whether tests actually prove the requirements they claim to cover. It checks that tests can fail when behaviour is wrong and are not merely checking mocks or repeating the implementation.

In plain words
What is it for?
Use it to review new or changed tests against acceptance criteria, checking assertions, mocked dependencies, ordering, timing, skipped tests, and weakened coverage.
Why use it?
A test suite can pass while proving almost nothing, especially when assertions are weak or tests were changed to avoid failure. This helps reviewers find those gaps before approving the work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review new or changed tests against acceptance criteria, checking assertions, mocked dependencies, ordering, timing, skipped tests, and weakened coverage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/test-quality-review
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.

Any agent
npx skills add tmj-90/gaffer --skill test-quality-review
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

Made for: Claude Code, Codex.

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-quality-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/test-quality-review/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/test-quality-review)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/test-quality-review"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/test-quality-review/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-quality-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/test-quality-review"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/test-quality-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,561 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.00100 $0.01561
Opus 5.5 $0.00040 $0.00624
Sonnet 5.5 $0.00020 $0.00312
Haiku 4.5 $0.00010 $0.00156

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

Security

Grade A, and why

test-quality-review 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 16d 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.

runner/skills/test-quality-review/SKILL.md · 98 lines

How it starts

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

Test quality review lens

"Tests pass" means something only if the tests could have failed. For each new or changed test ask: which behaviour breaks it, and is that the behaviour the acceptance criterion names? Live runs showed the common miss: tests existed, the suite was green, and the AC's own behaviour (concurrent writers, a paused lock holder) was never run — or one AC had no test at all and the ticket was approved anyway.

The bar is one falsifiable test per AC that exercises that AC's own behaviour — not more coverage, not a preferred style. Do not raise it.

Steps

  1. Build the AC → test map. For each AC write one line: AC <id> → <test file>::<test name> — asserts <observable outcome>. Find tests by grepping the diff's test files for the AC's nouns, endpoints, error codes and function names. An AC with no line is MISSING, whatever the evidence summary claims. An AC that is purely documentation or configuration text is evidenced by the diff itself — write AC <id> → diff: <file> instead. Call search_lore for the repo's testing conventions.
  2. Check each mapped test exercises the AC's own behaviour. Read the test body, not its name. It must drive the code path the AC describes and assert the outcome the AC promises. Mark it INDIRECT (no evidence) when:
    • it asserts nothing: no assertion; assertions only inside a callback, loop or branch that never runs; an async assertion not awaited or returned (the test ends first); a try/catch that swallows the assertion error; expect(x).toBeDefined(), assert True, "no exception thrown" as the only check for an AC about a value; a large snapshot generated from the current output with no AC-specific assertion;
    • it asserts only on mocks: the sole checks are toHaveBeenCalled/assert_called on a fake, or the mock returns the value that is then asserted — the real result the AC names is never observed;
    • it mocks the unit under test, or fakes the very component whose behaviour the AC names (the filesystem mocked for an "atomic write" AC, the clock frozen for a "lease expiry" AC without advancing it, the lock stubbed for a locking AC);
    • it never reaches the path the AC names: a concurrency AC tested with one sequential caller; a "cross-process" AC tested with threads or Promise.all in one process against a process-local mutex; a crash/pause/restart AC with no kill, pause or restart; an error-handling AC tested only on the happy path; a retry AC where the dependency never fails;
    • it re-implements the production logic in the expected value, so a shared bug passes both.
  3. Apply the mutation test in your head. Pick the line that implements the AC (the lock, the conditional, the status code, the rename) and imagine deleting it or flipping it. Would a mapped test fail? If not, that AC is not evidenced. Also ask: would this test have passed on the base branch? A test that passes without the change proves nothing about the change. Do not edit the code to check — reason it.
  4. Check the test actually ran. The recorded test output (or one run of the repo's test command) shows the new test names or a count that includes them; the file matches the runner's test pattern; no .only/fit/-k filter excludes it.
  5. Check for weakening. Tests deleted, skipped (it.skip, xit, @pytest.mark.skip, t.Skip, @Disabled), loosened (exact → approximate, an error now swallowed), retried, given longer timeouts to mask a race, or thresholds lowered — each is a finding unless the ticket asked for it with a stated reason.
  6. Check determinism of the tests that carry an AC. No dependence on wall-clock time, timezone, locale, order, network or shared mutable fixtures; no fixed sleeps as synchronisation (use barriers, injected hooks or polling with a deadline — the fix-flaky-test skill); seeded randomness. A concurrency test that loops enough times to expose the race, or forces the interleaving deterministically, is fine.
  7. Rate each finding. Blocking: an AC that is MISSING or only INDIRECTLY tested; a test that cannot fail; a weakened or skipped test without a stated reason. Should-fix: a missing negative case when the AC names an error (that is the AC's own behaviour); non-determinism that actually made an AC's test fail or flake in the recorded runs. Note: other non-determinism risks, naming, structure, extra coverage beyond the ACs, wrong-level tests that still prove the AC. Only blocking and should-fix justify RECOMMEND CHANGES.
  8. Hand the map to review-ticket. Each AC's map line and PASS / MISSING / INDIRECT classification go into that AC's single record_ac_evidence row (its step 8) — do not record a second row per AC. Record a separate manual_note only for a weakening or determinism finding, naming the test and the fix.

Read the full file on GitHub · 98 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. 16d ago Changed · +30 lines · +21 tokens per session 1dbe70b25dd5
  2. 19d ago First seen · 68 lines · 79 tokens per session scan A 6b32b5c40fc3

Subscribe to this mod's changes

test-quality-review is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 17d ago), licensed Apache-2.0. It adds 100 tokens to every session and 1,561 once invoked, about $0.0004 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-09-28.

Related

Other skills, from other repositories