hunting-failing-inputs

hunting-failing-inputs is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 61 tokens per session (1,667 once invoked), scanned A, original, MIT.

A tool that uses Z3, a constraint-solving program, to find input values that make parsers, decoders, or WGSL compute shaders break safety rules. Examples include an invalid index, an overflowing calculation, or division by zero.

In plain words
What is it for?
Use it to list possible traps, model the relevant code, and generate inputs that trigger them in parser, decoder, or WGSL shader logic.
Why use it?
It can find specific failing inputs when ordinary fuzzing has not found one. This helps test code that handles untrusted bytes before it reaches a crash or unsafe operation.

Skill for Claude CodeCodex

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

Good fit Use it to list possible traps, model the relevant code, and generate inputs that trigger them in parser, decoder, or WGSL shader logic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oaustegard/claude-skills/hunting-failing-inputs
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 oaustegard/claude-skills --skill hunting-failing-inputs
Clone the repo
git clone --depth 1 https://github.com/oaustegard/claude-skills

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 hunting-failing-inputs

README.md
[![agentmods](https://agentmods.dev/badge/skills/oaustegard/claude-skills/hunting-failing-inputs/github.svg)](https://agentmods.dev/skills/oaustegard/claude-skills/hunting-failing-inputs)
Your own site
<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.

agentmods 80×15 button for hunting-failing-inputs

Your own site · 80×15
<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>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,667 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.00061 $0.01667
Opus 5.5 $0.00024 $0.00667
Sonnet 5.5 $0.00012 $0.00333
Haiku 4.5 $0.00006 $0.00167

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

Security

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.

The scan reads SKILL.md. This mod also ships 19 executable files (examples/c/model.py, examples/go/model_frame.py, examples/go/model_quoted.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

hunting-failing-inputs/SKILL.md · 132 lines

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

  1. List the traps. python3 $SKILL/scripts/list_traps.py FILE... [--func NAME] prints file:line:col kind on-failure func source. on-failure is raises, silent or UB (C, which is silent without sanitizers). Model the silent and UB traps first. Strike any trap that an earlier guard already makes safe, and in JS strike object lookups. For Go, use bce_targets.py instead (see references/go.md).

  2. Read references/<lang>.md for the target's language: python, javascript, c, wgsl or go. Each one has the failure semantics, the predicate to model each trap with, the strict harness, and a runnable example in examples/<lang>/.

  3. Model one pure function. Include the guards its callers enforce as constraints. Without them, Z3 invents inputs the program can never produce.

  4. Write the model from scripts/z3traps.py, copying the nearest examples/<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))
    

Read the full file on GitHub · 132 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. 14d ago Changed 4e479014eefc
  2. 17d ago First seen · 132 lines · 61 tokens per session scan A e73209f46c73

Subscribe to this mod's changes

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.

Related

hunting-failing-inputs compared with skills from other repositories

hunting-failing-inputs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hunting-failing-inputsoaustegard/claude-skillsSkill423todayMITA61Claude Code, Codex
dbr-logszencity/databricks-logs-readerSkill25mo agoMITA101Claude Code
logging-best-practicesncklrs/startup-os-skillsSkill579mo agononeA60Claude Code, Codex
spark-engineerJeffallan/claude-skillsSkill13ktodayMITA75Claude Code
debugging-wizardJeffallan/claude-skillsSkill13ktodayMITA70Claude Code
scenario-unity-gameplayscenario-labs/skillsSkill4.4kyesterdayMITA108Claude Code
scenario-unreal-gameplayscenario-labs/skillsSkill4.4kyesterdayMITA121Claude Code