Merge

Merge the winning agent's branch into base, archive losers, and clean up worktrees.

Development / Engineeringdevelopmentengineering
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptMerge the winning branch and clean up worktrees
Beforegeneric AI agent
Merging branches and cleaning up usually involves a few git commands. You'd want to merge the main branch into your working branch first to catch conflicts, then merge to main. After that, you delete the branches and clean up any leftover worktrees. It's good practice to archive old work for reference. You might want to write a summary of what was merged. What branch are you trying to merge?
Afterwith Merge
MERGE WORKFLOW EXECUTION

STEP 1: Verify winning branch
git checkout feature/ai-optimization
git log --oneline -5
Branch verified: 8 commits, 340 lines changed

STEP 2: Merge to main
git checkout main
git pull origin main
git merge feature/ai-optimization --no-ff
Merge commit created: abc1234

STEP 3: Push and verify
git push origin main
CI checks passing; deployment ready

STEP 4: Archive losing branches
Created archive/feature-fallback-caching
Created archive/feature-cache-layer
Branches moved to archive/ prefix for reference

STEP 5: Clean up worktrees
Removed worktree: wt-testing (../wt-testing)
Removed worktree: wt-staging (../wt-staging)
git worktree list shows clean state

STEP 6: Cleanup summary
Total commits landed: 8
Files changed: 22
Testsadded: 3
Archive branches preserved: 2
Worktrees cleaned: 2

About this skill


name: merge description: Use when Merge the winning agent's branch into base, archive losers, and clean up worktrees.

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.

What you get

  • Public GitHub repo (alirezarezvani/claude-skills)
  • the merge skill folder with SKILL.md. Part of a 337-skill / 30-agent / 70-command install.

Customize your output

  • Fork the repo and adapt the skill's instructions and references to your workflow.

Example output

Activates automatically when your request matches Merge; chains with the other skills, agents, and commands in the collection.

Best for

Creators, builders, and teams using Claude Code.

SKILL.md preview

SKILL.md
---
name: merge
description: Use this skill when the user runs /hub:merge or asks to land the winning AgentHub result and tidy up the session's branches and worktrees.
version: 1.0.0
category: Development / Engineering
author: AgentVolt
license: proprietary
tags:
  - development
  - engineering
---

# Merge

Merges the winning agent's branch into the base branch, archives the losing branches, and cleans up any leftover worktrees from a multi-agent run.

## When to use

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill

More development skills

View all Development skills →