OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add alirezarezvani/claude-skills --skill merge
Merge the winning agent's branch into base, archive losers, and clean up worktrees. Use when the user runs /hub:merge or asks to land the winning AgentHub result and tidy the session.
npx skills add alirezarezvani/claude-skills --skill merge
Merge the best agent's branch into the base branch, archive losing branches via git tags, and clean up worktrees.
If --agent specified, use that. Otherwise, use the #1 ranked agent from the most recent /hub:eval.
For each non-winning agent:
Write .agenthub/board/results/merge-summary.md:
--no-ff for clear historyTell the user:
{base_branch}hub/archive/{session-id}/agent-{N}merged# 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-1python {skill_path}/scripts/session_manager.py --cleanup {session-id}---
author: coordinator
timestamp: {now}
channel: results
---
## Merge Summary
- **Session**: {session-id}
- **Winner**: {winner}
- **Merged into**: {base_branch}
- **Archived**: {loser-1}, {loser-2}, ...
- **Worktrees cleaned**: {count}python {skill_path}/scripts/session_manager.py --update {session-id} --state merged