Compare Branches

Use when user wants to compare two autonomy branches to see different approaches, metrics, and outcomes

5 stars 2 forksGit & Code Review Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add tilmon-engineering/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add tilmon-engineering/claude-skills --skill compare-branches
Manual install
git clone --depth 1 https://github.com/tilmon-engineering/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/plugins/autonomy/skills/compare-branches ~/.claude/skills/compare-branches

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Comparing Branches

## Overview

Compare two autonomy branches to show where they diverged, how their approaches differ, and what outcomes each achieved.

**Core principle:** Use git merge-base to find divergence, then dispatch branch-analyzer for computational comparison.

## When to Use

Use this skill when:
- User runs `/compare-branches` command
- User wants to see differences between two exploration branches
- User wants to understand alternative approaches
- User wants to compare metrics/outcomes across branches

**DO NOT use for:**
- Analyzing single branch (use branch-status instead)
- Listing all branches (use list-branches instead)
- Current branch review (use review-progress instead)

## Quick Reference

| Step | Action | Tool |
|------|--------|------|
| 1. Parse and validate | Normalize branch names, check both exist | Bash |
| 2. Find divergence | Use git merge-base to find common ancestor | Bash |
| 3. Dispatch agent | Send both branches to branch-analyzer | Task |
| 4. Present comparison | Display comparative report | Direct output |

## Process

### Step 1: Parse and Validate Branch Names

Extract and normalize both branch names:

**Parse arguments:**
```
args = "<branch-a> <branch-b>"
Split on whitespace:
  branch_a = first word
  branch_b = second word

If not exactly 2 words:
  Error: "Usage: /compare-branches <branch-a> <branch-b>"
```

**Normalize:**
Read the full skill on GitHub

Details

Skill name
compare-branches
Path
plugins/autonomy/skills/compare-branches/SKILL.md
License
MIT
Repo updated
22 May 2026

FAQ

What does the Compare Branches skill do?

Use when user wants to compare two autonomy branches to see different approaches, metrics, and outcomes

How do I install the Compare Branches skill?

Claude Code plugin: /plugin marketplace add tilmon-engineering/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Compare Branches popular?

It lives in tilmon-engineering/claude-skills, which has 5 GitHub stars and 2 forks.

Related skills

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.