branch-review

branch-review is a skill for Claude Code from hamr0/agentic-toolkit. It costs 0 tokens per session (6,935 once invoked), scanned A, a copy of branch-review, Apache-2.0.

A branch review command that checks a Git branch or change range in two stages: a general review followed by a full security audit. It reports findings without editing code and records lower-priority items in a local fix list.

In plain words
What is it for?
Use it to review a branch, file, or comparison before merging, find security and other high-priority problems, and maintain a backlog of remaining fixes.
Why use it?
It provides a repeatable pre-merge check and separates merge-blocking problems from issues that can be fixed later. It also prevents the review process from making unauthorized code changes.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

Good fit Use it to review a branch, file, or comparison before merging, find security and other high-priority problems, and maintain a backlog of remaining fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamr0/agentic-toolkit/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 hamr0/agentic-toolkit --skill branch-review
Clone the repo
git clone --depth 1 https://github.com/hamr0/agentic-toolkit

Made for: Claude Code.

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/hamr0/agentic-toolkit/branch-review/github.svg)](https://agentmods.dev/skills/hamr0/agentic-toolkit/branch-review)
Your own site
<a href="https://agentmods.dev/skills/hamr0/agentic-toolkit/branch-review"><img src="https://agentmods.dev/badge/skills/hamr0/agentic-toolkit/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/hamr0/agentic-toolkit/branch-review"><img src="https://agentmods.dev/badge/skills/hamr0/agentic-toolkit/branch-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,935 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 95% copy Near-identical to another mod 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.00000 $0.06935
Opus 5.5 $0.00000 $0.02774
Sonnet 5.5 $0.00000 $0.01387
Haiku 4.5 $0.00000 $0.00694

Measured 23d ago against content hash 67d650040aa6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 23d 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.

Origin

This is a copy

95% identical to branch-review — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

ai/subagentic/ampcode/skills/branch-review/SKILL.md · 309 lines

How it starts

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


name: branch-review description: Review a branch before merge argument-hint: [commit hashes | from..to | blank = this branch] [low|medium|high|max] allowed-tools: Read, Grep, Glob, Agent, Edit, Write, Bash(git add:), Bash(git commit:), Bash(git diff:), Bash(git fetch:), Bash(git log:), Bash(git show:), Bash(git status:), Bash(git grep:), Bash(git rev-list:), Bash(git rev-parse:), Bash(git merge-base:), Bash(rg:) disable-model-invocation: true

Pre-merge review gate. General review, then a full security audit, then an adversarial verify pass, then a docs sweep. It never edits code: findings are reported and handed back, and fixing is a separate, separately authorized action. The docs sweep is the one stage that writes, and only to docs — it updates the project's docs for what this branch changed and commits exactly that.

Only Critical and High findings block the merge. Everything else is appended to the fix ledger (.amp/remember/fix-ledger.md) — a local, cumulative list, living beside MEMORY.md, usually gitignored, that /refactor (no arguments) works through between features. The report is blockers plus the ledger count. This command never runs /refactor itself — it nudges.

Run this before /release, which refuses to run without a review at the current HEAD SHA.

Guardrails

  • Spawn a worker, mid tier stated explicitly (omitted inherits the parent's, not the balanced one; not cheapest/fastest either — judgment degrades there; never a vendor model name), and hand it this file's path — a worker has no skill text of its own. Fall back to running inline if your tool has no subagent mechanism.
  • Escalate, never assume. Anything you cannot decide, cannot verify, or that this spec does not cover → stop and report it to the orchestrator (the main session). Never improvise, never widen scope, never fix a side issue you noticed along the way.
  • The worker does the work itself — no delegation. The review subagent must not spawn subagents of its own. Everything it reports has to be something it read, ran, or grepped with its own tool calls; a relayed "I executed X" is hearsay. (Same rule /security carries inside stage 2.)
  • No edits — three exceptions. You have no authorization to change code, even for a finding you are certain about. Report it. The only files you may write are .amp/remember/fix-ledger.md (append bullets; never rewrite or delete), .amp/remember/last-review.md (overwrite; the review record described at the end of this file), and the doc files Stage 4 touches — edited and then committed by that stage alone, never for code, skills, config, or tests.
  • Prove it with two checks, because neither sees what the other does. git status --porcelain, at start and again before you report, proves the tree is clean — no code or config changed, and, when Stage 4 ran (review settled), that its doc edits landed as the last act before you report. It cannot police your own two .amp/ writes (.amp/ is normally gitignored), so also hash the files there before you start and again before you report:
    find .amp/remember -maxdepth 1 -type f -exec md5sum {} + | sort -k2
    
    and show the comparison: only fix-ledger.md and last-review.md may differ. And run git diff --name-only <reviewed sha>..HEAD before you report: it must list only the files on the record's docs: line — anything else means an edit escaped Stage 4's scope. Both results are shown on the proof: line of the closing block.

Read the full file on GitHub · 309 lines

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. 23d ago Changed · -128 lines 67d650040aa6
  2. 24d ago Changed · +2 lines f93df18e4a41
  3. 1mo ago Changed · +5 lines 400a7d122e84
  4. 1mo ago Changed · +56 lines 031356fd2af2
  5. 1mo ago Changed · +17 lines 17728a56af31
  6. 1mo ago First seen · 357 lines · 0 tokens per session scan A 7ae8946963e2

Subscribe to this mod's changes

branch-review is a skill published in the GitHub repository hamr0/agentic-toolkit (22 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 6,935 tokens. A static security scan graded it A with 0 findings. It is 95% identical to branch-review, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

karpathy-guidelines

A set of coding guidelines based on observations about common mistakes made by language models. It emphasizes simple solutions, small targeted edits, clear assumptions, and checkable results.

itmisx/deepx-code · 55 tokens

superpowers-receiving-code-review

Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation.

EvovexAI/EvoFlow · 41 tokens

github

A guide for using GitHub through the gh command-line tool, which lets developers work with GitHub without opening its website. It covers issues, pull requests, continuous-integration runs, code reviews, and API queries.

EvovexAI/EvoFlow · 103 tokens

superpowers-requesting-code-review

Use when completing tasks, implementing major features, or before merging to verify work meets requirements.

EvovexAI/EvoFlow · 24 tokens

coding-agent

A tool that sends coding work to an external coding agent already installed on the computer, such as Claude Code, OpenCode, or Pi. It is intended for feature development, pull-request reviews, large refactors, and exploratory coding.

EvovexAI/EvoFlow · 82 tokens

requesting-code-review

A procedure for asking another coding agent to inspect completed changes before they are merged. Code review means checking whether the implementation meets its requirements and finding defects.

itmisx/deepx-code · 26 tokens