Maestro Merge — Git skill for Claude Code
Merge session worktree branch back to main.
How to install Maestro Merge
Installs to ~/.claude/commands/catlog22-maestro-flow-maestro-merge.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/catlog22/Maestro-Flow/HEAD/.claude/commands/maestro-merge.md -o ~/.claude/commands/catlog22-maestro-flow-maestro-merge.md Restart Claude Code, or start a new session, for it to be picked up.
What Maestro Merge does
name: maestro-merge
disable-model-invocation: true
description: Merge session worktree branch back to main
argument-hint: "--session
- Read
- Write
- Edit
- Bash
- Glob
- Grep
- Agent
- AskUserQuestion session-mode: run contract: discovery: self-described consumes: [] produces: []
Alternatives in Git
- Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- Local Review — You are tasked with setting up a local review environment for a colleague's branch 10k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Worktree Tasks
Implement each task in a separate git worktree with an opus subagent then sequentially merge and commit them b
Create Worktree + Spawn Agent
git worktree add ../feat-custom-templates -b feat/custom-templates origin/main cd ../feat-custom-templates &&
Merge Command
Finalize worktree work: update docs, commit, merge to main, clean up. Context from user: $ARGUMENTS ---
Merge Worktree Approvals
Merge the Claude auto-approval permissions from a worktree into the main repo.
Cleanup Worktree
Remove a merged worktree and its branch after verifying it was merged into main
Branchit
Create a new branch and git worktree. Always branches from main unless told otherwise. Flags a dirty tree; ign
Related Agents
Merge Cleanup
Commits worktree changes, cherry-picks them to main, removes the worktree, and prunes the branch. Use at the e
Develop
Implements a fix or feature for a single GitHub issue in an isolated worktree. Iterates up to 3 cycles (merge
Team Merger
Agent-teams merger. Merges each reviewed-and-approved worktree into the base branch in turn, resolves conflict