branch-review

branch-review is a skill for Claude Code from helmedeiros/clean-code-skills. It costs 53 tokens per session (1,343 once invoked), scanned A, original, MIT.

A code-review guide for comparing a feature branch with its base branch, such as main, and rating the changes across code-quality areas.

In plain words
What is it for?
Use it to review a branch before merging, compare an old implementation with a rewrite, or produce a scored code-quality report with suggested improvements.
Why use it?
It turns a broad question like “is this branch ready?” into an evidence-based review using the differences between the two versions of the code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the clean-code-skills plugin — 21 skills, 2 commands shipped together

Good fit Use it to review a branch before merging, compare an old implementation with a rewrite, or produce a scored code-quality report with suggested improvements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/helmedeiros/clean-code-skills/branch-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add helmedeiros/clean-code-skills --skill branch-review
Clone the repo
git clone --depth 1 https://github.com/helmedeiros/clean-code-skills

Made for: Claude Code.

Or install clean-code-skills, the plugin that ships this one along with the rest of its 21 skills, 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for branch-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/helmedeiros/clean-code-skills/branch-review/github.svg)](https://agentmods.dev/skills/helmedeiros/clean-code-skills/branch-review)
Your own site
<a href="https://agentmods.dev/skills/helmedeiros/clean-code-skills/branch-review"><img src="https://agentmods.dev/badge/skills/helmedeiros/clean-code-skills/branch-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for branch-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/helmedeiros/clean-code-skills/branch-review"><img src="https://agentmods.dev/badge/skills/helmedeiros/clean-code-skills/branch-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01343
Opus 5 $0.00026 $0.00672
Sonnet 5 $0.00011 $0.00269
Haiku 4.5 $0.00005 $0.00134

Measured 10d ago against content hash 72f448fc3624, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

branch-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/branch-review/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Branch Code Quality Review

Compare old code on the base branch against new code on the feature branch and produce a detailed, evidence-backed scorecard across 11 quality dimensions.

When This Skill Applies

  • The user wants to review the quality of changes on a feature branch
  • Comparing old vs new implementation during a migration or rewrite
  • The user asks for a scored code quality assessment
  • Evaluating whether a branch is ready to merge
  • Tracking quality progression across multiple review iterations

Core Principle

Measure code quality objectively by scoring 11 dimensions with real evidence — file names, line counts, pattern counts, and concrete examples. Honest, specific scores with improvement paths are more valuable than inflated ratings. Architecture, type safety, and testing are weighted more heavily because they compound over time.

Workflow

Step 1: Identify the Branch

Determine the feature branch and the base branch (main or master). If a branch name is provided, use it. Otherwise use the current branch.

Step 2: Gather Evidence

Run the following analyses against the diff between base and feature branch:

  • git diff <base>...HEAD --stat to list all changed files.
  • git diff <base>...HEAD to read the actual changes.
  • Count lines per file. Flag files over 200 lines.
  • Check type safety: strict mode, @ts-ignore, @ts-expect-error, as any, as unknown, Record<string, any>.
  • Check styling approach: CSS modules vs inline styles (style={{, style={).
  • Check test coverage: test files, describe/it/test blocks, integration vs unit tests.
  • Check accessibility: aria- attributes, role=, semantic HTML, color-only indicators.
  • Check error handling: try/catch, error boundaries, API error handling.
  • Check code duplication: repeated constants, copy-pasted components, duplicated helpers.
  • Check API integration: cancellation, retries, typed responses, caching.
  • Check routing: lazy loading, nested layouts, 404 handling, breadcrumbs.
  • Check state management: prop drilling depth, global state, custom hooks.
  • Check DX tooling: linting, formatting, pre-commit hooks, import sorting.

Read the full file on GitHub · 98 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 98 lines · 53 tokens per session scan A 72f448fc3624

Subscribe to this mod's changes

branch-review is a skill published in the GitHub repository helmedeiros/clean-code-skills (2 stars, last pushed 6mo ago), licensed MIT. It adds 53 tokens to every session and 1,343 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens

sip

After you create or change an artifact or skill, taste-test it with our own skills instead of trusting your in-session judgment — recursive self-improvement, made automatic. Use right after writing or editing anything, before calling it done, committing, or handing it off.

LilMGenius/paperthin · 55 tokens

prism

Split one artifact — a claim, plan, or file — across 2 to 5 independent lenses, one per genuinely distinct failure mode (correctness, security, readability, cost, adversarial-user), and return their convergence: where they agree, where they disagree, and the single next question that resolves the disagreement. Use…

LilMGenius/paperthin · 98 tokens

hate

Attack a plan, design, or argument like you want it to fail before you commit real effort — return the single load-bearing objection and the cheapest experiment that would prove it matters, not a checklist. User-invoked on purpose: a hate-it reflex always in the agent's reach would bias it toward demolition. Weighs…

LilMGenius/paperthin · 79 tokens

issue-analyze

GitHub Issue and PR review thread deep analysis with Codex blind verdict. Use when: analyzing issue root cause, classifying problems, investigation planning, triaging PR review comments for actionability. Not for: fixing bugs (use bug-fix), code exploration (use code-explore). Output: classified analysis + verdict…

sd0xdev/sd0x-harness · 73 tokens

load-pr-review

Load GitHub PR review comments into AI session — analyze, triage, plan. Default: analysis-only (no auto-fix). Use when: reviewing PR feedback, planning fixes, addressing review comments, replying to reviewers. Not for: creating reviews (use codex-review-fast), creating PRs (use create-pr), viewing PR status (use…

sd0xdev/sd0x-harness · 77 tokens