# Diff Analyze

Analyze the differences between the current branch and origin/main, and summarize the...

- Repository: https://github.com/dyoshikawa/rulesync (1577 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add dyoshikawa/rulesync --skill diff-analyze -g -a claude-code -y`
Codex: `npx skills add dyoshikawa/rulesync --skill diff-analyze -g -a codex -y`
Cursor: `npx skills add dyoshikawa/rulesync --skill diff-analyze -g -a cursor -y`
Gemini CLI: `npx skills add dyoshikawa/rulesync --skill diff-analyze -g -a gemini-cli -y`

## Description

Analyze the differences between the current branch and origin/main, and summarize the current work progress

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Diff Analyze

Analyze the differences between the current branch and `origin/main`, and summarize the current work progress.

## Step 1: Refresh Main Branch

Fetch the latest main branch state:

```bash
git fetch origin main
```

## Step 2: Inspect the Diff

Get the differences between the current branch and main:

```bash
git diff origin/main...HEAD
```

## Step 3: Inspect Commit History

Get the commit history of the current branch since it diverged from main:

```bash
git log origin/main..HEAD --oneline
```

## Step 4: Summarize the Work

Based on the diff and commit history, summarize:

- The main purpose of the current changes
- The notable files or areas affected
- The current implementation progress
- Any obvious risks, gaps, or follow-up work

Keep the summary concise and practical.

