igerber

Pre Merge Check — Git skill for Claude Code

Git community

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

Terminal
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 Repository