BugBot
Adversarial iterative code review that loops until clean.
Skill by RooseveltAdvisors
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rooseveltadvisors-bugbot
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/bugbot
What's inside
- Skill name
BugBot- Description
- Adversarial iterative code review that loops until clean. USE WHEN user says "bugbot", "deep review", "adversarial review", "find all bugs", "review until clean", OR wants iterative bug hunting with test coverage.
- License
- MIT
- Instructions
- 102 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
Files (3)
- Examples.md
- SKILL.md
- AdversarialReview.md · Workflows/
SKILL.md (first lines)
# BugBot
Adversarial iterative code review powered by a Ralph Wiggum loop. Attacks code from every angle — finds bug, scores confidence, fixes it, writes regression test, repeats until a full pass finds nothing new.
Unlike single-pass code review (static pattern scan), BugBot **loops automatically** until ALL_CLEAN: zero CRITICAL/HIGH findings, all 7 ODC triggers covered, all tests passing.
## Customization for Your Repo
BugBot is intentionally generic. To tailor it for a specific project, create a **repo-level override** at `.claude/skills/BugBot/Overrides.md` with:
- **Lint commands** — What linter/formatter to run in the mechanical pre-pass (default: detect from project)
- **Test commands** — How to run your test suite (default: detect from project)
- **Extra attack angles** — Repo-specific angles beyond the generic catalog (e.g., "HIPAA compliance" for healthcare, "i18n coverage" for multi-language apps)
- **Excluded paths** — Files/dirs to skip (e.g., generated code, vendored deps)
- **Severity overrides** — Promote certain bug classes to higher severity (e.g., "any auth bypass is always S3")
If no overrides file exists, BugBot uses sensible defaults and auto-detects the project's toolchain.
## Execution — Automatic Loop Until ALL_CLEAN
When `/BugBot` is invoked:
### 1. Determine Review Target
- If the user specified files or a feature name, use those
- Otherwise, run `git diff --name-only HEAD~4` to find recently changed files
- Read the diff and write a short target description
### 2. Check for ralph-wiggum Plugin
Verify `/ralph-wiggum:ralph-loop` is in the available skills list.
**If NOT available**, tell the user:
> BugBot requires the `ralph-wiggum` plugin. Install it:
> ```
> claude plugins add ralph-wiggum
> ```
> Then restart Claude Code and re-run `/BugBot`.
### 3. Detect Project Toolchain
Auto-detect the project's language, linter, formatter, and test runner by checking for common config files:
| File | Detected Stack |
|------|---------------|
| `pyproject.toml`, `setup.py`, `requirements.txt` | Python (ruff, black/ruff-format, pytest) |
| `package.json` | Node.js (eslint, prettier, jest/vitest/mocha) |
| `Cargo.toml` | Rust (clippy, rustfmt, cargo test) |
| `go.mod` | Go (golangci-lint, gofmt, go test) |
| `tsconfig.json` | TypeScript (tsc --noEmit, eslint, jest/vitest) |
Store the detected commands for use in the mechanical pre-pass. If a repo-level `Overrides.md` exists, use its commands instead.
### 4. Generate State File with Unique ID
Each BugBot invocation gets its own state file to support parallel sessions. Generate an 8-character random hex ID (e.g., via `openssl rand -hex 4`) and use it as the state file name:
```
.claude/review-state-{ID}.md
```
Example: `.claude/review-state-a3f1b20c.md`
Create the state file fresh. Tell the user the state file path so they can track progress.
### 5. Check for Repo Overrides
Read `.claude/skills/BugBot/Overrides.md` if it exists. Incorporate any custom lint/test commands, extra attack angles, excluded paths, or severity overrides into the loop prompt.
### 6. Launch the Loop
**IMPORTANT — single-line args format.** The ralph-loop skill parses its args as a shell-style string. Multi-line prompts get mangled. Always pass the prompt as a **single line** with the args.
Invoke the Skill tool with:
- `skill`: `ralph-wiggum:ralph-loop`
- `args`: A single-line string in this format (substitute `{TARGET}`, `{CHANGED_FILES}`, `{STATE_FILE}`, and `{OVERRIDES}` with actual values):
```
--max-iterations 10 --completion-promise "ALL_CLEAN" Read the BugBot AdversarialReview workflow at .claude/skills/BugBot/Workflows/AdversarialReview.md (user-level skill at ~/.claude/skills/BugBot/Workflows/AdversarialReview.md) and follow its instructions exactly for ONE iteration. STATE FILE: {STATE_FILE}. TARGET: {TARGET}. CHANGED FILES: {CHANGED_FILES}. OVERRIDES: {OVERRIDES or "none"}. You are inside a Ralph Wiggum loop. Each iteration you get a FRESH context. Your memory across iterations is {STATE_FILE} and files on disk (including git history). Execute ONE iteration: (1) Read {STATE_FILE}, (2) Run mechanical pre-pass, (3) Pick 3-5 UNTRIED attack angles prioritizing uncovered ODC triggers, (4) Spawn parallel review agents, (5) Fix CRITICAL/HIGH bugs and update state in {STATE_FILE}, (6) Check completion. Output the promise ONLY when a full pass of 3+ agents finds ZERO CRITICAL/HIGH, all 7 ODC triggers are covered, and all tests pass.
```
The loop terminates on `<promise>ALL_CLEAN</promise>` or after 10 iterations (safety limit).
## Workflow Routing
| Workflow | Trigger | File |
|----------|---------|------|
| **AdversarialReview** | "bugbot", "deep review", "adversarial review", "review until clean", "find all bugs" | `Workflows/AdversarialReview.md` |
Full methodology — confidence scoring, evidence requirements, attack angle catalog, agent templates, ODC trigger tracking, state file format — is in `Workflows/AdversarialReview.md`.
## Examples
```
/BugBot → review recent git changes
/BugBot deep review src/auth.py → scope to specific files
/BugBot review the checkout feature → scope to a feature
```
Detailed examples with full iteration traces: `Examples.md`From RooseveltAdvisors/claude-agent-stack, MIT.
More from RooseveltAdvisors/claude-agent-stack
- 0.433score
AgentBrowser
RooseveltAdvisors
Automates browser interactions for web testing, form filling, screenshots, and data extraction.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
Agents
RooseveltAdvisors
Dynamic agent composition and management system.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
Art
RooseveltAdvisors
Visual content generation with Excalidraw hand-drawn aesthetic.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
BlogWriter
RooseveltAdvisors
Write and publish blog posts to yourdomain.com.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
Browser
RooseveltAdvisors
Code-first Playwright automation via TypeScript scripts.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
CodeReview
RooseveltAdvisors
Code review and anti-pattern detection.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
ContextOptimizer
RooseveltAdvisors
Optimizes CLAUDE.md, AGENTS.md, and other agent context files in a repository using research-backed principles.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
CreateSkill
RooseveltAdvisors
Create and validate skills.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
DevFlow
RooseveltAdvisors
CI/CD workflow enforcer that detects current dev stage and guides to the next step.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
ContextArchitect
RooseveltAdvisors
Audit and optimize agent context files across Claude Code and OpenAI Codex.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
Prompting
RooseveltAdvisors
Meta-prompting system for dynamic prompt generation using templates, standards, and patterns.
SkillDFreshness: D★ 1Claude Code +9 - 0.423score
Scraping
RooseveltAdvisors
Web scraping via progressive escalation (Bright Data proxy) and social media platform actors (Apify).
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 1, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from RooseveltAdvisors
- 0.433score
AgentBrowser
RooseveltAdvisors
Automates browser interactions for web testing, form filling, screenshots, and data extraction.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
Art
RooseveltAdvisors
Visual content generation with Excalidraw hand-drawn aesthetic.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
BlogWriter
RooseveltAdvisors
Write and publish blog posts to yourdomain.com.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
Browser
RooseveltAdvisors
Code-first Playwright automation via TypeScript scripts.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
CodeReview
RooseveltAdvisors
Code review and anti-pattern detection.
SkillDFreshness: D★ 1Claude Code +9 - 0.428score
Agents
RooseveltAdvisors
Dynamic agent composition and management system.
SkillDFreshness: D★ 1Claude Code +9
Cite this page
BugBot skill. Agent Mart. https://agentmart.dev/skills/rooseveltadvisors-bugbot (last updated 2026-10-24)