Skip to main content
skill CX Codex

branch-review-before-pr — Claude Code skill: gate a branch before a PR

branch-review-before-pr reviews a branch diff against the default base and reports merge-stopping defects before the PR exists. Edits nothing until you approve a fix.

no license 167 installs ★ 5 updated 2026-08-31

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ulpi-io/skills --skill branch-review-before-pr -a claude-code
Open on GitHub

What branch-review-before-pr does

The skill reads the whole branch diff against its base (usually origin/main or origin/master) and hunts for what tests skip: risky queries, race conditions, auth and trust-edge mistakes, side effects buried in conditions. It works in two rounds, and round one covers only issues that should stop the merge.

Each candidate gets checked against the code around it before it reaches the report, so problems already handled nearby fall away. Stopping issues come first, informational ones after, and a clean branch is stated as clean. Categories and suppressions live in checklist.md inside the skill.

No edit happens until you choose “Fix it now” for one particular issue. Every stopping issue gets its own question, so nothing is decided in bulk and nothing is fixed behind your back. The skill never commits, pushes or opens the PR. Formatting preferences stay out of the report — if you want style nits, this is not the tool.

What it helps with

  • catch a risky query in the diff before it merges
  • sort merge-stopping findings from informational ones
  • check a branch for race conditions and auth holes
  • decide on each blocker one at a time instead of in a batch
  • confirm a branch is clean before opening the PR

Example prompts for the agent

  • Run branch-review-before-pr on this branch against origin/main, focus on the data access layer.
  • Review the branch with branch-review-before-pr; I only care about blocking findings.
  • Use branch-review-before-pr with no focus hint and read the full diff against origin/master.

How to install branch-review-before-pr

1Skills CLI (Vercel)

npx skills add ulpi-io/skills --skill branch-review-before-pr -a claude-code

2Manually: put the files in place

~/.claude/skills/branch-review-before-pr/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/branch-review-before-pr/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about branch-review-before-pr

How do I install branch-review-before-pr in Claude Code?

Run npx skills add ulpi-io/skills --skill branch-review-before-pr -a claude-code. The skill file lands at ~/.claude/skills/branch-review-before-pr/SKILL.md.

What does branch-review-before-pr do?

It reads the branch diff against its base and splits merge-stopping defects from the rest. Code changes only after you approve one specific fix.

How is it different from a bug hunt or a full-repo audit?

Its scope is the branch diff. A launch sweep across the repository belongs to go-live-audit, deep bug hunting to find-bugs, and styling is out of scope here.

Similar skills

All skills for Code review and refactoring →

From the same set49

The whole set →
plan-founder-review plan-founder-review reads a plan and its JSON sidecar, checks every path and reuse claim against the real repository, then returns APPROVE, REVISE or REJECT before any agent starts work. CX Codex +1 170installs find-bugs find-bugs audits the current branch diff for real logic defects and security flaws. It verifies each issue against caller code and outputs evidence-backed findings. CX Codex +1 169installs plan-to-task-list-with-dag plan-to-task-list-with-dag turns a request into an executable task graph grounded in the repository, then saves it as Markdown and JSON. Use it when a project needs scoped, assigned work. CX Codex +1 168installs codemap This skill uses the codemap CLI to search code by intent and inspect repository dependencies. Use it to locate symbols or investigate how files relate. CX Codex +1 167installs nodejs A reference skill that makes the agent follow your project's own Node.js or Bun backend conventions instead of generic defaults. CX Codex +1 163installs update-claude-learnings The update-claude-learnings skill turns one confirmed observation about Claude Code into a project rule in CLAUDE.md. It checks placement and asks before changing persistent memory. CX Codex +1 162installs update-agent-learnings The update-agent-learnings skill turns one confirmed lesson from a session into lasting agent guidance and syncs it to relevant agent files. Use it when a behavior rule should carry over to future sessions. CX Codex +1 160installs map-project-monorepo map-project-monorepo builds self-contained CLAUDE.md files for every monorepo member and keeps the project root minimal. CX Codex +1 160installs

Project sponsors

Companies that keep this analytics open