/bisect:bisect <instructions on what command to run to test each commit>from bisect
Uses git bisect to binary-search commit history and find the first commit that introduced a failure, given a test command.
Ships in bisect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use git bisect to binary-search through commit history and find the first commit that introduced a failure.
Check that there are no staged or unstaged changes. If there are, stop and tell the user they need a clean working tree before bisecting, since git bisect checks out older commits.
git status --porcelain
If the output is non-empty, stop and ask the user to commit or stash their changes first.
Use $ARGUMENTS to understand what the user wants to test. This should describe a command or check that fails on the current commit. Determine the exact shell command to run.
Run the test command on the current commit (HEAD). If it passes (exits 0), stop and tell the user — the current commit doesn't exhibit the failure, so there's nothing to bisect.
Start searching backwards from HEAD in steps of 10 commits to find a commit where the test passes.
git stash --include-untracked -q 2>/dev/null; true
git checkout HEAD~10 --quiet
Run the test command. If it still fails, go back another 10 commits (HEAD~10 from the current position). Repeat until either:
Once a good commit is found, note its SHA.
Return to the original branch first, then start bisecting:
git checkout - --quiet
git bisect start
git bisect bad
git bisect good <good-commit-sha>
Git will check out a middle commit. Run the test command on it:
git bisect badgit bisect goodRepeat until git reports the first bad commit.
Save the first bad commit SHA and message. Then reset:
git bisect reset
Tell the user the first bad commit, including:
git show --stat of the commit so they can see which files changedWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ryanb/dotfiles --plugin bisectOther plugins' skills for the same job