bmad-review-edge-case-hunter

Walks every branching path in code or diffs and reports unhandled edge cases as JSON.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/unbakedcosmos/thumbnailer --skill bmad-review-edge-case-hunter-unbakedcosmos
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bmad-review-edge-case-hunter
Source: https://github.com/unbakedcosmos/thumbnailer/tree/main/.claude/skills/bmad-review-edge-case-hunter
Command: npx skills add https://github.com/unbakedcosmos/thumbnailer --skill bmad-review-edge-case-hunter-unbakedcosmos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Code reviews often miss boundary conditions and implicit branches that only surface as production bugs. This Skill mechanically enumerates every control-flow path and domain boundary in a diff, file, or function, and reports only the paths lacking explicit handling. ## Core Features & Use Cases - Exhaustive Path Enumeration: Walks conditionals, loops, error handlers, early returns, and implicit branches such as unhandled enum members or sentinel values. - Diff-Aware Scoping: When given a diff, analyzes only changed hunks and boundaries directly reachable from them; a secondary deletion check flags removed behavior that was never re-established. - Structured JSON Output: Returns findings as a JSON array with location, trigger condition, guard snippet, and potential consequence, with no editorializing or severity rankings. - Use Case: Paste a pull request diff and receive a list like an unguarded null input on line 42 or a missing default case in a status-code switch, each with a minimal fix sketch. ## Quick Start Ask the AI to run an edge-case review on a pasted diff or function and return the unhandled boundary conditions as JSON.

Frequently Asked Questions about bmad-review-edge-case-hunter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find unhandled edge cases in a code diff?▼

Provide the diff as input and the review walks every branching path reachable from the changed lines, reporting only boundaries lacking an explicit guard. Findings come back as a JSON array with location, trigger condition, a guard snippet, and the potential consequence.

What kinds of edge cases does an edge case review detect?▼

It derives edge classes from the content itself rather than a fixed checklist. Typical findings include missing else or default branches, unguarded null or empty inputs, off-by-one loops, arithmetic overflow, implicit type coercion, race conditions, and timeout gaps.

Can I review a full file instead of a diff for edge cases?▼

Yes. When no diff is provided, the entire file or function becomes the analysis scope and every branch within it is walked. The rest of the codebase is ignored unless the provided content explicitly references external functions.

Does edge case review catch regressions from deleted code?▼

Yes, a secondary deletion check runs when a diff removes meaningful code. It flags removed behavior or contracts that were neither re-established nor intentionally retired, with a confidence rating of high, medium, or low.

What is the difference between edge case review and adversarial code review?▼

Edge case review is method-driven: it mechanically enumerates paths and reports only unhandled conditions, without judging code quality. Adversarial review is attitude-driven, hunting for weaknesses broadly, so the two approaches are orthogonal and complementary.