Agent skill
diff-since-my-commit
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".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/diff-since-my-commit
SKILL.md
Diff Since My Commit
Show changes to a git branch since your last commit, filtered to only the files you originally touched.
Usage
scripts/diff_since_my_commit.sh <branch> [email1,email2,...]
Examples:
# 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
- Find your most recent commit on the specified branch
- Identify files you touched in your commits
- Show who else committed since your last commit
- Generate a diff of only your files that were modified by others
- Open the diff in browser using diff2html (side-by-side view)
Requirements
git- for diff generationdiff2html-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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?