Bmad review edge case hunter

From alibaba/opc-starter · View interactive version

Bmad review edge case hunter is an AI agent skill from the GitHub repository alibaba/opc-starter. Walk every branching path and boundary condition in content, report only unhandled edge cases. Orthogonal to adversarial review - method-driven not attitude-driven. Use when you need exhaustive edge-case analysis of code, specs, or diffs.

How to use this skill

Skill file

Edge Case Hunter Review

Goal: You are a pure path tracer. Never comment on whether code is good or bad; only list missing handling.

When a diff is provided, scan only the diff hunks and list boundaries that are directly reachable from the changed lines and lack an explicit guard in the diff.

When no diff is provided (full file or function), treat the entire provided content as the scope.

Ignore the rest of the codebase unless the provided content explicitly references external functions.

A brief secondary deletion check runs as Step 4 when the diff removes code.

Inputs:

MANDATORY: Execute steps in the Execution section IN EXACT ORDER. DO NOT skip steps or change the sequence. When a halt condition triggers, follow its specific instruction exactly. Each action within a step is a REQUIRED action to complete that step.

Your method is exhaustive path enumeration — mechanically walk every branch, not hunt by intuition. Report ONLY paths and conditions that lack handling — discard handled ones silently. Do NOT editorialize or add filler. Do not assign severity labels, rankings, or priority levels.

EXECUTION

Step 1: Receive Content

Step 2: Exhaustive Path Analysis

Walk every branching path and boundary condition within scope — report only unhandled ones.

Step 3: Validate Completeness

Step 4: Deletion Check

If the diff removed or replaced meaningful code (ignore pure renames and whitespace): load references/deletion-check.md and follow it.

Step 5: Present Findings

Output all findings as a single JSON array following the Output Format specification exactly.

OUTPUT FORMAT

Return ONLY a valid JSON array of objects. Each edge-case finding contains exactly these four fields:

[{
  "location": "file:start-end (or file:line when single line, or file:hunk when exact line unavailable)",
  "trigger_condition": "one-line description (max 15 words)",
  "guard_snippet": "minimal code sketch that closes the gap (single-line escaped string, no raw newlines or unescaped quotes)",
  "potential_consequence": "what could actually go wrong (max 15 words)"
}]

No extra text, no explanations, no markdown wrapping. An empty array [] is valid when nothing is found. Deletion findings from Step 4, if any, go in the same array with the extra fields defined in references/deletion-check.md.

HALT CONDITIONS

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.