ワンクリックで
git-worktree
Manage Git worktrees for concurrent local development. Creates worktrees at ~/.worktrees/REPO/BRANCH. Wrapper for the `wt` CLI.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Manage Git worktrees for concurrent local development. Creates worktrees at ~/.worktrees/REPO/BRANCH. Wrapper for the `wt` CLI.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Markdown task backlog and project roadmap (backlog/{todo,doing,done,failed}/, backlog/ROADMAP.md) for adding, advancing, recording progress, rescuing, cancelling, retrying, failing, maintenance, or reflecting on backlog priorities and roadmap direction.
Write, review, or improve SwiftUI code. Use for SwiftUI features/refactors, state management, view composition, performance, concurrency, modern Apple APIs, or native UI quality.
Work with Claude Code configuration at global (~/.claude) or project (.claude/) level. Use when editing settings.json (permissions, hooks, statusline, model), managing MCP servers, creating agents/commands/skills, writing CLAUDE.md, setting up rules files, or configuring a new project. Determines context automatically and provides guidance on global vs project placement to avoid duplication.
Session continuity for coding work. Default to /chronicle to capture, /chronicle catchup to resume, and /chronicle pending to review open threads. Use curate, recap, wrapup, summarize, publish, insights, search, and ui only when the user explicitly needs them.
Analyze AI coding assistant usage patterns across Claude Code, Codex, and Cursor. Use when user asks about their coding usage, tool statistics, productivity patterns, skill popularity, session history, or wants to query their AI coding logs. Triggers include "usage", "how much have I used", "most used tools", "skill popularity", "coding stats", "productivity patterns".
Fix misaligned right borders in ASCII art diagrams
| name | git-worktree |
| description | Manage Git worktrees for concurrent local development. Creates worktrees at ~/.worktrees/REPO/BRANCH. Wrapper for the `wt` CLI. |
| license | Apache-2.0 |
Manage worktrees for concurrent development without clobbering changes.
~/.claude/skills/git-worktree/scripts/wt.sh install
source ~/.zshrc
wt <branch> # Create worktree, run setup, open editor
wt <branch> --base ref # Create from a specific base branch (default: main)
wt <branch> --no-editor # Create without opening editor
wt <branch> --open # Also open terminal tab with claude session (macOS)
wt <branch> --carry # Create and copy work-in-progress files
wt <branch> --context f # Copy file to .context/handoff.md (session fork)
wt cd <branch> # Change to worktree directory
wt home # Return to main repo (or REPOS_ROOT if outside git)
wt apply [branch] # Rebase onto branch and merge (default: main)
wt apply --archive # Merge and archive without prompting
wt apply --push # Merge and push to remote
wt archive [branch] # Run archive script, move to ~/.worktrees/.archive
wt archive --delete-branch # Also delete local and remote branches
wt done # Archive current worktree and cd home (shell function)
wt done --delete-branch # Also delete branches on the way out
wt clean # Archive merged worktrees (current repo)
wt clean --all # Archive merged worktrees (all repos)
wt clean --dry-run # List merge candidates without archiving
wt clean --delete-branch # Also delete branches when cleaning
wt list # List all worktrees
wt list --all # Include worktrees from other sources (.claude, .codex, etc.)
wt ls # Alias for list
wt tree # Tree view with git status indicators
wt status # Show worktrees with Claude session activity
wt open [branch] # Open editor for worktree (current dir if no branch)
wt install # Add wt to ~/.zshrc (one-time setup)
Worktrees are created at ~/.worktrees/<repo>/<branch> where <repo> is the origin remote name (not the local directory name). This is derived from git remote get-url origin.
~/.claude (remote: dotclaude.git) → ~/.worktrees/dotclaude/<branch>
~/code/services (remote: services.git) → ~/.worktrees/services/<branch>
WORKTREES_ROOT=~/.worktrees # Where worktrees are created
REPOS_ROOT=~/code # Fallback for `wt home` outside git
WT_TERMINAL=ghostty # Terminal for --open (auto-detects from TERM_PROGRAM)
wt feature-auth # Creates worktree and opens editor
# ... work on feature ...
wt apply # Merge into main (prompts to archive)
Or archive from within the worktree when you're done:
wt feature-auth # Creates worktree and opens editor
# ... work on feature ...
wt done # Archive and cd home in one step
wt done --delete-branch # Same, but also delete the branch
When you've been exploring and decide it should be its own branch:
# You're in main with untracked files and modifications...
wt feature-x --carry # Creates worktree with those files copied over
Copies untracked files to the new worktree. Works from any branch.
If your repo has a conductor.json, scripts run automatically:
{
"scripts": {
"setup": "cp $CONDUCTOR_ROOT_PATH/.env .env && bun install",
"archive": "git stash"
}
}
When user asks to create a worktree, run:
wt <branch>
The script handles branch detection, env file copying, and setup automatically. Suggest opening the worktree in their editor after creation.