Skip to content
Back to skills

Bisect Regression

ASecurity

Run git bisect against a user-defined failure predicate (numeric diff, perf threshold, test failure). Outputs the first-bad commit with context.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
developmentgorailsgitbackend

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 29, 2026

npx -y skills add VMAFx/vmafx --skill bisect-regression --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bisect Regression?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bisect Regression
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vmafx-bisect-regression/badge)](https://www.skillsdirectory.com/skills/vmafx-bisect-regression)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bisect-regression
description: Run git bisect against a user-defined failure predicate (numeric diff, perf threshold, test failure). Outputs the first-bad commit with context.
---
<!-- markdownlint-disable MD013 -->

# /bisect-regression

## Invocation

```text
/bisect-regression --bad=<sha> --good=<sha> --predicate=<type> [--predicate-arg=...]
```

Predicates:

- `test:<name>` = repository-sanitized Meson test runner exit code.
- `score-delta:<ref>,<dist>,<feature>,<tol>` = absolute score diff > tol
  between bad commit and good.
- `perf-threshold:<feature>,<pct>` = throughput drop > pct%.
- `netflix-golden` = Netflix CPU golden tests pass/fail.

## Workflow

1. `git bisect start <bad> <good>`.
2. Create script `/tmp/bisect-predicate.sh`:
   - Rebuild (`/build-vmaf --backend=cpu`)
   - Evaluate predicate
   - Exit 0 (good) / 1 (bad) / 125 (skip, e.g. build failed unrelated reason)
3. `git bisect run /tmp/bisect-predicate.sh`.
4. On finish: `git bisect log` + `git show <first-bad>` + markdown summary.
5. `git bisect reset`.

## Guardrails

- Never commit during bisect.
- Stash local changes first; unstash at end.
- Skip commits failing build (exit 125); do not mark bad.

## Shared helpers

- Driver script (`scaffold.sh`) sources
  [`.claude/skills/lib/bisect-common.sh`](../lib/bisect-common.sh) for
  operator-tree guards (clean-tree check, auto-stash push/pop,
  `git bisect reset` on exit) and verdict rendering.
- Companion skill `/bisect-model-quality` sources same library.
- Keep shared helper changes backwards compatible; do not silently
  regress model-quality flow.

Files in this skill

  • SKILL.md1.7 KB
  • scaffold.sh3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.