using-git-worktrees

Installation
SKILL.md
  1. Find the worktrees directory.
  • Check existing directories using the Bash tool: ls -d .worktrees 2>/dev/null
  • If not found, ask me for permission to create a .worktrees directory
  • If given permission, create .worktrees.
  1. Verify .gitignore before creating a worktree using the Bash tool:
# Check if directory pattern in .gitignore
grep -q "^\.worktrees/$" .gitignore || grep -q "^worktrees/$" .gitignore
  • If not found, add the appropriate line to the .gitignore immediately.
  1. Create the worktree
Installs
1
GitHub Stars
4.9K
First Seen
Oct 12, 2026