team-worktree
Installation
SKILL.md
Team Worktree — Isolate the Implementation
Create a git worktree per involved repository so implementation happens on
isolated branches without affecting any main working tree. In single-repo
mode (the default) this is one worktree in the home repo. In multi-repo
mode (when docs/plans/<id>/repos.md is present) it is one worktree per
listed repo, all sharing the same <id> branch name.
Input
$ARGUMENTS is the artifact directory: docs/plans/<id>/. If empty, the
discovery block below resolves it.
The directory's basename — <id> — is used as both the branch name and
the worktree directory name in every involved repo.
Resolve the artifact directory by running this self-contained block (one bash call — agent threads reset cwd between calls):