Merge
Merge the winning agent's branch into base, archive losers, and clean up worktrees.
Install
/plugin marketplace add ArogyaReddy/alirezarezvani-claude-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add ArogyaReddy/alirezarezvani-claude-skills --skill mergegit clone --depth 1 https://github.com/ArogyaReddy/alirezarezvani-claude-skills.git /tmp/alirezarezvani-claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/alirezarezvani-claude-skills/engineering/agenthub/skills/merge ~/.claude/skills/mergePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# /hub:merge — Merge Winner
Merge the best agent's branch into the base branch, archive losing branches via git tags, and clean up worktrees.
## Usage
```
/hub:merge # Merge winner of latest session
/hub:merge 20260317-143022 # Merge winner of specific session
/hub: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 `/hub:eval`.
### 2. Merge Winner
```bash
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:
```bash
# 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
```bash
python {skill_path}/scripts/session_manager.py --cleanup {session-id}
```
### 5. Post Merge Summary
Write `.agenthub/board/results/merge-summary.md`:Details
- Skill name
merge- Repository
- ArogyaReddy/alirezarezvani-claude-skills
- Path
engineering/agenthub/skills/merge/SKILL.md- License
- MIT
- Repo updated
- 17 March 2026
FAQ
What does the Merge skill do?
Merge the winning agent's branch into base, archive losers, and clean up worktrees.
How do I install the Merge skill?
Claude Code plugin: /plugin marketplace add ArogyaReddy/alirezarezvani-claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Merge popular?
It lives in ArogyaReddy/alirezarezvani-claude-skills, which has 40 GitHub stars and 11 forks.
Related skills
AWS Solution Architect
40ArogyaReddy/alirezarezvani-claude-skills
Design AWS architectures for startups using serverless patterns and IaC templates. Use when asked to design serverless architecture, create CloudFormation templates, optimize AWS costs, set up CI/CD pipelines, or migrate to AWS. Covers Lambda, API Gateway, DynamoDB, ECS, Aurora, and cost optimization.
Ceo Advisor
40ArogyaReddy/alirezarezvani-claude-skills
Executive leadership guidance for strategic decision-making, organizational development, and stakeholder management. Use when planning strategy, preparing board presentations, managing investors, developing organizational culture, making executive decisions, fundraising, or when user mentions CEO, strategic planning, board meetings, investor updates, organizational leadership, or executive strategy.
Code Reviewer
40ArogyaReddy/alirezarezvani-claude-skills
Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin. Analyzes PRs for complexity and risk, checks code quality for SOLID violations and code smells, generates review reports. Use when reviewing pull requests, analyzing code quality, identifying issues, generating review checklists.
Raise Pull Requests
23willvelida/code-minions
Raise high-quality pull requests that are easy to review, provide clear context, and follow team conventions. Use when a user asks to open, write, prepare, or submit a pull request. Covers PR sizing, self-review, writing descriptions, submitting PRs, responding to review feedback, and reviewing others' PRs. Follows GitHub best practices for collaboration and code review.
Git Workflow
23willvelida/code-minions
Execute a complete git workflow for collaborative development. Use when user asks to initialize a repo, create branches, commit changes, sync with upstream, open pull requests, resolve conflicts, merge PRs, create releases, or apply hotfixes. Supports Centralized, Feature Branch, Gitflow, and Forking workflows with conventional commits, branch naming standards, and code review guidelines.
Sharing Skills
43lifangda/claude-plugins
Use when you've developed a broadly useful skill and want to contribute it upstream via pull request - guides process of branching, committing, pushing, and creating PR to contribute skills back to upstream repository
Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.