merge

Automate git merging, rebasing, and conflict resolution with safety blocks.

8|1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/ek33450505/claude-agent-team --skill merge-ek33450505
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge
Source: https://github.com/ek33450505/claude-agent-team/tree/main/skills/merge
Command: npx skills add https://github.com/ek33450505/claude-agent-team --skill merge-ek33450505

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers waste time juggling git merges, rebases, and conflict resolution across multiple branches. This skill centralizes these operations into a safe, auditable workflow that reduces manual errors and keeps history clean.

Core Features & Use Cases

  • Automatic detection of merge scenarios and selection of appropriate strategies (fast-forward, merge-commit, squash, or PR merge via gh CLI).
  • Built-in conflict-resolution guidance with safety rails, including hard-blocks for force-merges.
  • Cleanup utilities to remove stale branches and orphaned worktrees, keeping repositories tidy.

Quick Start

Run /merge feature/my-branch to merge into main and let the agent orchestrate the full workflow.

Frequently Asked Questions about merge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate git merge and conflict resolution for feature branches?

Automate git merge and conflict resolution by dispatching an agent that detects merge scenarios and selects appropriate strategies like fast-forward, merge-commit, or squash. It provides built-in conflict-resolution guidance with safety rails to reduce manual errors.

What is the best way to rebase mainline branches while keeping git history clean?

Rebase mainline branches safely by dispatching a merge agent with full task context, enforcing safety rules like hard-blocks for force-merges and outputting diffs before execution. This centralized workflow keeps history clean and reduces manual errors.

Can I merge pull requests via the gh CLI automatically?

Yes, you can merge pull requests via the gh CLI. The workflow automatically detects PR merge scenarios and orchestrates the full integration process, dispatching the merge agent to execute the PR merge safely with full context.

Does this git merge workflow include safety blocks for force-merges?

Yes, the git merge workflow enforces safety rules including hard-blocks for force-merges. It outputs diffs before execution and provides conflict-resolution guidance with safety rails, ensuring operations are safe and auditable.

How do I clean up stale branches and orphaned worktrees after a git merge?

Clean up stale branches and orphaned worktrees using built-in cleanup utilities. After completing git merges or rebases, these utilities remove stale branches and orphaned worktrees to keep repositories tidy and maintain a clean working environment.