arabelatso/skills-4-se/git-bisect-assistant
- community
Checking that the SKILL.md file is still in the repository.
Automatically performs git bisect to identify the first bad commit that introduced a bug or failure. Use when debugging regressions, tracking down when a test started failing, or identifying which commit broke functionality. Handles flaky tests with retry logic and provides comprehensive reports with bisect logs and confidence levels.
Install
npx vskill@latest install arabelatso/skills-4-se/git-bisect-assistantSKILL.md
Git Bisect Assistant
Automates the git bisect process to efficiently identify the first bad commit responsible for a bug or test failure.
Quick Start
Basic usage pattern:
Example:
Workflow
- Gather Information
- Identify the known good revision (commit, tag, or branch)
- Identify the known bad revision (defaults to HEAD)
- Determine the test command that fails on bad commits and passes on good commits
- Run Bisect
- Execute the
git_bisect_runner.pyscript with appropriate parameters - The script will automatically test commits and narrow down the culprit
- Review Results
- Examine the identified bad commit
- Review the bisect log showing all tested commits
- Check confidence level and assumptions
Parameters
Required
--good: Known good revision (commit hash, tag, or branch name)--test: Shell command to test each commit. Exit code 0 = good, non-zero = bad
Optional
--bad: Known bad revision (default:HEAD)--repo: Repository path (default: current directory)--retries: Number of test runs per commit for flaky tests (default: 1)--timeout: Test execution timeout in seconds (default: no timeout)
Handling Flaky Tests
For non-deterministic tests, use --retries to run the test multiple times per commit:
The script uses majority voting: if a test passes 2 out of 3 times, the commit is marked as good.
Test Command Guidelines
The test command should:
- Exit with code 0 for good commits (test passes)
- Exit with non-zero code for bad commits (test fails)
- Be deterministic or use
--retriesfor flaky tests - Complete within reasonable time or use
--timeout
Examples:
Output Report
The script generates a comprehensive report including:
- First Bad Commit: Hash and commit message of the culprit
- Confidence Level: Assessment based on test stability and retry logic
- Assumptions: Any assumptions made during bisect (retries, timeouts)
- Tested Commits: Complete list of all commits tested with results
- Bisect Log: Detailed log of the bisect process
Common Scenarios
Scenario 1: Test Started Failing
User: "The integration tests started failing sometime in the last 20 commits"
Scenario 2: Feature Broke After Release
User: "Feature X worked in v2.1.0 but is broken now"
Scenario 3: Flaky Test Investigation
User: "A test fails intermittently, need to find when it started"
Tips
- Ensure clean state: Commit or stash changes before running bisect
- Fast tests: Use focused tests rather than full test suites for faster bisect
- Build requirements: Include build steps in test command if needed
- Dependencies: Ensure test command handles dependency installation if needed across commits
- Timeout wisely: Set timeout slightly longer than expected test duration
- Retry count: Use 3-5 retries for flaky tests to get reliable results
Troubleshooting
Bisect fails to start: Verify good and bad revisions exist and are valid git references
Test command fails unexpectedly: Test the command manually on a known good/bad commit first
Inconsistent results: Increase --retries or check for environmental factors affecting tests
Timeout too short: Increase --timeout or optimize test command
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-bisect-assistant/SKILL.md
Popularity
- Repository stars
- 252
- Repository forks
- 24
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arabelatso/skills-4-se/git-bisect-assistant)