Pre Merge Check — Git skill for Claude Code
Run pre-merge checks before submitting a PR.
How to install Pre Merge Check
Installs to ~/.claude/commands/igerber-diff-diff-pre-merge-check.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/igerber/diff-diff/HEAD/.claude/commands/pre-merge-check.md -o ~/.claude/commands/igerber-diff-diff-pre-merge-check.md Restart Claude Code, or start a new session, for it to be picked up.
What Pre Merge Check does
description: Run pre-merge checks before submitting a PR argument-hint: ""
Pre-Merge Check
Run automated checks and display the pre-merge checklist before submitting a PR.
Instructions
1. Identify Changed Files
Get the list of files that will be included in the PR:
# Get all changed files (tracked modifications + staged + untracked)
git diff --name-only HEAD
git diff --cached --name-only
git ls-files --others --exclude-standard
Categorize files into:
- **Metho
Alternatives in Git
- Gh Fix CI — Debug and fix failing GitHub Actions PR checks using log inspection 14.6k ★
- Linting — Run rm -rf .mypy_cache && pre-commit run --all-files and fix the issues 3.1k ★
- GitHub Review Failures — Use when CI checks are failing on a PR — fetches failure logs, diagnoses root causes, implements fixes, and pu 1.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Pre PR Check
Pre-PR quality gate for PromptPit. Run this on your feature branch after implementation is complete, before op
Gutcheck
Check your gut against the internet before you commit — a research buddy for Claude Code that checks any idea,
Check CI
Token-free PR merge-gate watcher — one process loops inside gh pr checks --watch --fail-fast, then verifies ze
CI Check
Analyze failed CI checks on a PR, determine if failures are flaky/infra, need a master merge, or require code
iOS Prepare Submission
Check App Store submission readiness — metadata, screenshots, signing, and pre-merge quality gates.
Restart Sop
Run the Agent SOP session start checklist. Reads all context files, checks git history, flags inconsistencies,
Related Agents
Issue Claim Auditor
PRFlow's implement-phase Issue-Claim Audit agent. Runs Phase 1.6's specification-projection check and targeted
Wiki Audit
Use this agent when running per-page provenance integrity checks during automated maintenance cycles. Typical
Falsification Leg
Standing pre-merge falsification leg (mmnto-ai/totem-strategy:doctrine/model-tiering.md § Review legs). Dispat