Handles Git merge operations programmatically, which is exactly what you need when you're automating workflows that involve combining branches. You'd reach for this when building CI/CD pipelines, managing release processes, or any scenario where manual git commands aren't practical. The real value is in letting Claude handle merge conflicts and branch management without dropping into a terminal. Works well for straightforward merges, though you'll want to review the output carefully since merge conflicts can get messy. Good fit if you're building automation around version control workflows.
- skills.sh installs
- 1.4K
- GitHub stars
- 29.5K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add alirezarezvani/claude-skills --skill merge --agent claude-codeInstalls into .claude/skills of the current project.
Files
/agenthub:merge — Merge Winner
Merge the best agent's branch into the base branch, archive losing branches via git tags, and clean up worktrees.
Usage
/agenthub:merge # Merge winner of latest session
/agenthub:merge 20260317-143022 # Merge winner of specific session
/agenthub:merge 20260317-143022 --agent agent-2 # Explicitly choose winner
What It Does
1. Identify Winner
If --agent specified, use that. Otherwise, use the #1 ranked agent from the most recent /agenthub:eval.
2. Merge Winner
git checkout {base_branch}
git merge --no-ff hub/{session-id}/{winner}/attempt-1 \
-m "hub: merge {winner} from session {session-id}
Task: {task}
Winner: {winner}
Session: {session-id}"
3. Archive Losers
For each non-winning agent:
# Create archive tag (preserves commits forever)
git tag hub/archive/{session-id}/{agent-id} hub/{session-id}/{agent-id}/attempt-1
# Delete branch ref (commits preserved via tag)
git branch -D hub/{session-id}/{agent-id}/attempt-1
4. Clean Up Worktrees
Sponsors
Details
- Repository
- github.com/alirezarezvani/claude-skills
- Categories
- Git & Pull Requests, AI & Agent Building
- First seen
- Apr 16, 2026
More from alirezarezvani/claude-skills
All 267- Eval1.4K
- Senior Security1.3K
- Social Media Manager1.3K
- Senior Qa1.2K
- Research Summarizer1.2K
- Senior Computer Vision1.2K
- Code Reviewer1.2K
- Grill Me1.2K
- Senior Data Engineer1.2K
- Ceo Advisor1.1K
- Ui Design System1.1K
- Financial Analyst1.1K
- Self Improving Agent1.1K
- Karpathy Coder1.1K
- Senior Devops1.1K
- Product Manager Toolkit1K
- Tdd Guide1K
- Gdpr Dsgvo Expert1K
- A11y Audit998
- Ux Researcher Designer991
- Senior Prompt Engineer984
- Senior Data Scientist975
- Agile Product Owner945
- Senior Ml Engineer940
