validate-your-validator

A method for checking that a test, linter, scanner, health check, or monitor can actually detect the failure it is meant to find.

In plain words
What is it for?
Use it when creating or reviewing anything that reports pass or fail: deliberately introduce a known failure, confirm it is caught, then confirm valid input still passes.
Why use it?
A passing checker may be incorrectly wired or too weak to find problems, giving false confidence.

Skill for Claude CodeCodex

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 skills/everywan-dev/claude-code-engineering/validate-your-validator
Any agent
npx skills add everywan-dev/claude-code-engineering --skill validate-your-validator
Clone the repo
git clone --depth 1 https://github.com/everywan-dev/claude-code-engineering

Made for: Claude Code, Codex.

Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,488 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.01488
Opus 5 $0.00023 $0.00744
Sonnet 5 $0.00009 $0.00298
Haiku 4.5 $0.00005 $0.00149

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

Security

Grade A, and why

validate-your-validator 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 yesterday.

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/validate-your-validator/SKILL.md · 142 lines

How it starts

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

Validate your validator

A checker that cannot fail is not checking anything. It is a green light wired to nothing, and it is worse than no checker at all, because now everyone has stopped looking.

The test is simple and non-negotiable: plant the failure it exists to catch, and confirm it catches it. Until you have watched it go red on purpose, a green result carries no information.

When to use this

  • You are writing a test, a lint rule, a scanner, a validator, a probe
  • You are adding a health check or an alert
  • You are about to trust a green CI run on something important
  • A checker has been green for a suspiciously long time
  • Someone says "the scan found nothing"

The procedure

1. Write the checker.

2. Plant a failure. Introduce, in a fixture or a scratch copy, exactly the thing the checker exists to detect. A real one, not a simplified one.

3. Run it. It must go red. If it does not, the checker is the bug — fix it before you fix anything else.

4. Plant a control: something you know is fine. Run it. It must go green. A checker that flags everything is as useless as one that flags nothing, and it is more expensive, because people learn to ignore it and then ignore the true positive too.

5. Keep both as permanent fixtures inside the checker. This is the part everyone skips. The planted failure and the control become cases the checker runs against itself, every time. The day someone refactors the pattern and it stops detecting anything, the suite goes red instead of going quiet.

6. Write down what it cannot catch. Every checker has a blind spot. An unwritten blind spot gets read as full coverage by the next person.

The case that earns this skill its place

A secret-detection step was added to a CI pipeline. It incriminated itself three times before it was fit to run.

First, it searched for bare credential prefixes. Those prefixes were written in its own rule list, in its own source file, which the scan walked. It reported itself as a leak. Excluding its own file made it green — and would have made it green forever, because there was no case proving it could still detect a real one.

Second, the sentinel string used as its own control appeared verbatim in the file. So the "proof it works" and the "thing it found" were the same bytes. It was detecting its own test data and reporting a pass.

Third, and worst, it flagged TOKEN = os.environ.get("X") as a hardcoded secret. That line is the correct pattern — it is a secret being read from the environment, the exact thing you want people to write. The checker was punishing the good behaviour and, by symmetry, had never been shown a real hardcoded value to see whether it would fire on one.

What fixed it was not a better pattern. It was two fixtures: a file containing a genuine-shaped credential that the suite asserts is flagged, and a file containing environment reads and placeholders that the suite asserts is not. Both live next to the scanner. Break the scanner now and the suite tells you.

Read the full file on GitHub · 142 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. yesterday First seen · 142 lines · 47 tokens per session scan A e35cd22792da

Subscribe to this mod's changes

validate-your-validator is a skill published in the GitHub repository everywan-dev/claude-code-engineering (2 stars, last pushed 13d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,488 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.