Pular para o conteúdo
Kitbay
Skill

using-git-worktrees

MITAtualizado em 3 de nov. de 2026315.883Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

  • 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