pre-merge-review

pre-merge-review is a skill for Claude Code from sananthanarayan/skilldrop. It costs 139 tokens per session (2,187 once invoked), scanned A, original, MIT.

A merge-readiness check for an existing code change. It runs project checks and asks three separate reviewers to inspect the change before giving a READY or NOT READY result.

In plain words
What is it for?
Use it to review a branch, diff, or selected files and decide whether the change is safe to merge.
Why use it?
It combines objective checks such as linting, type checking, and tests with review of correctness and security concerns. This helps identify problems before merging code.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Part of the skilldrop plugin — 51 skills, 4 agents shipped together

Good fit Use it to review a branch, diff, or selected files and decide whether the change is safe to merge.

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

Made for: Claude Code.

Or install skilldrop, the plugin that ships this one along with the rest of its 51 skills, 4 agents.

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 pre-merge-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/sananthanarayan/skilldrop/pre-merge-review/github.svg)](https://agentmods.dev/skills/sananthanarayan/skilldrop/pre-merge-review)
Your own site
<a href="https://agentmods.dev/skills/sananthanarayan/skilldrop/pre-merge-review"><img src="https://agentmods.dev/badge/skills/sananthanarayan/skilldrop/pre-merge-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 pre-merge-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/sananthanarayan/skilldrop/pre-merge-review"><img src="https://agentmods.dev/badge/skills/sananthanarayan/skilldrop/pre-merge-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,187 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.00139 $0.02187
Opus 5 $0.00069 $0.01094
Sonnet 5 $0.00028 $0.00437
Haiku 4.5 $0.00014 $0.00219

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

Security

Grade A, and why

pre-merge-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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/gate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/pre-merge-review/SKILL.md · 84 lines

How it starts

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

pre-merge-review

One command that runs the full production-readiness pass on a change you already have: the mechanical gate (deterministic — real commands, real exit codes) and the reviewer panel (three cold-read subagents), then a single READY / NOT READY verdict. This is the "is this safe to merge?" orchestrator — where feature-implement-loop generates code and loops, this one judges a diff that already exists and gates it.

Two gates, and they are different kinds. The mechanical gate is not a judgment call — a script runs the project's checks and its exit code decides, so a red gate can't be talked past. The review panel is judgment — three lenses that a deterministic check can't cover.

How to respond

  1. Scope the change. The diff, the branch vs. its base, or the files the user names. Everything below reviews that change, never the whole repo.

  2. Run the mechanical gate first — it is un-bypassable. Run the bundled gate script:

    • Claude Code: python3 ${CLAUDE_SKILL_DIR}/scripts/gate.py
    • Other IDEs: python3 skills/pre-merge-review/scripts/gate.py

    It auto-detects the project's lint / typecheck / test commands (or takes --cmd "…" / --config gate.json), runs each, and exits non-zero if any fail. A RED gate is an automatic NOT READY — do not proceed to a positive verdict, no matter how clean the review looks. The pass/fail is the script's exit code, not your assessment of the code. If the gate can't determine commands, surface BLOCKED: need verify commands and ask for them once — never fabricate a green gate.

  3. Fire the review panel — in parallel. Independent lenses on the diff, each in a fresh context so none anchors on the author's reasoning:

    • Subagent tools (Claude Code, …): dispatch the devils-advocate subagent (correctness — edge cases, broken assumptions, staff-engineer pushback, test gaps), the security-reviewer subagent (exploitability — authz/IDOR, injection, secret exposure, SSRF, unsafe deserialization, weak crypto, risky deps), and the code-quality subagent (craft — naming, structure, duplication, readability). Run them together; they don't depend on each other.
    • No-subagent tools (Codex, Cursor, Aider, …): sweep the three lenses inline yourself — correctness, then security, then craft.
    • Tag findings 🟥 blocker · 🟧 major · 🟨 minor · ⚪ nit, each with file:line and a concrete fix. Merge and de-dupe across the three lenses — when two flag the same line, report it once with both angles.

Read the full file on GitHub · 84 lines

Files

What ships with it

5 files 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. 12d ago First seen · 84 lines · 139 tokens per session scan A 5ffd9e8ea603

Subscribe to this mod's changes

pre-merge-review is a skill published in the GitHub repository sananthanarayan/skilldrop (2 stars, last pushed 28d ago), licensed MIT. It adds 139 tokens to every session and 2,187 once invoked, about $0.0007 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