bug-hunt
Skill2 starsChanged 3 months agoBSD-2-ClauseView on GitHub
Adversarial multi-agent security sweep. Use when hunting for a CLASS of vulnerability (authority/capability bypass, injection, resource exhaustion, invariant breaks) across a codebase or subsystem where you have a hunch but no specific finding, and want each candidate independently refuted before it counts. Fan out finders by attack angle, then refute-first verify every candidate. A clean negative result (guard map) is a first-class deliverable.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- garthcodes/claude-skillstheir own version, first seen Sep 30, 2026
- EthanReedLabs/suldetheir own version, first seen Sep 13, 2026
- NighmareGit/skunkworks-toolboxtheir own version, first seen Aug 13, 2026
- Nexus-Organization-Infosec/ClaudeSkillstheir own version, first seen Aug 4, 2026
- yeaight7/agent-powerupstheir own version, first seen Jul 27, 2026
- griffinhilly/claude-code-synthesistheir own version, first seen Jul 24, 2026
Used with
Projects with it also use implement and research.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 3 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- danpeg/bug-hunt★ 146same name
- EthanReedLabs/sulde★ 99same name
- griffinhilly/claude-code-synthesis★ 66same name
- chrisallenlane/claude-swe-workflows★ 18same name
- itsnavee/claude-forge★ 18same name
- SiWarlock/claude-code-tdd-agent-crew-scaffold★ 9same name
- yeaight7/agent-powerups★ 6same name
- coderPerseus/skills★ 2same name
- garthcodes/claude-skills★ 2same name
- maxenko/claude-skills★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- comment-styleSkill
- trim-agent-patchSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Not for: a single known bug (just fix it), a whole-repo audit with no thesis (too broad — pick a subsystem first), or a quick one-file …
- Distinctive: line 35
Ground the finders in REAL source: Before writing the workflow, grep the actual file:line anchors for each angle and put them in the prompt.
- Very specific: line 49
Harvest guard_notes even on a clean run: Every finder returns a guard_summary (how the guard actually works, per source) whether or not it …
- Very specific: line 84
Pipeline stage return shape must be uniform: If the verify stage sometimes returns a wrapped object and sometimes a raw array, the final …
- Distinctive: line 92
Ground or hallucinate: No file:line anchors in the finder prompt → confident fiction.
- Distinctive: line 93
0 confirmed is a success, not a failure: Don't let a finder invent findings to fill a quota — the prompt says so explicitly, keep it that …
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
bug-hunt
A reusable harness for hunting a class of bug across a subsystem, then proving
each candidate real or (usually) refuting it. Built from repeated authority-bypass
sweeps on the gno.land VM. Engine = the Workflow tool: pipeline(angles, find, verify).
When to use
- You have a hunch a bug class might exist ("sub-realms could bypass authority somehow") but no concrete finding yet.
- You want breadth (many independent angles) AND rigor (each candidate adversarially refuted before you believe it) without hand-running dozens of greps.
- You want the negative result to be trustworthy — "we looked hard and here's why the guard holds", not "I didn't find anything".
Not for: a single known bug (just fix it), a whole-repo audit with no thesis (too broad — pick a subsystem first), or a quick one-file check (just read it).
The method (6 steps)
- Scope the layers. Most real bugs live in the seam between layers, not inside
one. Enumerate every layer the target crosses and make the finders read all of them.
(gno banker example: gno stdlib
.gno→ native Go binding → bank keeper. The interesting question was always "does layer N re-check what layer N-1 assumed?") - Decompose into attack angles. 5–8 angles, each a distinct mechanism, not a
restatement. Name them
<Prefix><n>-<slug>(A1, B2…) so results are greppable. One finder per angle. Coverage beats depth here — depth comes in verify. - Ground the finders in REAL source. Before writing the workflow, grep the actual file:line anchors for each angle and put them in the prompt. Tell finders: "read the ACTUAL current source, do not trust summaries." A finder pointed at the wrong file invents plausible-but-fake findings.
- Baseline-exclusion. List already-known/disclosed/by-design issues explicitly and
tell finders + verifiers to flag any restatement as
duplicate_of_known=trueand refute it. Without this every run rediscovers H1 and calls it new. - Find → refute-first verify (pipeline).
pipeline(angles, findStage, verifyStage). Each finding gets an independent verifier told: assume it is a FALSE POSITIVE, refute it from source, only rule "real" if the code forces it, default to "refuted" when uncertain. This is the whole point — a finding nobody tried to kill is worthless. - Harvest guard_notes even on a clean run. Every finder returns a
guard_summary(how the guard actually works, per source) whether or not it found anything. On a 0-confirmed run these summaries ARE the deliverable: a source-cited guard map proving the negative. Also capture any nuance a verifier raises that isn't a vuln but is worth an owner note (e.g. "IsCanonical checks type not bt").
Deliverables
- Confirmed findings → reproduce each with a runnable test (txtar / filetest / unit) before reporting. A finding you haven't watched turn a test red is a guess.
- Clean negative → the guard map (per-angle
guard_summarywith file:line) + any owner-note nuances. This is valuable: it tells maintainers which guards they're relying on and why, and raises confidence in adjacent results. - Present as a table: angle | verdict | key evidence. Then the bottom line: X angles, N confirmed, and what (if anything) to file.
Running it
The engine is hunt-template.js next to this file — a parameterized
pipeline(ANGLES, find, verify) with FIND_SCHEMA + VERDICT_SCHEMA already wired.
To run a hunt:
- Copy
hunt-template.jsinto the session's workflow scripts dir. - Edit
meta,SHARED(repo path, layer map, ground files, baseline-exclusions), andANGLES(5–8 angles with file:line anchors). Workflow({ scriptPath: "<copied path>" })— runs in background.- On completion read the output file; if the harvest looks wrong (empty guard_notes,
shape mismatch), fix the script and resume with
Workflow({ scriptPath, resumeFromRunId })— cached agent calls return instantly.
Knobs: effort: 'high' on both stages for security work; scale ANGLES to thoroughness
requested; add a 3-vote refuter panel per finding for "audit this exhaustively" asks.
Hard-won gotchas
- Pipeline stage return shape must be uniform. If the verify stage sometimes returns
a wrapped object and sometimes a raw array, the final harvest silently drops the
array-shaped ones. Always return the SAME
{ angle, guard_summary, verified }shape. - Refute-first is not optional. A verifier that "confirms" is doing it wrong. The
default verdict is
refuted;realrequires the code to force it. - codex/subagent cybersecurity filter. Frame prompts as defensive research on the maintainer's own code ("authorized defensive security research", "bounding/hardening"), never as exploit/attack recipes, or the safety filter refuses mid-run.
- Ground or hallucinate. No file:line anchors in the finder prompt → confident fiction.
- 0 confirmed is a success, not a failure. Don't let a finder invent findings to fill a quota — the prompt says so explicitly, keep it that way.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

