Install any skill in seconds. Free to start, no credit card required.
Get Started Free →freedomintelligence/using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Passed 14 of 21 test cases with the skill, and 11 of 21 without it.
and 2 more in the full report
5 fixed10 passed either way6 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need a new worktree for `feature/billing`. Neither `.worktrees/` nor `worktrees/` exists in the repo, but `CLAUDE.md` contains the line `Worktree directory: worktrees/`. What step should be taken next before asking the user?
| Checked | Without skill | With skill |
|---|---|---|
| Uses the directory preference specified in CLAUDE.md without asking the user. | Passed | Passed |
| Verifies worktrees is ignored using git check-ignore. | Missed | Passed |
The instructions your model reads when the skill loads.
Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
Core principle: Systematic directory selection + safety verification = reliable isolation.
Announce at start: "I'm using the using-git-worktrees skill to set up an isolated workspace."
Follow this priority order:
# Check in priority order
ls -d .worktrees 2>/dev/null # Preferred (hidden)
ls -d worktrees 2>/dev/null # Alternative
If found: Use that directory. If both exist, .worktrees wins.
grep -i "worktree.*director" CLAUDE.md 2>/dev/null
If preference specified: Use it without asking.
If no directory exists and no CLAUDE.md preference:
No worktree directory found. Where should I create worktrees?
1. .worktrees/ (project-local, hidden)
test cases passed, vs 11 / 21 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.