Borrowing it
Nothing to install: this file belongs to johnnichev/selectools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/johnnichev/selectools/main/.claude/skills/ralph-bug-hunt/SKILL.mdgit clone --depth 1 https://github.com/johnnichev/selectoolsWrote 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/johnnichev/selectools/ralph-bug-hunt)<a href="https://agentmods.dev/skills/johnnichev/selectools/ralph-bug-hunt"><img src="https://agentmods.dev/badge/skills/johnnichev/selectools/ralph-bug-hunt/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/johnnichev/selectools/ralph-bug-hunt"><img src="https://agentmods.dev/badge/skills/johnnichev/selectools/ralph-bug-hunt.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.00056 | $0.01869 |
| Opus 5.5 | $0.00022 | $0.00748 |
| Sonnet 5.5 | $0.00011 | $0.00374 |
| Haiku 4.5 | $0.00006 | $0.00187 |
Grade A, and why
ralph-bug-hunt 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 2mo 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 — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ralph Bug Hunt
Autonomous bug hunt + auto-fix loop for module: $ARGUMENTS
If no module is given, default to "rag".
Loop Count
Parse the loops=N parameter from $ARGUMENTS if present. This controls how many
hunt-fix-verify cycles to run before emitting the sentinel. Default: 1 (single pass).
loops=1(default) — one pass: hunt, fix, verify, emit sentinelloops=3— three passes: after fixing, re-scan the same module for new bugs exposed by the fixes, fix those too, repeat until N passes or cleanloops=0— audit only: hunt and report but do NOT fix anything
When loops > 1, each pass re-reads all source files from scratch (fixes from
pass 1 may expose new issues in pass 2). If a pass finds zero bugs, emit
RALPH_RESULT: CLEAN immediately without running remaining passes.
Orchestration Script
The scripts/ralph_bug_hunt.sh script runs this skill in a convergence loop.
Configure via environment variables:
MAX_ITER=10 REQUIRED_CLEAN=3 bash scripts/ralph_bug_hunt.sh # all modules
MAX_ITER=5 REQUIRED_CLEAN=2 bash scripts/ralph_bug_hunt.sh rag # single module
REQUIRED_CLEAN=1 bash scripts/ralph_bug_hunt.sh agent providers # quick pass
What makes this different from /bug-hunt
- Every finding is fixed immediately — no "ask user" step.
- The last line of output is always a machine-parseable sentinel so the
orchestration script (
scripts/ralph_bug_hunt.sh) can detect convergence.
Step 0 — Parse Arguments
Parse $ARGUMENTS to extract:
- module: the first word (e.g. "rag", "agent")
- loops: if
loops=Nappears, extract N (integer). Default: 1.
Example: rag loops=3 → module="rag", loops=3
Example: agent → module="agent", loops=1
Example: providers loops=0 → module="providers", loops=0 (audit only, no fixes)
If loops=0, skip Steps 3-4 entirely. Only run Steps 1-2 (scan + report) and Step 5 (sentinel).
If loops > 1, wrap Steps 2-4 in a loop. After each pass, if zero findings, break early.
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.
- 2mo ago First seen · 192 lines · 56 tokens per session scan A 3dd53737bbf2
ralph-bug-hunt is a skill published in the GitHub repository johnnichev/selectools (11 stars, last pushed 4d ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,869 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-08-30.
ralph-bug-hunt compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ralph-bug-huntjohnnichev/selectools | Skill | 11 | 4d ago | Apache-2.0 | A | 56 | Claude Code |
| llamaguarddavila7/claude-code-templates | Skill | 33k | yesterday | MIT | A | 74 | Claude Code, Codex |
| qa-expertpersonamanagmentlayer/pcl | Skill | 44 | 11d ago | Apache-2.0 | A | 53 | Claude Code |
| codeql-expertpersonamanagmentlayer/pcl | Skill | 44 | 11d ago | Apache-2.0 | A | 68 | Claude Code |
| testing-expertpersonamanagmentlayer/pcl | Skill | 44 | 11d ago | Apache-2.0 | A | 73 | Claude Code |
| thumbgate-doctorIgorGanapolsky/ThumbGate | Skill | 30 | yesterday | MIT | A | 168 | Claude Code |
| continuum-observabilityshyftlabs/continuum | Skill | 84 | 1mo ago | Apache-2.0 | A | 70 | Claude Code |