← ClaudeAtlas

sc-managing-worktreeslisted

Create, manage, scan, update, and clean up git worktrees for parallel development with protected branch safeguards. Use when working on multiple branches simultaneously, isolating experiments, updating protected branches (main/develop), or when user mentions "worktree", "parallel branches", "feature isolation", "branch cleanup", "worktree status", or "update main/develop".
randlee/synaptic-canvas · ★ 4 · AI & Automation · score 69
Install: claude install-skill randlee/synaptic-canvas
# Managing Git Worktrees Use this skill to manage worktrees with a standard structure and tracking. Use the `/sc-git-worktree` command to invoke this skill. ## Agent Delegation This skill delegates to specialized agents via the **Task tool**: | Operation | Agent | Returns | |-----------|-------|---------| | Create | `sc-worktree-create` | JSON: success, path, branch, tracking_row | | Scan | `sc-worktree-scan` | JSON: success, worktrees list, recommendations | | Cleanup | `sc-worktree-cleanup` | JSON: success, branch_deleted, tracking_update | | Abort | `sc-worktree-abort` | JSON: success, worktree_removed, tracking_update | | Update | `sc-worktree-update` | JSON: success, commits_pulled, conflicts (if any) | To invoke an agent, use the Task tool with: - Prompt file: `.claude/agents/<agent-name>.md` - Parameters as documented in each agent's Inputs section ## Standards and paths - Repo root: current directory. - Default worktree base: `../synaptic-canvas-worktrees`. - Worktrees live in `<worktree_base>/<branch>`. - Tracking document (if used): `<worktree_base>/worktree-tracking.md` must be updated on create/scan/cleanup/abandon. Allow a toggle to disable tracking for repos that don't use it. - Naming: worktree directory = branch name; branch naming follows repo policy (e.g., master release; develop/DevBranch integration; feature from integration; hotfix from master; release branches as needed). - Branch protections/hooks: no direct commits to protected branches; ensure h