Skip to content
Back to skills

Diff Since My Commit

ASecurity

Show changes to a git branch since your last commit, filtered to only files you touched. Use when user asks to see what others changed on their branch, review changes since they last committed, or compare their work against upstream modifications. Triggers on requests like "what changed on my branch", "show me the diff since my commit", "what did others change to my files", or "review changes to my PR".

  • 30 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsbashgit

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill diff-since-my-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diff Since My Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diff Since My Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-diff-since-my-commit-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-diff-since-my-commit-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: diff-since-my-commit
description: Show changes to a git branch since your last commit, filtered to only files you touched. Use when user asks to see what others changed on their branch, review changes since they last committed, or compare their work against upstream modifications. Triggers on requests like "what changed on my branch", "show me the diff since my commit", "what did others change to my files", or "review changes to my PR".
---

# Diff Since My Commit

Show changes to a git branch since your last commit, filtered to only the files you originally touched.

## Usage

```bash
scripts/diff_since_my_commit.sh <branch> [email1,email2,...]
```

**Examples:**
```bash
# Use default git config email
scripts/diff_since_my_commit.sh origin/feature-branch

# Specify multiple emails (if you commit with different emails)
scripts/diff_since_my_commit.sh origin/main "me@gmail.com,me@work.com"
```

## What It Does

1. Find your most recent commit on the specified branch
2. Identify files you touched in your commits
3. Show who else committed since your last commit
4. Generate a diff of only your files that were modified by others
5. Open the diff in browser using diff2html (side-by-side view)

## Requirements

- `git` - for diff generation
- `diff2html-cli` - for browser preview (`npm install -g diff2html-cli`)

## Output

The script displays:
- Your last commit on the branch
- Number of commits since yours
- Authors who made changes
- List of files you touched
- Opens filtered diff in browser

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.