Agent skill · software engineering · alirezarezvani
merge
Use to land the winning AgentHub branch, archive the others and clean up worktrees.
Why this skill is useful
Adds an executable script for merging branches, archiving, and cleaning up worktrees that automates a complex workflow not easily inferred by the AI.
What it needs
Requires python installed locally. About 1k tokens when loaded. Last updated 2026-08-05. 23,939 stars on the source repository.
What this skill does
/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 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 3. Archive Losers For each non-winning agent: 4. Clean Up Worktrees 5. Post Merge Summary Write .agenthub/board/results/merge-summary.md: 6. Update State Safety Confirm with user before merging — show the diff summary first Never force-push — merge is always --no-ff for clear history Archive, don't delete — losing agents' commits are preserved via tags Clean worktrees — don't leave orphan directories on disk After Merge Tell the user: Winner merged into {basebranch} Losers archived with tags hub/archive/{session-id}/agent-{N} Worktrees cleaned up Session state: merged
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills alirezarezvani/merge--24a14d