Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills Aโ€“Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Identify Unmerged Changes

ASecurity

Identify Unmerged Changes

8 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentgogitperformance

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add tstapler/dotfiles --skill identify-unmerged-changes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Identify Unmerged Changes?

Add the live security badge to your README โ€” it updates automatically with every re-scan.

Security grade badge for Identify Unmerged Changes
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/tstapler-identify-unmerged-changes/badge)](https://www.skillsdirectory.com/skills/tstapler-identify-unmerged-changes)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
description: Identify Unmerged Changes
---

# Identify Unmerged Changes

Scans all git worktrees (excluding main) to identify uncommitted changes and commits that haven't been merged back to the main branch.

## What it does

1. **Discovers all worktrees for the current repository** using `git worktree list`
2. **Identifies the main repository location** (typically ~/IdeaProjects)
3. **For each non-main worktree of the same project**:
   - Checks for uncommitted/unstaged changes
   - Identifies commits ahead of main branch
   - Shows file modification summaries
   - Calculates merge-ability status
4. **Provides a summary report** of all unmerged work for this project only

**Note**: Only analyzes worktrees that belong to the current git repository, not other projects that may share the same worktree directory structure.

## Output format

```
๐Ÿ” Scanning worktrees for unmerged changes...

๐Ÿ“ /Users/user/.claude-squad/worktrees/feature-xyz_abc123
   Branch: feature/performance-improvements
   Status: ๐ŸŸก Has unmerged commits
   
   ๐Ÿ“Š Ahead of main: 4 commits
   ๐Ÿ”„ Uncommitted changes: 2 files
   ๐Ÿ“ Modified files: app/app.go, ui/list.go
   
   Recent commits not in main:
   - abc123f perf: implement debounced navigation
   - def456a feat: add session caching
   
   Uncommitted changes:
   M  config/config.go
   ?? temp/debug.log

๐Ÿ“ /Users/user/.claude-squad/worktrees/bugfix-abc_def456
   Branch: fix/session-crashes  
   Status: โœ… Clean (all committed, not merged to main)
   
   ๐Ÿ“Š Ahead of main: 1 commit
   ๐Ÿ”„ Uncommitted changes: 0 files
   
   Recent commits not in main:
   - ghi789b fix: prevent session crash on startup

๐Ÿ“ /Users/user/.claude-squad/worktrees/experiment_123abc
   Branch: experiment/new-ui
   Status: ๐Ÿ”ด Has uncommitted work
   
   ๐Ÿ“Š Ahead of main: 0 commits  
   ๐Ÿ”„ Uncommitted changes: 5 files
   ๐Ÿ“ Modified files: ui/*, app/experimental.go
   
   Uncommitted changes:
   M  ui/new_component.go
   M  ui/styles.go
   A  app/experimental.go
   ?? ui/temp.backup

===============================================
๐Ÿ“‹ SUMMARY:
- Total worktrees: 3
- Worktrees with unmerged commits: 2
- Worktrees with uncommitted changes: 2  
- Total unmerged commits: 5
- Estimated merge conflicts: 0 (based on file overlap)
===============================================

๐Ÿ”„ RECOMMENDED ACTIONS:
1. Review feature/performance-improvements - ready to merge but has uncommitted changes
2. Merge fix/session-crashes - clean and ready
3. Commit or stash changes in experiment/new-ui before merging
```

## Use cases

- **Before cleanup** - See what work exists before removing old worktrees
- **Project status** - Get overview of all active development branches  
- **Merge planning** - Identify which branches are ready to merge
- **Work recovery** - Find uncommitted changes that might be lost
- **Conflict detection** - Preview potential merge conflicts across branches

## Safety features

- **Read-only operation** - Never modifies any files or commits
- **Detailed file status** - Shows exactly what files are changed where
- **Merge conflict preview** - Identifies potential conflicts before merging
- **Branch relationship mapping** - Shows how each branch relates to main

## Key insights from analysis

This command helps you understand the "work debt" across your development environment:

- **Large commit counts** (100+ commits ahead) often indicate long-running feature branches or different projects
- **Mixed uncommitted + committed changes** suggest active development that needs attention
- **Clean but unmerged branches** are prime candidates for review and merging
- **High file change counts** may indicate merge conflicts or scope creep

## Common patterns identified

1. **Stale experimental branches** - Many commits ahead but clean working directory
2. **Active development branches** - Both commits and uncommitted changes
3. **Cleanup candidates** - Branches that diverged significantly from main
4. **Merge-ready branches** - Clean state with focused commit count

## Optional flags

- `--verbose` - Show detailed file diffs and commit messages
- `--uncommitted-only` - Only show worktrees with uncommitted changes
- `--commits-only` - Only show worktrees with unmerged commits  
- `--summary-only` - Show just the summary without per-worktree details
- `--merge-candidates` - Only show branches that appear ready to merge (clean + focused)
- `--stale-threshold=N` - Highlight branches more than N commits ahead as potentially stale

Attribution

tstaplertstapler
View sourceMore from tstapler โ†’
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch โ€” SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions โ€” even if they don't name TanStack Start specifically. No template repo โ€” Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development โ†’