git-worktrees

Installation
SKILL.md

Git Worktrees

WHEN: An agent (or two agents) needs an isolated working directory on the same repository -- for a parallel branch, a deploy-prototype run, an experimentation-loop attempt, or a long investigation that should not touch the primary checkout's working tree.

When to Use This Skill

Load this skill when:

  • Two agents need to operate on the same repository in parallel
  • An experimentation-loop attempt needs its own working tree so the main checkout stays clean
  • A deploy / prototype build needs an isolated dist/ and node_modules without polluting the primary tree
  • A long debugging session needs to compare two branches side-by-side without stashing

Skip when:

  • The change is a single in-place edit on the current branch
  • The user has explicitly asked you to operate only inside the primary checkout
  • The repo contains active submodules that have not been audited for worktree safety
Installs
3
Repository
jnpiyush/agentx
GitHub Stars
13
First Seen
May 23, 2026
git-worktrees — jnpiyush/agentx