joesteinkamp

Worktrees — Git skill for Claude Code

Git community

Set up parallel-agent git worktrees and converge them into one live dev tree.

How to install Worktrees

Installs to ~/.claude/skills/joesteinkamp-agent-global-instructions-worktrees/SKILL.md

Terminal
mkdir -p ~/.claude/skills/joesteinkamp-agent-global-instructions-worktrees && curl -fsSL https://raw.githubusercontent.com/joesteinkamp/agent-global-instructions/HEAD/commands/worktrees.md -o ~/.claude/skills/joesteinkamp-agent-global-instructions-worktrees/SKILL.md

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

What Worktrees does


description: Set up parallel-agent git worktrees and converge them into one live dev tree argument-hint: [agent names, e.g. "claude codex antigravity"] allowed-tools: Bash(git:*), Bash(./converge.sh:*)

Current state:

  • Repo root: !git rev-parse --show-toplevel 2>/dev/null
  • Current branch: !git branch --show-current
  • Existing worktrees: !git worktree list

Set up isolated worktrees so several AI agents can work this repo in parallel, then converge their branches into a single **i

Alternatives in Git

  • 使用 Git Worktrees — 创建孤立的 Git worktrees,带有智能目录选择与安全验证 115.1k ★
  • Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
  • Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★

Full documentation available on GitHub

View Source Repository