bisect
Skill1 starsChanged 2 months agoMITView on GitHub
Find the commit that introduced a regression with git bisect — pin a known-good and known-bad commit, automate the test where possible, land on the culprit, then understand why. Use when something worked before and doesn't now, the cause isn't obvious from a recent diff, and you can name a commit/tag where it was fine.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- paultyng/skill-issuetheir own version, first seen Oct 13, 2026
- sirius-db/siriustheir own version, first seen Oct 8, 2026
- ClickHouse/ClickHousetheir own version, first seen Oct 8, 2026
- ohm41321/luciazerotheir own version, first seen Aug 12, 2026
- lkc-studio/claude-skill-bisecttheir own version, first seen Jul 28, 2026
- tokyubevoxelverse/bisecttheir own version, first seen Jul 22, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- ClickHouse/ClickHouse★ 51ksame name
- sirius-db/sirius★ 1.1ksame name
- paultyng/skill-issue★ 8same name
- ohm41321/luciazero★ 6same name
- Pradnyeshp/Claude-Skills★ 2same name
- anuq/my-claude-skills★ 1same 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 repository73 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bigquery-analyticsSkill
- cache-invalidationSkill
- mongo-aggregationSkill
- mongo-modelingSkill
- postgres-aggregationSkill
- postgres-indexingSkill
- redis-coordinationSkill
- redis-patternsSkill
- review-querySkill
- code-migrationSkill
- cut-releaseSkill
- data-migrationSkill
- deploy-serviceSkill
- hotfixSkill
- rollbackSkill
- design-endpointSkill
- design-eventSkill
- design-schemaSkill
- evolve-contractSkill
- scaffold-nestjs-moduleSkill
- scaffold-projectSkill
- incident-responseSkill
- investigate-bugSkill
- on-callSkill
- postmortemSkill
- audit-skillsSkill
- distill-review-styleSkill
- write-skillSkill
- debug-with-tracesSkill
- define-alertsSkill
- instrument-serviceSkill
- evaluate-dependencySkill
- grillSkill
- handoffSkill
- orientSkill
- phased-deliverySkill
- spikeSkill
- to-questionnaireSkill
- write-adrSkill
- write-prdSkill
- devops-pr-reviewSkill
- go-backend-pr-reviewSkill
- nestjs-backend-pr-reviewSkill
- python-backend-pr-reviewSkill
- react-frontend-pr-reviewSkill
- break-couplingSkill
- dead-code-sweepSkill
- deslopifySkill
- extract-moduleSkill
- rebase-cleanSkill
- resolve-merge-conflictsSkill
- split-commitSkill
- tddSkill
- wait-whatSkill
- wide-renameSkill
- bullmqSkill
- kafkaSkill
- sqs-consumerSkill
- audit-dependenciesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
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 16
Verify the bug is *absent* there.
- Distinctive: line 30
Automate it: when the test is scriptable:
- Very specific: line 37
Use exit 125 (git bisect skip) for commits that don't build — don't let them score as good or bad.
- Very specific: line 39
If the repro needs a fresh install per step, do it in the script (npm ci / go mod download).
- Distinctive: line 48
If the culprit is a merge commit, bisect *within* it (git bisect start with its parents).
“Common” is measured: kept by at least 6 in 10 of the 7 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
Bisect a regression
Binary search over history. Fast when you can name a good commit and script the check.
Setup
- Reproduce the bad behaviour on
HEAD— a concrete check (a failing test, a command, a script that exits non-zero on the bug). This is your test. - Find a known-good point — a tag, a release, a commit/date where it worked. Verify the bug is absent there.
Run
git bisect start
git bisect bad # HEAD is bad
git bisect good v1.4.0 # this was good
# git checks out the midpoint; test it:
git bisect good # or: git bisect bad (per your test result)
# repeat until: "<sha> is the first bad commit"
git bisect resetAutomate it when the test is scriptable:
git bisect start HEAD v1.4.0
git bisect run ./scripts/repro.sh # exit 0 = good, non-zero = bad, 125 = skip- Use exit
125(git bisect skip) for commits that don't build — don't let them score as good or bad. - If the repro needs a fresh install per step, do it in the script
(
npm ci/go mod download).
After
- You have the first bad commit. Read its diff with the bug in mind — usually the mechanism is now obvious.
- Hand to
incident/investigate-bugto confirm the mechanism and write the regression test (name it for the bug). - If the culprit is a merge commit, bisect within it (
git bisect startwith its parents).
Anti-patterns
- ❌ Starting without verifying the "good" commit is actually good.
- ❌ Marking a non-building commit good or bad instead of
skip. - ❌ A flaky test as the bisect check — you'll land on the wrong commit.
- ❌ Stopping at the commit without understanding why it broke things.
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.

