ggprompts/my-plugins/merge
Claude Code and agent skill by ggprompts/my-plugins
- community
Checking that the SKILL.md file is still in the repository.
Branch merging and conflict resolution patterns. Use when merging feature branches, handling conflicts, or cleaning up worktrees. Trigger with "merge branch", "resolve conflicts", "cleanup worktree".
Install
npx vskill@latest install ggprompts/my-plugins/mergeSKILL.md
Merge - Branch Management
Patterns for merging worker branches and handling conflicts.
CRITICAL: Always kill the worker terminal BEFORE merging. See @references/terminal-cleanup.md
Standard Merge Flow
One-Command Alternative
For full cleanup with checkpoints, capture, and terminal kill:
Conflict Detection
If conflicts exist, git merge will fail with conflict markers.
Conflict Resolution
Don't auto-resolve. Report conflicts for manual resolution:
Manual Resolution Steps
- Navigate to worktree:
cd .worktrees/ISSUE-ID - Open conflicting files
- Resolve conflicts (remove markers, choose correct code)
- Stage:
git add . - Commit:
git commit - Re-run cleanup
Merge Strategies
Fast-Forward (Clean history)
Only works if main hasn't changed.
No-FF (Always create merge commit)
Creates merge commit even if fast-forward possible.
Squash (Single commit)
Combines all commits into one.
Default: Use --no-edit for automatic merge commit message.
Worktree Cleanup
Branch Cleanup
Batch Operations
Error Handling
| Error | Action | |
|---|---|---|
| Merge conflict | Stop, report files, require manual resolution | |
| Branch not found | Skip branch deletion | |
| Worktree not found | Skip worktree removal | |
| Not on main | Checkout main first | |
| Uncommitted changes | Stash or warn | |
| TabzChrome not running | Skip terminal kill, continue with merge | |
| No auth token | Skip terminal kill, continue with merge |
Safety Checks
Before merging:
- Verify issue is closed
- Kill worker terminal via TabzChrome API (see @references/terminal-cleanup.md)
- Verify branch exists
- Check for conflicts first
After merging:
- Verify merge succeeded
- Run any CI checks
- Sync beads
- Push to remote
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/tools/cleanup/skills/merge/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ggprompts/my-plugins/merge)