This repo contains a Codex skill that captures a fast Git worktree workflow
using the ga and gd helpers to create, switch, and clean isolated branches.
- Install or copy the
gitworktree-skilldirectory into your Codex skills path. - If
ga/gdare not available, install the helpers:
source scripts/worktree_helpers.shAdd to your shell profile to make them persistent:
echo 'source /path/to/gitworktree-skill/scripts/worktree_helpers.sh' >> ~/.zshrc- Optional dependencies:
gum(required bygd):brew install gummise(optional, for auto trust):brew install mise
- Start a Codex session in a repo where you want to use worktrees.
- Ask for isolated feature/fix work and use the commands below.
ga <branch-name> # create worktree + branch and cd into it
gd # delete current worktree (requires gum)
git worktree list # list all worktreesga feature/new-api