
git-worktrees
Working on multiple branches simultaneously, context switching without stashing
by neolabhqFree
Description
Git Worktrees is an agent skill from neolabhq's context-engineering-kit that teaches an agent to use git worktrees to work on several branches at once. Instead of stashing changes or making separate clones, each active branch gets its own directory, and switching context means changing directories rather than branches. The skill explains the main worktree, linked worktrees created with git worktree add, the shared object database that avoids duplication, the rule that a branch can be checked out in only one worktree at a time, and the metadata kept under .git/worktrees. It is meant for reviewing PRs while developing, testing in isolation, or comparing implementations side by side. Note that one of its security audits reports Fail.…
Highlights
- One worktree per active branch
- Switch context by directory, not by branch
- Explains shared .git and branch locks
- Quick reference for worktree commands
Ratings & Reviews
No ratings yet
Be the first to rate git-worktrees.
People also visit
git-worktrees FAQ
What problem do worktrees solve?
They let you check out several branches at once in separate directories sharing one repository, so you don't need to stash changes or clone again.
What is the install command?
Run `npx skills add https://github.com/neolabhq/context-engineering-kit --skill git-worktrees` to add it to a supported coding agent through the skills CLI.
Can the same branch be open in two worktrees?
No. Each branch can only be checked out in one worktree at a time.
When is this skill useful?
When working on multiple branches at once, reviewing PRs while developing, testing in isolation, or comparing implementations.
What are the security audit results?
The skills.sh page lists these results: Gen Agent Trust Hub: Fail, Socket: Pass, Snyk: Pass.
What are the best git-worktrees alternatives?
Popular alternatives to git-worktrees include ce-worktree, worktrunk and git-advanced-workflows. See all git-worktrees alternatives

















