From git-workflow
Find the commit that introduced a regression with an automated git bisect run, then fix it. Use when something that used to work is now broken and the cause isn't obvious — the user says "this worked last week", "which commit broke X", "find the commit that caused this bug", "it regressed", or asks to bisect. Best when you can express the bug as a pass/fail command.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-workflow:bisect-debugThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A regression means there's a specific commit where behavior flipped from good to
A regression means there's a specific commit where behavior flipped from good to bad. Bisect finds it in O(log n) steps by binary-searching history with a pass/fail test. The payoff is a precise culprit commit you can read and fix, instead of guessing.
HEAD./tmp/bisect-check.sh, that reproduces the bug and exits 0 when the
behavior is good and non-zero when it's bad. Keeping it outside the working
tree is the trick: it stays put across every checkout, so you never add it
to the repo or shuffle a test commit through history. git bisect run
executes it from the repo root, so reference repo files by their normal
paths (and include a build step if the project needs one).[good-commit].git bisect start HEAD [good-commit]
git bisect run bash /tmp/bisect-check.sh # or the existing test command
Git checks out midpoints and runs the command at each until it reports
[bad-commit] is the first bad commit. Finish with git bisect reset to
return to where you started.git show [bad-commit] — explain what in it caused
the regression./tmp script was only scaffolding —
discard it). Always a fresh commit, never a rewrite of the culprit — it is
almost always already on shared history, which must not be rewritten (others
may have built on it). Write the fix commit with an imperative subject line
and a body explaining why the bug occurred, not how the diff works.bisect runManually marking each midpoint good/bad is slow and error-prone. A scripted command turns the whole search into one step — you only think at the start (pick the check and the good commit) and the end (fix the culprit).
npx claudepluginhub paulinevos/claude-stuff --plugin git-workflowUses git bisect to find the exact commit that introduced a bug. Run when something worked before and broke, and you don't know which change did it.
Use git bisect to binary-search commit history and identify the exact commit that introduced a regression.
Pinpoints the commit introducing a bug or regression using git bisect binary search. For performance regressions, recent test failures, or issues that previously worked.