skills/git-wt/SKILL.md
Fast git worktree manager. Use when the user wants to create, list, switch between, or clean up git worktrees. Handles parallel development workflows, agent isolation, and multi-branch work.
npx skillsauth add kuderr/git-wt git-wtInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
git-wt manages isolated git worktrees stored globally at ~/.git-wt/<repo>/<name>/.
Worktrees live outside the repo — no .gitignore changes needed.
git-wt must be installed and in PATH. Verify with git wt --version.
If not installed, ask the user to install it themselves.
git wt new # Auto-named; .env* + AI sessions copied by default
git wt new my-feature # Named
git wt new -b main hotfix # Fork from specific branch
git wt new --no-copy-env experiment # Opt out of .env* copy
git wt new --no-copy-ai scratch # Opt out of AI session copy/save
git wt new --no-branch scratch # Detached HEAD (no branch created)
git wt checkout feature/login # Local branch → worktree (.env* + AI copied by default)
git wt checkout origin/fix/bug-42 # Remote → local tracking branch → worktree
git wt checkout fix/bug-42 # Auto-detects from remote
git wt checkout feature/login my-fix # Custom worktree name
git wt checkout --no-copy-env feature/api # Opt out of .env* copy
cd $(git wt path <name>) # Jump into worktree
git wt open <name> # Open in Cursor/VS Code/$EDITOR
git wt list # Worktrees for current repo (managed + external)
git wt list-all # Managed worktrees across ALL repos
External worktrees (created via git worktree add) appear with [external] tag.
git wt adopt my-hotfix # Adopt by name from list
git wt adopt ../my-hotfix # Adopt by path (name = basename)
git wt adopt /tmp/wt/fix fix-login # Adopt with custom name
Moves an external worktree under ~/.git-wt/ management.
git wt origin # Print main repo path (from any worktree)
git wt rm <name> # Remove managed worktree + delete its branch
git wt clean # Remove all managed worktrees for current repo
rm only works on managed worktrees (under ~/.git-wt/). For external worktrees, run git wt adopt first.
~/.git-wt/<repo>/<name>/ — outside the repo, globally managedwt/ by default (e.g., wt/my-feature)adjective-noun names if no name givenrm: only works on managed worktrees — removes directory and deletes its branchadopt: moves an external worktree under ~/.git-wt/ so git-wt fully manages itlist, path, open work with worktrees created outside git-wtcheckout: checks out an existing branch (local or remote) into a managed worktree — does NOT create new branches.env* copy: enabled by default — copies .env* files from repo root into the new worktree directory (local filesystem only). Disable with --no-copy-env per run or GIT_WT_COPY_ENV=false./resume and codex resume there). On rm: merges wt's Claude sessions back to origin (wt continuations win), discards seeded Codex copies, rebinds genuine wt-created Codex sessions to origin, syncs settings back. Local filesystem only. Disable with --no-copy-ai per run or GIT_WT_COPY_AI=false.origin: prints main repo path — works from any worktree or main repo itselfGIT_WT_HOME — Root directory for all worktrees (default: ~/.git-wt)GIT_WT_PREFIX — Branch name prefix (default: wt)GIT_WT_COPY_ENV — Copy .env* files on new (default: true)GIT_WT_COPY_AI — Copy AI configs on new, save sessions on rm (default: true)GIT_WT_AI_PROVIDERS — Space-separated AI providers to manage (default: claude codex)Use git wt new when:
Defaults you get for free (no flags):
.env* files from the repo root are copied into the worktree — dev servers that need env vars start immediately.claude/settings.local.json (approved Claude commands) is copied into the worktree on createnew, origin's Claude sessions are seeded into the worktree (cwd rewritten) and origin's Codex rollouts are duplicated with fresh UUIDs/cwd — /resume and codex resume in the worktree pick up the same historyrm, Claude session files are merged back to origin (newer wt continuations replace origin's version), the seeded Codex copies are discarded, and genuine worktree Codex sessions get their cwd rebound to originUse --no-copy-env / --no-copy-ai (or set GIT_WT_COPY_ENV=false / GIT_WT_COPY_AI=false) when:
Use git wt checkout when:
Use git wt adopt when:
git worktree add and you want git-wt to manage it~/.git-wt/ for consistent managementOptional aliases/git-wt.sh provides shorter commands. Source it in .bashrc/.zshrc:
| Alias | What it does |
|-------|-------------|
| wtcd <name> | cd into a worktree |
| wto | cd to the origin (main) repo |
| wtn [name] | Create worktree + cd into it |
| wtco <branch> | Checkout existing branch + cd into it |
| wtls / wtla | List / list-all |
| wtrm / wtopen / wtclean / wtpath | Shorthand for corresponding commands |
--copy-env copies .env* files between local directories on the same machine (repo root → worktree)--copy-ai copies AI config/session files between local directories on the same machine~/.git-wt/ with standard filesystem permissions# Agent 1: create isolated worktree with AI config
git wt new --copy-env --copy-ai task-auth
# Agent 2: create another
git wt new --copy-env --copy-ai task-api
# Each agent works independently in their worktree
cd $(git wt path task-auth)
# When done — sessions merged into origin (/resume), settings synced back
git wt rm task-auth
git wt rm task-api
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.