bmad-review-edge-case-hunter

Detect unhandled edge cases in code, diffs, or specifications.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher --skill bmad-review-edge-case-hunter-jingyiwng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bmad-review-edge-case-hunter
Source: https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher/tree/main/_bmad/core/skills/bmad-review-edge-case-hunter
Command: npx skills add https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher --skill bmad-review-edge-case-hunter-jingyiwng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill systematically discovers missing handling for branching paths and boundary conditions in code, diffs, or specifications so reviewers never overlook unguarded cases that can cause failures or incorrect behavior.

Core Features & Use Cases

  • Exhaustive Path Tracing: Mechanically walk every branch, loop, and error handler reachable from the provided scope and identify only unhandled paths.
  • Diff-Aware Analysis: When a diff is given, restrict scope to changed hunks and report guards missing in the diff context.
  • Structured Output: Produce a strict JSON array of findings following an exact output schema for automated ingestion into tooling or bug trackers.
  • Use Case: Run on a pull request diff to surface missing null checks, missing else branches, off-by-one loop boundaries, and unguarded error paths introduced by the change.

Quick Start

Analyze the provided diff or file content and return a JSON array listing only unhandled edge-case paths per the Output Format.

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 pull request diff?

To find unhandled edge cases in a pull request diff, apply exhaustive path tracing to the changed hunks to identify missing null checks, unguarded error paths, and off-by-one loop boundaries. It restricts scope to the diff context to surface missing guards.

What is exhaustive path tracing for code review?

Exhaustive path tracing for code review is mechanically walking every branch, loop, and error handler reachable from the provided scope. It identifies only unhandled paths and boundary conditions to prevent reviewers from overlooking unguarded cases that cause failures.

Can I automate code review output for bug trackers?

Yes, you can automate code review output for bug trackers by producing a strict JSON array of findings. This structured output format follows an exact schema for automated ingestion into tooling or bug trackers during QA and review automation.

How do I detect missing else branches and boundary conditions in code?

To detect missing else branches and boundary conditions in code, analyze the full file or function content to enumerate every reachable path. This surfaces unhandled branching paths and unguarded cases that can cause incorrect behavior.

Does diff analysis work for finding unguarded error paths in full files?

Yes, diff analysis works for finding unguarded error paths, and it can also be applied to full files or functions. When applied to full files, it performs exhaustive path enumeration across the entire scope rather than restricting to changed hunks.