tracer-worktrees
Installation
SKILL.md
Worktrees
Choose the feature workspace without disrupting one the user already chose. A named non-default branch stays in its current checkout; work that starts on main or master gets a feature branch and, when accepted, an isolated checkout. Separate checkouts make parallel /tracer-implement runs safe.
Order of preference: keep a named feature branch → reuse existing isolation → native harness tool → git worktree fallback. Never fight the harness.
0. Gate on the current branch
CURRENT_BRANCH=$(git symbolic-ref --quiet --short HEAD || true)
- If
CURRENT_BRANCHis named and is neithermainnormaster, the repository already has a clear feature workspace. Stop this skill and work in the current checkout. A linked worktree is not required; the branch is the signal that the workspace has already been chosen. - If
CURRENT_BRANCHis empty, HEAD is detached or branch detection failed. Report the state and ask whether to keep working there or create a branch; do not create a worktree by assumption. - Only when
CURRENT_BRANCHis exactlymainormastershould this skill consider creating a worktree. Continue below.