Skip to content
Kitbay
Skill

using-git-worktrees

MITUpdated on Nov 3, 2026315,883GitHub stars

A skill from the Superpowers collection that gives a coding agent an isolated workspace before feature work or a plan starts.

What the skill teaches

A skill from the Superpowers collection that gives a coding agent an isolated workspace before feature work or a plan starts. It first checks with git whether it is already in a linked worktree (allowing for submodules), and asks before creating one in a normal checkout. It prefers the agent tool's own worktree feature and only falls back to git worktree add, choosing a folder by user preference, an existing worktrees folder or a default, and making sure that folder is git-ignored. It then installs dependencies for Node, Rust, Python or Go projects and runs the test suite, reporting failures before any new work begins.

Capabilities

  • Detect whether work already runs in a git worktree
  • Create a git worktree in an ignored folder
  • Install project dependencies in the new workspace
  • Run the test suite to confirm a clean baseline