Development

/worktrees

Use when starting isolated feature work. Creates git worktrees to prevent branch cross-contamination. Covers worktree, isolated development, parallel features, branch isolation. NOT for: simple branch switching (use git checkout), Linear-only operations (use linear).

$ golems-cli skills install worktrees
Good
5 workflows

Updated 2 weeks ago

Create isolated working directories for each task. Worktrees share git history but have separate working files, preventing cross-contamination between branches.

Quick Actions

What you want to doWorkflow
Create new worktree from branch nameworkflows/create.md
Create worktree from Linear issueworkflows/from-linear.md
List active worktreesworkflows/list.md
Switch to a worktreeworkflows/switch.md
Clean up completed worktreesworkflows/cleanup.md

Default Paths

Worktrees are created at: ~/worktrees/<repo>/<branch>

Example:

  • Main repo: /Users/me/projects/my-app
  • Worktree: ~/worktrees/my-app/feature-login

Safety Rules

  • One branch, one worktree. For parallel work on the same repo, create a separate worktree for each branch.
  • Do not reuse a single shared checkout for multiple active branches. If the user proposes "just switch branches in one folder" for parallel work, stop and redirect them to worktrees.
  • Do not remove a worktree until you verify its branch is merged. Unmerged or in-progress worktrees stay in place.
  • Do not use git worktree remove --force unless the user explicitly confirms that uncommitted work can be discarded.

Workflows

/worktrees:list/worktrees:from-linear/worktrees:create/worktrees:switch/worktrees:cleanup