bug-hunt

bug-hunt is a skill for Claude Code from chrisallenlane/claude-swe-workflows. It costs 52 tokens per session (2,347 once invoked), scanned A, original, MIT.

A code-review workflow that looks for likely bugs using code structure, complexity, and test coverage, then checks them with reproducing tests.

In plain words
What is it for?
Finding risky parts of a codebase, validating suspected bugs, and producing findings or tickets for later fixes.
Why use it?
It turns vague suspicions into confirmed findings backed by tests, without mixing investigation with fixing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the claude-swe-workflows plugin — 22 skills, 37 agents shipped together

Good fit Finding risky parts of a codebase, validating suspected bugs, and producing findings or tickets for later fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chrisallenlane/claude-swe-workflows/bug-hunt
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 chrisallenlane/claude-swe-workflows --skill bug-hunt
Clone the repo
git clone --depth 1 https://github.com/chrisallenlane/claude-swe-workflows

Made for: Claude Code.

Or install claude-swe-workflows, the plugin that ships this one along with the rest of its 22 skills, 37 agents.

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 bug-hunt

README.md
[![agentmods](https://agentmods.dev/badge/skills/chrisallenlane/claude-swe-workflows/bug-hunt/github.svg)](https://agentmods.dev/skills/chrisallenlane/claude-swe-workflows/bug-hunt)
Your own site
<a href="https://agentmods.dev/skills/chrisallenlane/claude-swe-workflows/bug-hunt"><img src="https://agentmods.dev/badge/skills/chrisallenlane/claude-swe-workflows/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.

agentmods 80×15 button for bug-hunt

Your own site · 80×15
<a href="https://agentmods.dev/skills/chrisallenlane/claude-swe-workflows/bug-hunt"><img src="https://agentmods.dev/badge/skills/chrisallenlane/claude-swe-workflows/bug-hunt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,347 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.00052 $0.02347
Opus 5.5 $0.00021 $0.00939
Sonnet 5.5 $0.00010 $0.00469
Haiku 4.5 $0.00005 $0.00235

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

Security

Grade A, and why

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 12d 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.

skills/bug-hunt/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bug Hunt — Find Bugs Before Users Do

Hunts for bugs nobody knows about yet. An assessor works out where bugs are likely to hide by cross-referencing change history (complexity × churn hotspots, fix density, change coupling), coverage gaps, and structural risk; focused hunters then probe each hotspot and write a reproducing test for every suspected bug. No speculative reports: a finding without a failing test is a suspicion, and is labeled as one.

The user states intent once. The skill then hunts round after round until a round confirms nothing at or above the severity floor — and, if given the authority, tickets what it finds and fixes it via /implement between rounds.

Philosophy

Evidence, not opinion. Every confirmed bug has a reproducing test that encodes the correct behavior and fails against the current code. That test is the finding's proof, the ticket's acceptance criterion, and the fix's verification.

Finding and fixing stay separate. Hunters never fix. The pressure to find bugs should not bend toward bugs that are easy to fix, and a fix needs fresh reasoning the hunter isn't in. When the skill has fix authority, it hands confirmed findings to /implement, which fixes them under its own floor — concept inventory, practical verification, independent correctness review — in a fresh context.

Converge on a floor, not on zero. A hunt always finds something at Low. The severity floor is the run's dominant judgment call: findings at or above it block convergence; findings below it are reported and left alone.

No rationalizing bugs away. A finding with a failing reproducing test is real. The skill may contest a finding only on substance — the test asserts the wrong behavior, or the "bug" is documented intended behavior — and a contested finding goes to the user, not into a quiet drop.

1. Commander's Intent

Ask once, up front:

Field Question Default if unanswered
Scope What should the hunt cover? Any areas you're worried about? Anything to skip? Production code; tests, dev tooling, generated and vendored code excluded
Severity floor Below what severity should findings be reported but not acted on? High (Critical and High block convergence)
Constraints Anything that must not change — public APIs, compatibility, files? No breaking changes; nothing else
Tickets May I create tickets for confirmed bugs without asking again? No — propose a ticket set at the end for approval
Fix May I fix confirmed bugs (on a branch, via /implement) and re-hunt? No

Read the full file on GitHub · 152 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago Changed · -281 lines · -7 tokens per session e59a906c2e1a
  2. 3mo ago First seen · 433 lines · 59 tokens per session scan A 237f2c66653f

Subscribe to this mod's changes

bug-hunt is a skill published in the GitHub repository chrisallenlane/claude-swe-workflows (21 stars, last pushed 13d ago), licensed MIT. It adds 52 tokens to every session and 2,347 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.

Related

bug-hunt compared with skills from other repositories

bug-hunt next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bug-huntchrisallenlane/claude-swe-workflowsSkill2113d agoMITA52Claude Code
code-reviewFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A10Claude Code, Codex
semgrep-rule-creatorwaybarrios/opencode-power-packSkill562todayMITA37Claude Code
five-whyswesammustafa/Claude-Code-Everything-You-Need-to-KnowSkill3.7k2d agononeA53Claude Code
review-checklistwesammustafa/Claude-Code-Everything-You-Need-to-KnowSkill3.7k2d agononeA25Claude Code, Codex
check-linkswesammustafa/Claude-Code-Everything-You-Need-to-KnowSkill3.7k2d agononeA44Claude Code, Codex
code-review-webrampstackco/claude-skillsSkill1.1k14d agoMITA121Claude Code