find-bugs
Skill7 starsChanged 9 months agoMITView on GitHub
Adversarial three-agent bug review pipeline. Runs search → adversary → judge to find high-confidence bugs with reduced false positives. Use: /find-bugs src/
- Deletes or force-pushes
15 other projects use a version of this.
Adopted by
Most recently taken up by
- AgnesAI-Labs/agnet-skills-cntheir own version, first seen Nov 1, 2026
- robinbril/claude-code-harnesstheir own version, first seen Nov 1, 2026
- LikeMindsCommunity/agentic-workflow-backendtheir own version, first seen Oct 20, 2026
- aantoniadis/skillstheir own version, first seen Oct 20, 2026
- xfstudio/skillstheir own version, first seen Oct 13, 2026
- salesforce/cloudsplainingtheir own version, first seen Oct 8, 2026
Used with
Projects with it also use gcp-cloud-run, conversation-memory and 9 more.
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.
xfstudioSkillgcp-cloud-run
Specialized skill for building production-ready serverless applications on GCP. Covers Cloud Run services (containerized), Cloud Run Functions (event-driven), cold start optimization, and event-driven architecture with Pub/Sub.
Also in 3 projects that use this
xfstudioSkillconversation-memory
Persistent memory systems for LLM conversations including short-term, long-term, and entity-based memory Use when: conversation memory, remember, memory persistence, long-term memory, chat history.
Also in 3 projects that use this
SentrySkilliterate-pr
Iterate on a PR until actionable CI passes and high/medium review feedback is addressed. Use for PR CI failures, review feedback, or green-check loops; do not wait for human approval, draft status, or merge gates.
Also in 3 projects that use this
xenitV1Skillpowershell-windows
PowerShell Windows patterns. Critical pitfalls, operator syntax, error handling.
Also in 3 projects that use this
abdullah1854Skillcontext-optimization
Also in 3 projects that use this
SentrySkillcode-simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to "simplify code", "clean up code", "refactor for clarity", "improve readability", or review recently modified code for elegance. Focuses on project-specific best practices.
Also in 3 projects that use this
- +1 more from getsentry
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- saadeghi/daisyui★ 43ksame name
- salesforce/cloudsplaining★ 2.3ksame name
- getsentry/sentry-python★ 2.2ksame name
- getsentry/skills★ 1.1ksame name
- roman01la/skills-agents★ 48same name
- valpere/session-indexer★ 42same name
- Fandry96/k3-agentic-skills★ 27same name
- ulpi-io/browse★ 15same name
- xfstudio/skills★ 9same name
- robinbril/claude-code-harness★ 3same name
5 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 repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- creative-directionSkill
- five-whysSkill
- idea-to-icpSkill
- nano-banana-image-genSkill
- self-improvementSkill
- simplifySkill
- tpm-roadmap-sliceSkill
- tpm-spec-trace-idsSkill
- tpm-spec-verifySkill
- ui-design-iterationSkill
- webdev-combobox-autocompleteSkill
- webdev-filter-query-builderSkill
- webdev-token-inputSkill
- youtube-transcriptSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run a three-agent adversarial debate to find bugs with high confidence.
- Distinctive: line 41
If no target is specified, default to the current directory.
- Distinctive: line 49
Create the workspace directory and clear any previous run:
- Very specific: line 107
Wait for the Search agent to complete and write .find-bugs/bugs.json.
- Distinctive: line 111
Before running the Adversary, strip scores and confidence to prevent cherry-picking:
- Very specific: line 170
Wait for the Adversary agent to complete and write .find-bugs/contested.json.
- Very specific: line 235
Wait for the Judge agent to complete and write .find-bugs/verdict.json.
- Very specific: line 239
After all subagents complete, read .find-bugs/verdict.json and display:
- Distinctive: line 260
Search doesn't know how Adversary will attack
“Common” is measured: kept by at least 6 in 10 of the 14 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
Find Bugs — Adversarial Bug Detection
Run a three-agent adversarial debate to find bugs with high confidence. Each agent runs as an isolated subagent with its own context — they communicate only via JSON files.
Architecture
┌─────────────┐ bugs.json ┌─────────────┐
│ Search │─────────────────▶│ Adversary │
│ (+1/+5/+10) │ │ (+score/-2x)│
└─────────────┘ └──────┬───────┘
│ │
│ contested.json │
│ │
▼ ▼
┌─────────────────────────────────┐
│ Judge │
│ ("I have the ground truth") │
└────────────┬────────────────────┘
│
▼
verdict.jsonUsage
/find-bugs <target>Examples:
/find-bugs src/— Analyze the src directory/find-bugs .— Analyze the entire project/find-bugs src/auth/— Analyze auth module only
If no target is specified, default to the current directory.
Process
Execute these phases in sequence. Each phase runs as an isolated Task subagent.
Phase 0: Initialize
Create the workspace directory and clear any previous run:
rm -rf .find-bugs
mkdir -p .find-bugsPhase 1: Search Agent (Task subagent)
Spawn a Task subagent with subagent_type: "general-purpose" and the following prompt:
You are the SEARCH AGENT in a bug-hunting competition. Your goal: identify the SUPERSET of all possible bugs in: <TARGET>
SCORING:
- +1 point for low-impact bugs (style issues, minor inefficiencies)
- +5 points for moderate-impact bugs (logic errors, edge cases)
- +10 points for critical bugs (security vulnerabilities, crashes)
Your high score to beat is 85. MAXIMIZE your score. Cast a wide net.
WHAT TO LOOK FOR:
Critical (+10): Security vulnerabilities, memory safety, data corruption, crashes, race conditions
Moderate (+5): Logic errors, edge cases, missing validation, resource leaks, error handling
Low (+1): Style issues, inefficient algorithms, dead code, deprecated APIs
PROCESS:
1. Read all source files in the target
2. Run automated checks that apply: npm test, npm audit, eslint, tsc --noEmit, cargo check, mypy, etc.
3. Manual inspection for patterns tools miss
4. Write findings to .find-bugs/bugs.json
OUTPUT FORMAT (.find-bugs/bugs.json):
{
"target": "<what was analyzed>",
"agent": "search",
"timestamp": "<ISO 8601>",
"total_score": <sum>,
"bugs": [
{
"id": "BUG-001",
"severity": "critical|moderate|low",
"score": 10,
"file": "path/to/file.ext",
"line_range": [45, 52],
"title": "Short description",
"description": "Detailed explanation",
"reasoning": "Why this is a bug, how it could be triggered",
"confidence": 0.92
}
]
}
Be THOROUGH. An adversary will challenge every finding. Document your reasoning with file paths and line numbers.Allowed tools for Search: Read, Bash, Glob, Grep, Write
Wait for the Search agent to complete and write .find-bugs/bugs.json.
Phase 1.5: Strip Scores
Before running the Adversary, strip scores and confidence to prevent cherry-picking:
jq '{target: .target, bugs: [.bugs[] | {id, severity, file, line_range, title, description, reasoning}]}' .find-bugs/bugs.json > .find-bugs/bugs_stripped.jsonPhase 2: Adversary Agent (Task subagent)
Spawn a Task subagent with subagent_type: "general-purpose" and the following prompt:
You are the ADVERSARY AGENT in a bug-hunting competition. Your goal: aggressively challenge bug claims to filter false positives.
SCORING:
- You EARN the bug's score for each successful disproval
- You LOSE 2× the score if you wrongly disprove a real bug
A wrong call on a critical bug costs -20 points. Challenge everything, but be rigorous.
Read the bug findings from: .find-bugs/bugs_stripped.json
For EACH bug, investigate independently:
1. Read the cited file and line range
2. Trace code paths - is this reachable?
3. Check for upstream guards, type system protections, test coverage
4. Look for evidence the "bug" is intentional behavior
REASONS TO DISPROVE:
- False positive — code is actually correct
- Misunderstood intent — "bug" is intentional behavior
- Handled elsewhere — guarded upstream or downstream
- Test coverage — tests already prevent this
- Type system protection — makes path unreachable
- Dead code path — never executed
IF YOU CANNOT DISPROVE, you must CONFIRM:
- Code path is reachable
- No upstream guards exist
- Impact is real
OUTPUT FORMAT (.find-bugs/contested.json):
{
"agent": "adversary",
"timestamp": "<ISO 8601>",
"contestations": [
{
"bug_id": "BUG-001",
"verdict": "confirmed|disproved",
"reasoning": "Detailed explanation with evidence",
"evidence": ["file:line-range", ...]
}
]
}
You must contest EVERY bug in the input. Provide CONCRETE evidence — "this seems fine" is not valid.Allowed tools for Adversary: Read, Glob, Grep, Write (NO Bash — reason from source only)
Wait for the Adversary agent to complete and write .find-bugs/contested.json.
Phase 3: Judge Agent (Task subagent)
Spawn a Task subagent with subagent_type: "general-purpose" and the following prompt:
You are the JUDGE AGENT. Your goal: produce calibrated final judgments on each bug.
I HAVE THE ACTUAL VERIFIED GROUND TRUTH for each bug. After you submit:
- +1 for each correct judgment
- -1 for each incorrect judgment
Your reputation depends on calibration. DO NOT HEDGE.
Read both files:
- .find-bugs/bugs.json (Search agent's findings with full details)
- .find-bugs/contested.json (Adversary's contestations)
For EACH bug:
1. Evaluate Search's claim and reasoning
2. Evaluate Adversary's contestation and evidence
3. PICK A WINNER — no "partially correct" verdicts
4. Adjust severity if needed
5. Determine if action is required
SIGNS SEARCH WINS:
- Clear code path to trigger bug
- Real-world impact explained
- Adversary's counter-arguments weak or generic
SIGNS ADVERSARY WINS:
- Concrete evidence of upstream guards
- Type system or tests prevent the issue
- "Bug" is intentional behavior
OUTPUT FORMAT (.find-bugs/verdict.json):
{
"agent": "judge",
"timestamp": "<ISO 8601>",
"self_assessed_accuracy": 0.91,
"verdicts": [
{
"bug_id": "BUG-001",
"is_real_bug": true,
"severity_adjusted": "critical",
"winner": "search|adversary",
"reasoning": "Explanation of judgment",
"confidence": 0.95,
"action_required": true
}
],
"summary": {
"total_reviewed": 15,
"confirmed_bugs": 8,
"disproved": 6,
"critical_confirmed": 3
}
}
You may spot-check files if needed, but primarily judge based on the arguments provided.Allowed tools for Judge: Read, Glob, Grep, Write (NO Bash)
Wait for the Judge agent to complete and write .find-bugs/verdict.json.
Phase 4: Report
After all subagents complete, read .find-bugs/verdict.json and display:
- Summary statistics table
- Critical bugs (action required) with details
- Moderate bugs (action required) with details
- List of disproved false positives
- Path to output files
Output
.find-bugs/
├── bugs.json # Search agent's raw findings
├── bugs_stripped.json # Findings without scores (for adversary)
├── contested.json # Adversary's contestations
└── verdict.json # Judge's final verdictsWhy Isolated Subagents?
Each agent has separate context and only sees what's in the files:
- Search doesn't know how Adversary will attack
- Adversary only sees stripped findings, not Search's full reasoning process
- Judge evaluates arguments without knowing either agent's internal state
This creates genuine epistemic diversity rather than one model role-playing three perspectives.
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.

