Trejon-888

Merge Worktrees — Git skill for Claude Code

Git community

Merge parallel worktrees into integration branch.

How to install Merge Worktrees

Installs to ~/.claude/commands/trejon-888-ix-claude-code-starter-kit-merge-worktrees.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Trejon-888/ix-claude-code-starter-kit/HEAD/.claude/commands/merge-worktrees.md -o ~/.claude/commands/trejon-888-ix-claude-code-starter-kit-merge-worktrees.md

Restart Claude Code, or start a new session, for it to be picked up.

What Merge Worktrees does


description: "Merge parallel worktrees into integration branch" argument-hint: [worktree-1] [worktree-2] ...

Merge Worktrees

Merge completed worktrees into an integration branch with sequential validation.

Arguments

Space-separated worktree feature names to merge: $ARGUMENTS

If no arguments provided, discover all worktrees:

git worktree list

Process

1. Create Integration Branch

git checkout -b integrate/$(date +%Y%m%d) main

2. Sequential M

Alternatives in Git

  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★
  • n8n MCP — GitHub Repo stars MCP for Claude Desktop/Code to build n8n workflows n8n workflow integration 15.5k ★

Full documentation available on GitHub

View Source Repository