resolving-edge-cases
Installation
SKILL.md
Resolving Edge Cases
Use this to actively inspect relevant code, find plausible edge-case bugs, and fix or harden them. Do not wait for the user to enumerate edge cases.
Default Scope
When the user does not provide files, a commit, or a diff, use changed paths as the starting point: run git diff --name-only main...HEAD; if the repo uses master, run git diff --name-only master...HEAD instead. If there is no diff, inspect the files implied by the request; if no scope can be inferred, ask for one target.
Loop
- Infer intended behavior from the user request, code, tests, docs, and sibling flows; state assumptions, but only ask when the rule is ambiguous.
- Trace the real flow end to end, including callers, sibling routes, cleanup paths, and stored state.
- Proactively inspect plausible edge cases for that flow; skip generic checklists that cannot occur.
- Fix or harden each plausible bug at the shared root path, not only the reported symptom.
- Add the smallest regression test or executable check that fails without the fix.
- Run the narrow check, then scan sibling callers/routes for the same pattern.
- Repeat while each fix exposes a concrete adjacent edge case.
- Run the repo's normal verification gate before final response.