← ClaudeAtlas

team-worktreelisted

Prepare one or more isolated git worktrees — one per repository the topic touches. Router action — no agent. Trigger on "set up the worktree", "isolate this work", or "/team-worktree".
bostonaholic/team · ★ 11 · AI & Automation · score 75
Install: claude install-skill bostonaholic/team
# 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): ```sh # Three-tier artifact-directory discovery (archetype A). # ID_RE + PHASE_FILES canonical from hooks/session-start-recover.mjs. # PHASE_FILES recency mirrors findActiveTopic() in session-start-recover.mjs. # NOTE: this block is duplicated across 8 skills by design (see docs/architecture.md); future: shared discover-topic.sh. ID_RE='^([A-Za-z][A-Za-z0-9_]*-[0-9]+|[0-9]{4}-[0-9]{2}-[0-9]{2})-[a-z0-9][a-z0-9-]*$' PHASE_FILES="task questions research design structure plan" PRED="plan.md" # predecessor artifact this skill consumes # Tier 1 — explicit: $ARGUMENTS names an existing dir → use verbatim. if [ -n "$ARGUMENTS" ] && [ -d "$ARGUMENTS" ]; then echo "$ARGUMENTS"; exit 0 fi # Tier 2 — discover: newest ID_RE