pre-merge

pre-merge is a skill for Claude Code from bobmatnyc/claude-mpm-skills. It costs 14 tokens per session (1,912 once invoked), scanned B, original, MIT.

A checklist for checking code before it is merged into the main or production branch.

In plain words
What is it for?
It helps verify changes before commits, pull requests, and merges across TypeScript, Python, Go, and other projects.
Why use it?
It catches issues such as type errors, lint failures, failing tests, debug code, and missing release information before review or deployment.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It helps verify changes before commits, pull requests, and merges across TypeScript, Python, Go, and other projects.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bobmatnyc/claude-mpm-skills/pre-merge"><img src="https://agentmods.dev/badge/skills/bobmatnyc/claude-mpm-skills/pre-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,912 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00014 $0.01912
Opus 5 $0.00007 $0.00956
Sonnet 5 $0.00003 $0.00382
Haiku 4.5 $0.00001 $0.00191

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

Security

Grade B, and why

pre-merge scanned grade B with 1 finding 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 9d 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- [ ] Build succeeds without warnings
universal/verification/pre-merge/SKILL.md · 333 lines

How it starts

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

Pre-Merge Verification

Comprehensive verification workflow before merging changes to production.

When to Use This Skill

Use this skill when:

  • Creating a pull request for review
  • About to merge code to main/production branch
  • Need systematic verification checklist
  • Want to catch issues before code review

Pre-Commit Verification

Before committing code, verify:

  • Type checking passes (language-appropriate: tsc --noEmit, mypy, etc.)
  • Linting passes with no errors (ESLint, Pylint, etc.)
  • All existing tests pass locally
  • No console.log/debug statements left in code
  • Code follows project style guide
  • No commented-out code blocks

Commands by Language

TypeScript/JavaScript:

# Type check
npx tsc --noEmit

# Lint
npm run lint
# or: pnpm lint
# or: npx eslint .

# Tests
npm test
# or: pnpm test

Python:

# Type check
mypy src/

# Lint
pylint src/
# or: flake8 src/
# or: ruff check src/

# Tests
pytest
# or: python -m pytest

Go:

# Format check
gofmt -l .

# Lint
golangci-lint run

# Tests
go test ./...

Pre-PR Verification

Before creating a pull request, ensure:

Required Information

  • Changeset added for user-facing changes (if using changesets)
  • PR description is complete with:
    • Summary of changes
    • Related ticket references (ENG-XXX, HEL-XXX, JIRA-XXX, etc.)
    • Screenshots for UI changes (desktop, tablet, mobile)
    • Breaking changes documented
    • Migration guide (if breaking changes)
  • New tests added for new functionality
  • Documentation updated if needed (README, API docs, etc.)

Security Checklist (if API changes)

  • Authentication required on protected routes
  • Authorization checks implemented
  • Input validation with schema (Zod, Pydantic, etc.)
  • No sensitive data in logs
  • No SQL injection vulnerabilities
  • No XSS vulnerabilities
  • Rate limiting considered

Database Changes (if schema changes)

  • Migration file created
  • Migration tested on local database
  • Migration tested on staging database
  • Down migration available (rollback plan)
  • No breaking changes without migration guide
  • Schema changes documented

Read the full file on GitHub · 333 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. 9d ago First seen · 333 lines · 14 tokens per session scan B ff496c686a14

Subscribe to this mod's changes

pre-merge is a skill published in the GitHub repository bobmatnyc/claude-mpm-skills (75 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 1,912 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

cw-gates

Use before claiming any Codewhale change is done, green, or ready to land: the focused-to-broad verification ladder, the budget checks CI enforces, and the rules for what counts as a passing test.

Hmbown/Codewhale · 48 tokens

model-merging

Merge multiple fine-tuned models using mergekit to combine capabilities without retraining. Use when creating specialized models by blending domain-specific expertise (math + coding + chat), improving performance beyond single models, or experimenting rapidly with model variants. Covers SLERP, TIES-Merging, DARE, Task…

davila7/claude-code-templates · 73 tokens

codew-release-qa-sweep

Use before claiming Codewhale release work is done: run the full gate sweep and list the manual QA targets.

Hmbown/CodeWhale · 31 tokens

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

dev-workflow

The complete development workflow for SkillHub contributors including local dev, staging validation, testing, and PR creation. Ensures agents follow the correct sequence of steps.

iflytek/skillhub · 35 tokens