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.sh if you have a script that exits non-zero on the bug.
1---2name: bisect-regression3description: Bisect the Regression4---5# Bisect the Regression61. Find a known-good commit and a known-bad one. Confirm both by actually checking out and testing.72. `git bisect start; git bisect bad <bad>; git bisect good <good>`.83. At each step, run the SMALLEST test that distinguishes good from bad. Mark `git bisect good/bad`.94. When git names the first bad commit, read its diff. The bug is in those lines — don't guess elsewhere.105. `git bisect reset`. Report: the commit, the line, the one-sentence cause.11Automate it: `git bisect run ./repro.sh` if you have a script that exits non-zero on the bug.
Run npx skillmds@latest add archive228/bisect-regression in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Bisect the Regression It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
archive228 (@archive228) published this skill. Their other Agent Skills are listed on their SkillMD profile.