← All skills
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.
About this skill
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.
SKILL.md
merge.SKILL.mdPlace it in your Syntic skills folder. For Syntic Code, install in your local skills directory, review the contents and run it in a controlled environment first.
---
name: merge
description: 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.
category: Engineering
version: 1.0.0
tools: []
---
# Hub Merge — Land Winning Result
Merge the best agent's branch into base, archive losers via tags, and clean up worktrees.
## Steps
1. Identify winner (from most recent eval, or via --agent flag).
2. Merge winner into base_branch with --no-ff.
3. Archive losing branches via git tags (commits preserved, refs deleted).
4. Clean up worktrees.
5. Write merge summary to .agenthub/board/results/.
6. Update session state to "merged".
## Safety Guarantees
- **Confirm before merging** — show diff summary first.
- **Never force-push** — merge always uses --no-ff for clear history.
- **Archive, don't delete** — losers' commits preserved via hub/archive/{session-id}/{agent-id} tags.
- **Clean worktrees** — remove orphan directories.
## Output
Confirm to user:
- Winner merged into {base_branch}
- Losers archived with tags hub/archive/{session-id}/{agent-N}
- Worktrees cleaned
- Session state: merged
---
Safe multi-agent session cleanup.
Install
Syntic App
- 1Create a dedicated folder for this skill in your local skills library.
- 2Place SKILL.md into that folder.
- 3Restart Syntic and invoke this skill on matching tasks.
Syntic Code (CLI)
- 1Save SKILL.md in your local Syntic Code skills directory.
- 2Keep related files in the same skill folder.
- 3Run in a safe environment and validate outputs.