Merge Worktree Approvals — Git skill for Claude Code
Merge the Claude auto-approval permissions from a worktree into the main repo.
How to install Merge Worktree Approvals
Installs to ~/.claude/skills/timgent-claude-code-config-merge-worktree-approvals/SKILL.md
mkdir -p ~/.claude/skills/timgent-claude-code-config-merge-worktree-approvals && curl -fsSL https://raw.githubusercontent.com/timgent/claude-code-config/HEAD/commands/merge-worktree-approvals.md -o ~/.claude/skills/timgent-claude-code-config-merge-worktree-approvals/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Merge Worktree Approvals does
Merge the Claude auto-approval permissions from a worktree into the main repo.
Worktrees live at `trees/
The argument `$ARGUMENTS` may be a worktree path. If not provided, use `$PWD`.
Steps
1. Determine paths
From the worktree path, derive:
repo_name= basename of the worktree's parent directory (i.e.basename(dirname(worktree_path)))base_dir= 3 leve
Alternatives in Git
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
- Maestro Merge — Merge session worktree branch back to main 530 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Claude Branch Guard
Moved to karlkfi/claude-bouncer. Branch-aware git permissions for Claude Code — auto-approve safe git/gh comma
PR Show
Show code to team with auto-merge - for changes that should be visible but don't need approval
Drift Fix
Resolve upstream fork-drift end-to-end — run the drift guard, mechanically bump every auto-bumpable pin, land
Worktree Tasks
Implement each task in a separate git worktree with an opus subagent then sequentially merge and commit them b
Thumbgate Protect
Show this repo's branch/release governance and grant a scoped, time-limited approval for an action that touche
Cdd Merge Base
Integrate the current state of the base branch into the feature branch. Two phases: a dry-run conflict assessm
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
Lander
Lands a queue of auto-merge PRs one at a time — brings each up to date with main, resolves conflicts in the pr