mt-check-branch-diff

Identify Git branch differences via merge-base and collect changed files.

Updated May 15, 2026
One-click install
npx skills add https://github.com/t-miura-024/tools --skill mt-check-branch-diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mt-check-branch-diff
Source: https://github.com/t-miura-024/tools/tree/main/chezmoi/dot_config/opencode/skills/mt-check-branch-diff
Command: npx skills add https://github.com/t-miura-024/tools --skill mt-check-branch-diff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes uncertainty when reviewing a feature branch by systematically identifying the correct base branch and collecting the complete set of changes compared with it.

Core Features & Use Cases

  • Base Branch Detection: Determines the branch point by analyzing Git history and branch relationships.
  • Comprehensive Diff Collection: Retrieves changed files, statistics, and detailed file-level diffs using merge-base comparisons.
  • Use Case: Prepare a pull request review by quickly gathering all modifications introduced by the current development branch.

Quick Start

Ask the skill to analyze the current branch and provide the complete difference from its base branch.

Frequently Asked Questions about mt-check-branch-diff

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the exact merge base for a Git branch diff during code review?

To find the exact merge base for a Git branch diff, the Skill analyzes Git history and branch relationships to determine the correct base branch. It calculates the accurate comparison point to reveal precise branch changes for reviews.

What is the best way to prepare a pull request by analyzing my feature branch changes?

The best way to prepare a pull request is to systematically identify the correct base branch and gather all modifications. The Skill retrieves file status reports, change statistics, and detailed diffs to collect the complete set of changes introduced by your development branch.

Can I get change statistics and file status reports for a specific Git branch?

Yes, you can get change statistics and file status reports for a Git branch. The Skill inspects Git history to apply merge-base calculation, retrieving comprehensive change statistics and file status reporting for accurate branch differences.

Does this branch diff analysis require any special Git dependencies or components?

No special dependencies or components are required. The Skill performs Git history inspection, merge-base calculation, file status reporting, and detailed diff retrieval entirely using standard Git commands to identify branch differences.

Why does my Git branch diff show unexpected files when comparing against the main branch?

Unexpected files in a Git branch diff often occur when the comparison point is incorrect. The Skill resolves this by systematically determining the accurate base branch through merge-base calculation, ensuring only true branch changes are collected.