agentleFS
codebygarvcodebygarv/Ai-skills/skills/development/bug-hunter/SKILL.md

bug-hunter

Skill26 starsChanged 4 months agoMITView on GitHub

Searches code specifically for potential bugs, edge cases, race conditions, and incorrect assumptions rather than general style/quality. Use when the goal is finding what's broken, not improving what already works.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before shipping code that handles money, user data, or concurrency, where a missed bug is expensive.

    line 13
  2. Distinctive:

    No entry without a concrete triggering scenario — "this looks risky" without a scenario isn't a finding, it's a hunch.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 7 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Hunt specifically for defects — not style, not maintainability, not architecture. The single question driving this skill is: "under what real input or timing, does this code produce a wrong result or crash?"

When to Use

  • The user wants bugs found, specifically — not a general quality review.
  • Before shipping code that handles money, user data, or concurrency, where a missed bug is expensive.
  • Debugging: the user suspects a bug exists somewhere in a file/module but hasn't found it yet.

What to Analyze

  1. Boundary conditions — empty collections, zero, negative numbers, max values, single-element cases.
  2. Null/undefined/missing data — every place data is accessed, ask what happens if it's absent.
  3. Type coercion and comparison bugs — loose equality, implicit conversions, unit mismatches (ms vs. seconds, cents vs. dollars).
  4. Concurrency/race conditions — shared mutable state, async operations that assume ordering that isn't guaranteed, double-submit/double-click scenarios.
  5. Off-by-one and loop errors — inclusive/exclusive bounds, iterator invalidation.
  6. Incorrect assumptions — code that assumes an invariant (sorted input, unique IDs, non-empty list) that isn't actually enforced anywhere.

Output Format

  • Each bug as its own entry: file/line, trigger condition (the specific input/timing that causes it), actual vs. expected behavior, suggested fix.
  • Ordered by severity — data corruption/crash first, cosmetic/rare-edge-case issues last.
  • No entry without a concrete triggering scenario — "this looks risky" without a scenario isn't a finding, it's a hunch; say so separately if worth a mention.

Avoid

  • Reporting style or readability issues — that's Code Reviewer's job, not this skill's.
  • Vague findings without a reproducing scenario.
  • Flagging theoretical issues that the surrounding code already guards against (check the full context first).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.