agentleFS
nadirali1350nadirali1350/vetted/skills/bug-hunt-review/SKILL.md

bug-hunt-review

Skill2 starsChanged 2 months agoMITView on GitHub

Reviews code or a diff for real defects, meaning inputs or states that produce wrong results, crashes, data loss, or security holes, and reports each with a concrete failure scenario. Use when asked to review code, a pull request, a diff, or a change before merge. Leaves out style nitpicks unless asked.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    If you find nothing, say so plainly and name the areas you checked.

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Bug-hunt review

A review is worth the bugs it catches before users do. A list of twenty style suggestions with one real bug in the middle is a worse review than the one bug alone, because the reader has to dig for it and may never find it.

What counts as a finding

A finding is a defect you can describe as input or state, then wrong outcome:

parsePrice("1,299.00") returns 1 because parseFloat stops at the comma, so any order over $999 is charged $1.

Look hardest at:

  • boundaries: empty, zero, one, max, negative, unicode, duplicate, null
  • error paths: what happens when the call fails, times out, or partly succeeds
  • concurrency and ordering: races, re-entrancy, stale reads, retries
  • trust boundaries: user input reaching SQL, shell, file paths, HTML, redirects
  • resource handling: leaks, unbounded growth, missing cleanup on error
  • contracts: callers that now receive something they don't expect

Verify before you report

For each candidate, trace the code path that produces the failure. If you can run code, write the smallest reproduction. Drop anything you can't back with a concrete scenario, or list it separately as "uncertain" with what would confirm it. A false positive costs the author time and costs your review credibility.

Output

Most severe first. For each finding:

[severity] file:line: one-sentence defect
  Scenario: concrete input/state → wrong outcome
  Fix: the smallest change that removes it

Severity: critical (data loss, security, crash in a common path), high (wrong results users will hit), medium (edge cases, degraded behavior), low (latent issues that need an unlikely trigger).

If you find nothing, say so plainly and name the areas you checked. Don't pad the review with style comments to look thorough. If the user asked for style feedback too, put it in a separate short section after the defects.

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.