test-fidelity

test-fidelity is a skill for Claude Code from jamestexas/agents. It costs 118 tokens per session (2,166 once invoked), scanned A, original, Apache-2.0.

A skill for finding weak tests that can pass even when the code is wrong. It checks whether test doubles replace the real behavior, assertions are strict enough, inputs reach the claimed code, and coverage is actually guaranteed.

In plain words
What is it for?
Use it to review tests, verify mocks and assertions, check test inputs, and examine whether coverage claims are supported.
Why use it?
It helps prevent false confidence from tests that appear to check a behavior but do not reliably detect failures.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents.

Good fit Use it to review tests, verify mocks and assertions, check test inputs, and examine whether coverage claims are supported.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jamestexas/agents/test-fidelity
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 jamestexas/agents --skill test-fidelity
Clone the repo
git clone --depth 1 https://github.com/jamestexas/agents

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jamestexas/agents/test-fidelity"><img src="https://agentmods.dev/badge/skills/jamestexas/agents/test-fidelity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,166 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.00118 $0.02166
Opus 5.5 $0.00047 $0.00866
Sonnet 5.5 $0.00024 $0.00433
Haiku 4.5 $0.00012 $0.00217

Measured 3mo ago against content hash 937c123d41bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-fidelity 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 3mo 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.

skills/test-fidelity/SKILL.md · 175 lines

How it starts

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

test-fidelity — catch tests that pass whether or not the code is right

The spine, one question:

Would this test still fail if the code were wrong in the way it is supposed to catch?

If the answer is no, the test is theatre: it does not merely miss the bug, it certifies the buggy path as correct, and the comment asserting fidelity makes the next reader trust it. If your project keeps a test-double doctrine doc — a catalog of tests that lied and the mitigations that closed them — read it once as the local ground truth; the hunting catalog below is the portable version of it.

This skill audits whether tests constrain the code. It is not a bug hunt on the code, not a coverage-percentage report, and not a style pass — other skills and agents cover those. A line executed is not a line verified.

When to use

  • A test-bearing PR before you review or approve it (yours or a peer's).
  • After an agent (including a sub-agent) wrote tests — self-reports about test quality are not trustworthy; verify.
  • When a suite is green but you suspect it is green for the wrong reason.

The hunting catalog — the shapes to investigate

Hunt shapes of behavior, not specific names. Each entry is what they were doing + the probe.

Class A — the harness dodges the real thing

  • Drove a stand-in that claims to mirror the real implementation, and nothing checks the claim. → Contract-test the double against the real one through one shared operation table; it must fail at the moment of divergence.
  • Tested a branch production does not take (a fast/slow-path twin, a config or code path that never runs live). → Assert the two paths agree, or test the one that actually carries traffic.
  • The asserted value is laundered — it originates in a constant, fixture, or mock, not the code under test. → Trace the value's origin; the assertion must fail if the real computation is wrong.

Class B — the assertion is too loose to constrain behavior

  • Asserted an emergent effect ("it retried", "it errored", "count == 1") that stays true for multiple distinct causes, or even if the code were miswired. → Does the assertion pin the specific mechanism, given how many inputs the consumer accepts? (An acceptor with N members can't be pinned by "something accepted happened".)
  • Asserted a call happened or a shape was right, not that the state changed. → Assert the observable consequence, not the invocation.
  • Asserted something about the test's own scaffolding (a fake does or doesn't implement X). → Does the assertion say anything about production?

Read the full file on GitHub · 175 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. 3mo ago First seen · 175 lines · 118 tokens per session scan A 937c123d41bd

Subscribe to this mod's changes

test-fidelity is a skill published in the GitHub repository jamestexas/agents (2 stars, last pushed today), licensed Apache-2.0. It adds 118 tokens to every session and 2,166 once invoked, about $0.0005 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-08-31.

Related

test-fidelity compared with skills from other repositories

test-fidelity next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-fidelityjamestexas/agentsSkill2todayApache-2.0A118Claude Code
soul-gradercobibean/soul-grader-skillSkill603mo agoMITA45Codex
markdown-ui-dslMegaByteMark/markdown-ui-dslSkill258mo agoMITA25Claude Code, Codex
research-dspyGrayCodeAI/starlingSkill23mo agoMITA36Claude Code
research-guidanceGrayCodeAI/starlingSkill23mo agoMITA39Claude Code
research-instructorGrayCodeAI/starlingSkill23mo agoMITA39Claude Code
reviewvercel/eveSkill6.1ktodayApache-2.0A31Claude Code, Codex