Agent skill · software engineering · aiskillstore

git-analysis

Analyze git repository changes, branch differences, and commit history. Use when analyzing branches, comparing changes, examining commit history, or preparing for PR/commit operations.

Why this skill is useful

Adds executable scripts for branch analysis and commit history extraction that are not commonly known or documented.

What it needs

About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Git Analysis This Skill provides comprehensive git repository analysis capabilities for understanding branch changes, commit history, and code differences. Capabilities Analyze branch differences and merge bases Extract structured commit history Identify changed files and their statistics Determine default branches and remote configuration Support PR creation, code review, and commit operations When to Use Use this Skill when you need to: Analyze what changed in a branch Prepare information for PR creation Review commit history Compare branches Understand code changes for commits or reviews Core Analysis Steps 1. Identify Default Branch Get the repository's default branch (usually main or master): This identifies the base branch for comparison. 2. Find Merge Base Determine where the current branch diverged from the default branch: The merge base is the commit where the branch diverged, not the current state of the base branch. 3. Analyze Changes Get comprehensive change information: 4. Check Current State Understand unstaged and staged changes: Helper Scripts This Skill includes helper scripts for common operations: getbranchdiff.sh Extracts branch differences including: Default branch name Merge base commit Commit list with statistics Changed files summary Usage: Output format: getcommithistory.sh Extracts detailed commit history in structured format: Usage: Output format (one commit per line): Best Practices 1. Always use merge-base: Compare from merge base, not from current base branch state 2. Run commands in parallel: When gathering multiple pieces of information, run independent git commands in parallel 3. Structure the output: Parse git output into structured data for easier consumption 4. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/git-analysis

View the source on GitHub

Browse the @skills marketplace