bmad-review-edge-case-hunter

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

Updated May 7, 2026
One-click install
npx skills add https://github.com/jgabriellima/deep-agent-skill --skill bmad-review-edge-case-hunter-jgabriellima
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bmad-review-edge-case-hunter
Source: https://github.com/jgabriellima/deep-agent-skill/tree/main/skills/bmad-review-edge-case-hunter
Command: npx skills add https://github.com/jgabriellima/deep-agent-skill --skill bmad-review-edge-case-hunter-jgabriellima

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code reviews often miss boundary conditions and unguarded branches that only surface as production bugs. This Skill mechanically enumerates every branching path and boundary condition in a diff, file, or function and reports only the paths lacking explicit handling. ## Core Features & Use Cases - Exhaustive Path Enumeration: Walks control flow (conditionals, loops, error handlers, early returns) and domain boundaries to derive edge classes from the content itself. - Diff-Aware Scoping: When given a diff, analyzes only changed hunks and boundaries directly reachable from changed lines; ignores unrelated codebase context. - Structured JSON Findings: Returns a strict JSON array with location, trigger condition, guard snippet, and potential consequence for each unhandled path. - Use Case: Before merging a pull request that adds input parsing logic, run this review on the diff to catch missing null checks, off-by-one loops, or unguarded type coercions. ## Quick Start Ask the agent to run the edge case hunter review on a pasted diff or function and return the JSON list of unhandled edge cases.

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 the content input and the review scans only the changed hunks, listing boundaries reachable from changed lines that lack an explicit guard. Findings are returned as a JSON array with location, trigger condition, guard snippet, and consequence.

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

Edge case review is method-driven: it mechanically enumerates every branching path and reports only unhandled ones, without judging code quality. Adversarial review is attitude-driven and critiques design or style, which this review explicitly avoids.

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. The review walks all control flow and domain boundaries within that content and ignores the rest of the codebase unless explicitly referenced.

What output format does the edge case review produce?▼

It returns only a valid JSON array where each object has exactly four fields: location, trigger_condition, guard_snippet, and potential_consequence. An empty array is returned when no unhandled paths are found.

What happens when the review input is empty or invalid?▼

The review halts immediately and returns a single JSON object indicating the input was empty or undecodable, with a guard snippet requesting valid content. No further analysis steps are executed.