dotnet/maui/find-regression-risk
Claude Code and agent skill by dotnet/maui
- community
Checking that the SKILL.md file is still in the repository.
Detects potential regression risks in a PR by cross-referencing lines the PR REMOVES against lines ADDED by recent labeled bug-fix PRs (`i/regression`, `t/bug`, `p/0`, `p/1`) touching the same files. Purely mechanical — no AI/LLM. Emits a CLEAN / OVERLAP / REVERT verdict plus structured findings. Triggers on: "does this PR revert a previous fix", "check PR for regression risk", "find regression risks in PR", "is this change reverting a bug fix". Do NOT use for: assessing ship-readiness of a release branch (use release-readiness), investigating CI failures (use azdo-build-investigator), or general code review (use code-review).
Install
npx vskill@latest install dotnet/maui/find-regression-riskSKILL.md
find-regression-risk
Detects potential regression risks in a PR by cross-referencing removed lines against lines added by recent labeled bug-fix PRs.
How It Works
Purely mechanical — no AI/LLM. Five-step algorithm:
- PR diff — collects lines REMOVED by the PR under review.
- Git history —
git log --follow --since=6mofinds recent PRs that touched the same files. - Label filter — keeps PRs (or their linked issues) labeled
i/regression,t/bug,p/0, orp/1. - Fix diff — fetches each fix PR's diff and collects lines it ADDED to the same file.
- Compare — whitespace-insensitive string equality:
- 🔴 REVERT — removed line matches a line a fix PR added (highest risk).
- 🟡 OVERLAP — same file modified, but no exact line revert.
- 🟢 CLEAN — no bug-fix PRs touch the same files.
Standalone Invocation
Parameters
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
-PRNumber | Yes | — | PR number to analyze | |
-Repo | No | dotnet/maui | Repository in owner/name form | |
-FilePaths | No | auto-detect | Implementation files to check | |
-MonthsBack | No | 6 | History window for git log | |
-MaxRecentPRsPerFile | No | 20 | Rate-limit guard per file | |
-BaseBranch | No | main | Base branch for git log scope | |
-OutputDir | No | — | Directory for output files | |
-WriteInlineFindings | No | off | Emit inline-findings.json | |
-DiffFile | No | live PR diff | Frozen diff of the current PR; historical fix diffs are fetched normally | |
-ChangedPathsFile | No | live auto-detection | Frozen JSON array of changed file paths | |
-StrictEvidence | No | off | Fail on unavailable history/API evidence instead of reporting no match |
Outputs
When -OutputDir is specified:
- `result.txt` — single token:
CLEAN,OVERLAP, orREVERT - `risks.json` — structured findings for downstream agents
- `content.md` — markdown summary for the PR comment
- `inline-findings.json` — (only with
-WriteInlineFindings) inline annotations
Integration
The script runs as STEP 4 in Review-PR.ps1 (Regression Cross-Reference, after UI test detection and before the Gate step). Its content.md is assembled into the AI summary review by post-ai-summary-comment.ps1.
When REVERT risks are detected, the regression tests from the reverted fix PRs are executed:
- UI tests →
BuildAndRunHostApp.ps1 -Platform <plat> -TestFilter <filter> - Device tests →
Run-DeviceTests.ps1 -Project <proj> -Platform <plat> -TestFilter <filter> - Unit/XAML tests →
dotnet test <project> --filter <filter>
The expert reviewer agent (maui-expert-reviewer.md, dimension #6) reads risks.json to check for REVERT entries.
The standalone /review expert-review gh-aw collector supplies its frozen diff, changed paths and pinned base with -StrictEvidence. Collection failures become explicit evidence gaps, not CLEAN results. It inspects regression-test source but does not execute any of those tests.
Known Limitations
- Inline findings: The
-WriteInlineFindingsflag emits deletion-side (LEFT) annotations, butpost-inline-review.ps1currently only posts RIGHT-side comments. LEFT-side findings are silently dropped. This is documented as future work. - Whitespace-only changes: By design, an indent-only change to a fix line won't trigger a REVERT (the normalization collapses whitespace). This avoids false positives from reformatting.
- `pwsh -File` array parameters: When invoking standalone from bash, use
pwsh -Command '& ./script.ps1 -FilePaths @(...)'syntax.pwsh -Filedoesn't evaluate@()expressions.
Tests
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/find-regression-risk/SKILL.md
Popularity
- Repository stars
- 23,322
- Repository forks
- 1,985
- 7-day trend score
- 50
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dotnet/maui/find-regression-risk)