What problem does it solve?
When reviewing a pull request, it is hard to know whether the change accidentally undoes a previous bug fix. This Skill mechanically compares the lines a PR removes against lines added by recent labeled bug-fix PRs touching the same files, surfacing potential reverts before merge.
Core Features & Use Cases
- Revert Detection: Flags an exact match between a removed line and a line added by a prior fix PR as a REVERT risk, with OVERLAP and CLEAN verdicts for lower-risk cases.
- Label-Filtered History: Uses git log and GitHub labels (
i/regression, t/bug, p/0, p/1) to focus only on relevant bug-fix PRs within a configurable time window.
- Structured Outputs: Emits result.txt, risks.json, content.md, and optional inline findings for downstream review agents and PR comments.
- Use Case: Before merging a PR that modifies
MauiWindowInsetListener.cs, run the script to confirm it does not revert a fix shipped last month for a p/1 bug.
Quick Start
Ask the AI to check PR 33908 in dotnet/maui for regression risks by running the Find-RegressionRisks.ps1 script with an output directory.