npx claudepluginhub jacobpevans/claude-code-plugins --plugin git-workflowsThis skill uses the workspace's default tool permissions.
Diagnose and fix worktree, branch, and reference issues.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Diagnose and fix worktree, branch, and reference issues.
Always run first:
git worktree list
git branch -a
git status
pwd
Never assume paths - always discover:
git worktree list
# Main: line with [main] - first column is path
# Branch: line with [<branch>] - first column is path
Warning: warning: refname 'origin/main' is ambiguous
Means TWO things named origin/main:
refs/heads/origin/main - LOCAL branch (bad)refs/remotes/origin/main - remote tracking (good)Diagnose: git show-ref origin/main
Fix: git branch -D origin/main then verify only 1 line remains with git show-ref origin/main.
git worktree add ~/git/<repo>/main main
git fetch origin <branch>
git worktree add ~/git/<repo>/<branch> <branch>
git fetch origin
git branch -a | grep -i "<branch>"
git add . && git commit -m "WIP" # Commit
git stash push -m "before operation" # Stash (temporary)
git checkout -- . # Discard (DESTRUCTIVE)
git rm --cached <folder>
echo "<folder>/" >> .gitignore
MAIN_PATH=$(git worktree list | grep '\[main\]' | awk '{print $1}')
BRANCH_PATH=$(git worktree list | grep '\[<branch>\]' | awk '{print $1}')
cd "$BRANCH_PATH" && git fetch origin && git reset --hard origin/<branch>
cd "$MAIN_PATH" && git fetch origin && git reset --hard origin/main
git worktree remove "<path>" --force
git fetch origin
git worktree add "<new-path>" "<branch>"