Command Palette

Search for a command to run...

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

bip-pr-check

Quick PR readiness check — clean worktree, good description, squashed body. Run before /bip-pr-review.

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

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

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

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

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

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

/bip-pr-check

Quick sanity check before running the heavier /bip-pr-review. Catches common issues that waste review cycles.

Usage

/bip-pr-check

Workflow

Step 1: Verify branch state

Check that we're on a feature branch (not main/master):

git branch --show-current

If on main/master, warn and stop.

Step 2: Check for uncommitted changes

git status --short

If there are uncommitted changes:

  • List them clearly
  • Ask the user: "There are uncommitted changes. Commit these before proceeding?"
  • Do not proceed until the worktree is clean or the user explicitly says to continue

Step 3: Fetch and rebase on base branch

git fetch origin
BASE=$(gh pr view --json baseRefName -q .baseRefName 2>/dev/null || echo "main")
git rebase "origin/$BASE"

If rebase has conflicts, stop and report — do not force-resolve.

If the rebase moved commits, push immediately:

git push --force-with-lease

Step 4: Check PR exists

gh pr view --json number,title,body,state,isDraft 2>/dev/null

If no PR exists:

  • Tell the user and ask if they want to create one now
  • Stop here if no PR

Step 4b: Scan added code for personal home paths

A reviewer reading for meaning skims past a hardcoded /home/<user>/ default, and once one lands it is copied into the next file.

git diff "origin/$BASE...HEAD" -U0 -- '*.py' '*.go' '*.sh' '*.smk' '*.yaml' '*.yml' '*.toml' '*Snakefile' '*Makefile' \
  | grep -E '^\+.*(/home/[a-z][a-z0-9_-]*/|/Users/[A-Za-z][A-Za-z0-9_-]*/)'

Added lines only, so existing debt does not block a PR; docs, logs, and reports that quote a past run's paths are outside the file list. Flag each hit: it belongs in a config file, an environment variable, or a required argument, unless the PR body says why it must be literal.

Step 5: Evaluate PR title

Check the PR title for quality:

  • Is it descriptive (not just "WIP" or a branch name)?
  • Is it under ~70 characters?
  • Does it describe the what not the how?

Flag any issues and suggest improvements.

Step 6: Evaluate PR body (the critical check)

Fetch the PR body and evaluate whether it reads as a clean summary or as historical commit noise.

Signs of a bad (historical/unsquashed) body:

  • Starts with * commit message or - commit message bullet lists
  • Contains a sequence of past-tense actions that read like a git log
  • Has "Co-Authored-By" lines scattered through the body
  • Contains multiple "fix typo", "address review", "WIP" entries
  • Is auto-generated from concatenated commit messages (GitHub's default for squash merge)
  • Is empty or just whitespace
  • Accumulates one section per review round — headers like "Reviewer follow-up: ...", "Human-flagged follow-up: ...", "Update:", or a growing "History" section — even when each section is individually well-written. This is the same defect as commit-message noise: the reader has to reconstruct current truth from a chronological trail instead of being told it directly. Long-running PRs that went through several review rounds are the most likely to have this — check specifically for it on any PR with more than one or two rounds of feedback.

Signs of a good (squashed/summary) body:

  • Has a ## Summary or similar section with 1-3 bullet points explaining what and why
  • Gives enough context that a reader who hasn't seen the linked issue can follow — not just a bare diff description
  • Reads as a coherent description a reviewer can understand
  • Has a test plan or notes section if appropriate
  • Is concise but informative

Also apply PROSE-DISCIPLINE.md (bipartite repo root) to the body, and EVIDENCE-DISCIPLINE.md to every number in it. Flag violations and offer to rewrite.

A clean, squashed body can still fail to say what the PR does — well-written prose that names defects and never states the change. Two checks catch that:

  • Read the first sentence of each section in sequence; that sequence must describe the diff. A heading that names a defect rather than the change is the tell:

    says the change names only the defect
    alt_2x2_plot now asks where the cache is instead of guessing alt_2x2_plot read a directory nothing writes
    The sonnia evaluation now takes a process count The pgen pool could not be capped
  • A correction or a deviation from the issue is content, not noise. Where the branch departs from the issue it implements — the spec was wrong, or the fix differs from what the issue proposed — that gets its own sentence. A reviewer approves the diff against the issue, so a silent deviation makes them approve against a spec the code no longer follows.

If the body looks like historical commit noise, revision-history accumulation, or is empty:

  1. Read the actual diff to understand the changes: git diff origin/$(gh pr view --json baseRefName -q .baseRefName)...HEAD. For a revision-history body specifically, also r
Полный SKILL.md на GitHub

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

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

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

FAQ

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

Quick PR readiness check — clean worktree, good description, squashed body. Run before /bip-pr-review.

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

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

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

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

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

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