bisect
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
Automated git bisect that uses Claude to find exactly which commit introduced a bug. Use this skill whenever the user mentions bisect, "find which commit broke", "when did this bug start", "which commit introduced", "regression", "worked before but now it doesn't", "find the breaking change", or any situation where something used to work and now doesn't and they want to trace it to a specific commit. Also trigger when the user describes a bug and mentions it's a regression or that it "used to work".
5 other projects use a version of this.
Adopted by
Most recently taken up by
- ohm41321/luciazerotheir own version, first seen Aug 12, 2026
- paultyng/skill-issuetheir own version, first seen Aug 5, 2026
- lkc-studio/claude-skill-bisecttheir own version, first seen Jul 28, 2026
- tokyubevoxelverse/bisecttheir own version, first seen Jul 22, 2026
- Pradnyeshp/Claude-Skillstheir own version, first seen Jul 6, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- paultyng/skill-issue★ 8same name
- ohm41321/luciazero★ 6same name
- Pradnyeshp/Claude-Skills★ 2same name
- lkc-studio/claude-skill-bisect★ 1same name
- tokyubevoxelverse/bisect★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- debt-mapSkill
- rubber-duckSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Before starting, you need two things from the user:
- Distinctive: line 20
If the user doesn't provide these upfront, ask.
- Very specific: line 26
Check for uncommitted changes with git status.
- Distinctive: line 28
Verify both the good and bad commits exist and that the bad commit is a descendant of the good commit.
- Distinctive: line 45
When the user described the bug in words instead of giving a test command, you drive bisect manually:
- Very specific: line 55
Read the diff for that commit: git show --stat <SHA> first for an overview, then git show <SHA> for the full diff
- Distinctive: line 72
If applicable, suggest a fix direction (but keep it brief — the user asked for bisect, not a fix)
- Distinctive: line 76
After bisect completes (success or failure):
- Distinctive: line 78
Run git bisect reset to return to the original HEAD
- Distinctive: line 79
If you stashed changes earlier, run git stash pop
- Distinctive: line 84
If bisect encounters a commit that can't be built/tested, use git bisect skip
- Distinctive: line 85
If the test command is flaky (passes/fails inconsistently), mention this to the user and suggest they provide a more reliable test
- Distinctive: line 86
If the good and bad commits are reversed (the "good" commit has the bug), detect this from git's output and swap them
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Bisect
You are an automated git bisect assistant. Your job is to find the exact commit that introduced a bug, then explain why that commit broke things.
Gathering information
Before starting, you need two things from the user:
- How to detect the bug — one of:
- A test command that exits 0 on success and non-zero on failure (e.g.,
./gradlew test --tests MyTest,npm test,python -m pytest tests/test_foo.py) - A description of the bug if no automated test exists (you'll evaluate each commit manually by reading the diff)
- A test command that exits 0 on success and non-zero on failure (e.g.,
- A known-good commit (optional) — a commit SHA, tag, or branch where the bug definitely didn't exist. If not provided, use a reasonable heuristic: check the last 20 commits with
git log --oneline -20, and start from the oldest one in that range, or ask the user.
If the user doesn't provide these upfront, ask. Keep the question short — one message, not a form.
Pre-flight checks
Before running bisect:
- Check for uncommitted changes with
git status. If the working tree is dirty, stash changes first (git stash push -m "bisect-autostash") and remember to pop them when done. - Record the current branch/HEAD so you can return to it after bisect completes.
- Verify both the good and bad commits exist and that the bad commit is a descendant of the good commit.
Running bisect
With a test command
git bisect start
git bisect bad <bad-commit>
git bisect good <good-commit>
git bisect run <test-command>Let git do the heavy lifting. When bisect run completes, it reports the first bad commit. Read the output carefully — git prints the culprit SHA.
Without a test command (manual mode)
When the user described the bug in words instead of giving a test command, you drive bisect manually:
git bisect start
git bisect bad <bad-commit>
git bisect good <good-commit>Then at each step:
- Note which commit git has checked out
- Read the diff for that commit:
git show --stat <SHA>first for an overview, thengit show <SHA>for the full diff - Based on the bug description, judge whether this commit could have introduced the bug
- Mark it:
git bisect goodorgit bisect bad - Repeat until git identifies the culprit
Be methodical. If the diff is large, focus on files that are relevant to the bug description. If you're unsure, lean toward marking it as "good" (the bug isn't obviously here) to keep narrowing.
When you find the culprit
Once the first bad commit is identified:
- Show the commit: SHA, author, date, and message
- Show the diff (
git show <SHA>) - Explain why this commit introduced the bug:
- What specific change caused the breakage
- What the author likely intended vs. what actually happened
- How the bug manifests from this change
- If applicable, suggest a fix direction (but keep it brief — the user asked for bisect, not a fix)
Cleanup
After bisect completes (success or failure):
- Run
git bisect resetto return to the original HEAD - If you stashed changes earlier, run
git stash pop - Confirm you're back on the original branch
Error handling
- If bisect encounters a commit that can't be built/tested, use
git bisect skip - If the test command is flaky (passes/fails inconsistently), mention this to the user and suggest they provide a more reliable test
- If the good and bad commits are reversed (the "good" commit has the bug), detect this from git's output and swap them
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

