review-gate-diff-verification

review-gate-diff-verification is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 68 tokens per session (1,349 once invoked), scanned A, original, MIT.

A verification workflow for code-review gates that checks whether the branch diff shows the changes actually made by the branch. It handles cases where the main branch moved and makes unrelated files appear changed.

In plain words
What is it for?
Use it to find the real branch fork point, inspect suspicious added or deleted files, run focused symbol searches, and compare the implementation with the accepted plan.
Why use it?
A review can judge the wrong files if its comparison point is stale, or search can match generated build files instead of source code. This confirms the true base and the committed plan before evaluating the implementation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find the real branch fork point, inspect suspicious added or deleted files, run focused symbol searches, and compare the implementation with the accepted plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/review-gate-diff-verification
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 Arasz/ai-raccoon --skill review-gate-diff-verification
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code, Codex.

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 review-gate-diff-verification

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/review-gate-diff-verification/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/review-gate-diff-verification)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/review-gate-diff-verification"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/review-gate-diff-verification/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 review-gate-diff-verification

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/review-gate-diff-verification"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/review-gate-diff-verification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,349 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.00068 $0.01349
Opus 5.5 $0.00027 $0.00540
Sonnet 5.5 $0.00014 $0.00270
Haiku 4.5 $0.00007 $0.00135

Measured yesterday against content hash 781ab10ecf7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-gate-diff-verification 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 yesterday.

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.

.ai-badger/skills/review-gate-diff-verification/SKILL.md · 64 lines

How it starts

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

Review-gate diff verification

Gate reviews (code-reviewer, phase-3, plan-vs-implementation) judge a branch diff. Before judging content, verify the diff itself is real — the plumbing lies more often than the code.

Pitfall 1 — base drift → phantom changes (the big one)

Symptom: git diff origin/main..HEAD shows D/M on files that NO commit in git log origin/main..HEAD --stat touches.

Cause: the base ref moved past the declared fork point. Main gained commits after the branch was created (e.g. PRs merged post-fork); the worktree's origin/main ref now points past the declared base. Files ADDED on main after the fork appear as phantom D in the worktree diff; state-file entries appear as phantom M. The branch itself made no such change.

Diagnosis sequence (in order):

  1. git merge-base origin/main HEAD — the true fork point.
  2. git rev-parse origin/main vs git rev-parse <first-commit>^ — if they differ, the base ref drifted.
  3. git ls-tree origin/main -- <path> vs git ls-tree HEAD -- <path> — which side actually holds the file.
  4. Confirm: git diff <true-base>..HEAD --name-status — clean means the "deletions" were main-side additions.

Resolution: review and gate against the true fork point (merge-base), not the moved ref; report the drift to the orchestrator. GitHub PR diffs use merge-base so they are usually correct — the hazard is local gate diffs computed against the moved ref. Never "fix" a phantom deletion; there is nothing to restore on the branch side.

Pitfall 2 — git show --name-status | grep "^path" matches nothing

git show <commit> --name-status | grep -E "^src|^docs" returns empty even when the commit touched those files: name-status lines start with a status letter + TAB (M\tsrc/...). Anchor after the tab (grep -E "\tsrc/") or grep the bare filename. A buggy grep that silently matches nothing wastes a full round-trip on a false "the commit didn't touch that file".

Pitfall 3 — binary build artifacts pollute source greps

Read the full file on GitHub · 64 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. yesterday First seen · 64 lines · 68 tokens per session scan A 781ab10ecf7b

Subscribe to this mod's changes

review-gate-diff-verification is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 1,349 once invoked, about $0.0003 per session on Opus 5.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-12-05.

Related

review-gate-diff-verification compared with skills from other repositories

review-gate-diff-verification next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-gate-diff-verificationArasz/ai-raccoonSkill7todayMITA68Claude Code, Codex
pr-bodyalibaba/anolisaSkill68813d agoApache-2.0A68Claude Code, Codex
gitcode-apiXiaoLuoLYG/GODSkill1.3k11d agoApache-2.0A79Claude Code, Codex
pre-prplastic-labs/honchoSkill8.4kyesterdayAGPL-3.0A65Claude Code, Codex
prismer-githubPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA22Claude Code, Codex
yesloopcarsteneu/yesmemSkill483d agoApache-2.0A48Claude Code
babysit-prckorhonen/claude-skillsSkill364d agoMITA48Claude Code, Codex