Command Palette

Search for a command to run...

Назад к скиллам
скилл № 49432

bip-pr-review

Run the comprehensive pre-merge quality checklist on the current branch's PR, your own or someone else's checked out for review. The user's choice for every…

БесплатноБез исполняемых скриптов
matsenот matsen★ 35 звёзд на GitHub

Установить bip-pr-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/bip-pr-review

Run the pre-merge quality checklist on the current branch's PR.

Usage

/bip-pr-review

To review someone else's PR, run it in a claimed fleet clone after gh pr checkout <N>, and push nothing there. Whether to post, the Step 7 math comment included, follows docs/guides/roles.md ("Posting to GitHub"): another human's scientific PR gets the findings reported to the user, not posted. Don't report textual merge or rebase conflicts with sibling PRs; whoever lands second rebases. Report a collision only when it is semantic: two PRs that give one symbol different names, or make contradictory claims. In an r<N>-<slot> review window, once the review is complete (posted, by /bip-review-post or otherwise, or the user says it's done), message the conductor named in $CLONE_ROOT/.conductor-session to preserve _ignore/REVIEW-p<N>.md, close this window, and reclaim <slot>, unless the user has said to keep the window.

Workflow

Step 0: Check for Project-Specific Checklist

Look for PRE-MERGE-CHECKLIST.md in the repo root, else a "Pre-PR Quality Checklist" or "Pre-Merge Checklist" section in the project's CLAUDE.md or AGENTS.md. If one exists, follow it exactly instead of the generic workflow below.

Step 1: Detect Project Type

Indicator Project Type Agents to Use
workflow/*.smk or Snakefile Snakemake pipeline snakemake-pipeline-expert
*.py files in src/ or project root Python project clean-code-reviewer + code-reuse-reviewer
build.zig or *.zig files in src/ Zig project zig-code-reviewer
go.mod Go project clean-code-reviewer + code-reuse-reviewer
package.json Node.js project clean-code-reviewer + code-reuse-reviewer

Several types can apply. clean-code-reviewer judges each diff hunk; code-reuse-reviewer surveys the codebase first, then finds missed reuse of existing constants, helpers, and conventions.

Step 1.5: Fetch and determine base branch

git fetch origin
gh pr view --json baseRefName -q .baseRefName 2>/dev/null || echo "main"

Diff against origin/<base>, not local <base>, which may be stale.

Step 2: Identify Changed Files

git diff origin/<base>...HEAD --name-only

Step 3: Check for Large Files and Cruft

Flag for user confirmation before proceeding:

  • HTML from notebook execution (.html in output directories)
  • Images (.png, .jpg, .jpeg, .gif, .svg, .pdf) outside expected places like docs/ or assets/
  • Binaries and archives (.zip, .tar, .gz, .pkl, .pickle, .npy, .npz)
  • Data files (.csv, .tsv, .parquet) over 100KB
  • Cache/build artifacts (__pycache__/, .pyc, node_modules/, dist/, build/)

Don't flag small JSON results (< 100KB), config files (.json, .yml, .yaml in root or config directories), or fixtures in testdata/ or tests/fixtures/.

git diff origin/<base>...HEAD --name-only | xargs -I{} sh -c 'test -f "{}" && stat -f "%z %N" "{}" 2>/dev/null || stat --format="%s %n" "{}" 2>/dev/null' | awk '$1 > 102400 {print}'

Step 4: Run Agent Reviews (in parallel when possible)

  • Snakemake: launch snakemake-pipeline-expert on workflow structure and rule organization.

  • All code changes: launch clean-code-reviewer on modified source files (not tests) and, in parallel, code-reuse-reviewer on the same branch. They report independently.

  • Point clean-code-reviewer and code-reuse-reviewer at experiment and script code too, and ask what the PR could drop: modes, arms, and scripts its final result no longer uses (not controls or arms its README reports, including null ones), and helpers copied rather than imported.

  • All code changes: in parallel, launch a general-purpose agent for correctness:

    Review git diff origin/<base>...HEAD for correctness. Read the diff, then the code it
    touches: the callers of every changed function, the functions each one calls, and their tests.
    Look for a wrong result or crash (empty input, zero, the last item, rounding), a caller
    the change breaks, a fix made in one caller while the shared function stays wrong,
    swallowed errors or lost data, and risky new logic (a branch, a parser, a data write,
    a bug fix) with no test that fails when it breaks.
    Every finding needs a concrete case: this input or state gives this wrong result.
    No case, no finding. Re-read the lines to confirm each case before you report it.
    A shortcut whose comment names its limit is a decision, not a finding.
    Give each finding as file:line, the case, and the smallest fix.
    End with one line on what you could not check.
    

Step 4.5: Scientific Conclusion Skeptic (conditional)

Always check the PR title, body, and diff for a scientific conclusion: benchmark or comparison tables, win/loss rates or accuracy metrics, language like "outperforms", "fails to", "never beats", claim

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл bip-pr-review?

Run the comprehensive pre-merge quality checklist on the current branch's PR, your own or someone else's checked out for review. The user's choice for every PR review, in place of /code-review.

Как установить скилл bip-pr-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bip-pr-review запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bip-pr-review с