本文へスキップ
Kitbay
スキル

using-git-worktrees

MIT2026年11月3日 更新315,883GitHubスター

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

スキルの内容

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.

できること

  • 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