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.
npx skills add oaustegard/claude-skills --skill hunting-failing-inputsgit clone --depth 1 https://github.com/oaustegard/claude-skillsWrote 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.
[](https://agentmods.dev/skills/oaustegard/claude-skills/hunting-failing-inputs)<a href="https://agentmods.dev/skills/oaustegard/claude-skills/hunting-failing-inputs"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/hunting-failing-inputs/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.
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/hunting-failing-inputs"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/hunting-failing-inputs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01667 |
| Opus 5.5 | $0.00024 | $0.00667 |
| Sonnet 5.5 | $0.00012 | $0.00333 |
| Haiku 4.5 | $0.00006 | $0.00167 |
Grade A, and why
hunting-failing-inputs 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 14d 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.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hunting failing inputs
A trap is an operation with a precondition the input can break: an index in range, a slice end within the length, a non-zero divisor, a sum that must not wrap.
Not for
| Situation | Use instead |
|---|---|
| Races, deadlocks, async ordering | race detector or stress test |
| Whole programs, I/O, network, UI | fuzzing plus sanitizers; extract the pure core first |
| Wrong results no precondition expresses | building-property-tests, or reasoning-semiformally |
| Whether a test can go red | gating |
| Validating or minifying WGSL | compiling-wgsl |
Stop and report a trap as unmodelled (never as safe) when its model needs
more than about 15 unrolled loop iterations, needs heap state that a single
input cannot build, or returns unknown twice.
Setup
python3 -m pip install z3-solver tree-sitter-language-pack
SKILL=/mnt/skills/user/hunting-failing-inputs
python3 $SKILL/scripts/selftest.py # optional: SKIP means a missing toolchain, not a pass
Procedure
-
List the traps.
python3 $SKILL/scripts/list_traps.py FILE... [--func NAME]printsfile:line:col kind on-failure func source.on-failureisraises,silentorUB(C, which is silent without sanitizers). Model thesilentandUBtraps first. Strike any trap that an earlier guard already makes safe, and in JS strike object lookups. For Go, usebce_targets.pyinstead (seereferences/go.md). -
Read
references/<lang>.mdfor the target's language:python,javascript,c,wgslorgo. Each one has the failure semantics, the predicate to model each trap with, the strict harness, and a runnable example inexamples/<lang>/. -
Model one pure function. Include the guards its callers enforce as constraints. Without them, Z3 invents inputs the program can never produce.
-
Write the model from
scripts/z3traps.py, copying the nearestexamples/<lang>/model*.py:import sys; sys.path.insert(0, f'{SKILL}/scripts') from z3traps import * n, base = harness(max_len=64) b0 = byte_at('b0') base += [n >= 2] # every early return the path got past solve_traps(base, {'f.py:10 b[k:k+2]': slice_truncates(k, k + 2, n)}, show=(n, b0))
What ships with it
33 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- CHANGELOG.md 2.4 KB
- examples/c/frame.c 424 B
- examples/c/fuzz.c 384 B
- examples/c/model.py 512 B runs code
- examples/c/repro.c 446 B
- examples/go/go.mod 24 B
- examples/go/model_frame.py 786 B runs code
- examples/go/model_quoted.py 1.1 KB runs code
- examples/go/parse.go 853 B
- examples/go/z3repro_test.go 593 B
- examples/javascript/model.py 600 B runs code
- examples/javascript/samples.mjs 462 B runs code
- examples/javascript/samples.test.mjs 701 B runs code
- examples/python/model_lz.py 872 B runs code
- examples/python/model_record.py 780 B runs code
- examples/python/record.py 816 B runs code
- examples/python/test_record.py 643 B runs code
- examples/wgsl/gather.wgsl 501 B
- examples/wgsl/model.py 770 B runs code
- examples/wgsl/run.py 2.1 KB runs code
- README.md 2.7 KB
- references/c.md 1.3 KB
- references/go.md 1.1 KB
- references/javascript.md 1.7 KB
- references/python.md 1.5 KB
- references/wgsl.md 1.7 KB
- scripts/bce_targets.py 3.3 KB runs code
- scripts/list_traps.py 9.0 KB runs code
- scripts/selftest.py 7.0 KB runs code
- scripts/strict.mjs 2.3 KB runs code
- scripts/strict.py 3.0 KB runs code
- scripts/wgsl_guard.py 6.1 KB runs code
- scripts/z3traps.py 5.2 KB runs code
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.
- 14d ago Changed 4e479014eefc
- 17d ago First seen · 132 lines · 61 tokens per session scan A e73209f46c73
hunting-failing-inputs is a skill published in the GitHub repository oaustegard/claude-skills (423 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,667 once invoked, about $0.0002 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-11-14.
hunting-failing-inputs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hunting-failing-inputsoaustegard/claude-skills | Skill | 423 | today | MIT | A | 61 | Claude Code, Codex |
| dbr-logszencity/databricks-logs-reader | Skill | 2 | 5mo ago | MIT | A | 101 | Claude Code |
| logging-best-practicesncklrs/startup-os-skills | Skill | 57 | 9mo ago | none | A | 60 | Claude Code, Codex |
| spark-engineerJeffallan/claude-skills | Skill | 13k | today | MIT | A | 75 | Claude Code |
| debugging-wizardJeffallan/claude-skills | Skill | 13k | today | MIT | A | 70 | Claude Code |
| scenario-unity-gameplayscenario-labs/skills | Skill | 4.4k | yesterday | MIT | A | 108 | Claude Code |
| scenario-unreal-gameplayscenario-labs/skills | Skill | 4.4k | yesterday | MIT | A | 121 | Claude Code |