Bisect regression
Find the exact commit that introduced a bug. Use when something worked before and broke, and you don't know which change did it.From its SKILL.md
npx -y skills add Archive228/loopkit --skill bisect-regressionAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.8 KB, as published. Nobody here has run it
Bisect the Regression
- Find a known-good commit and a known-bad one. Confirm both by actually checking out and testing.
git bisect start; git bisect bad <bad>; git bisect good <good>.- At each step, run the SMALLEST test that distinguishes good from bad. Mark
git bisect good/bad. - When git names the first bad commit, read its diff. The bug is in those lines — don't guess elsewhere.
git bisect reset. Report: the commit, the line, the one-sentence cause. Automate it:git bisect run ./repro.shif you have a script that exits non-zero on the bug.