git-worktree
Installation
SKILL.md
Git Worktree
Create a dedicated git worktree for the current task, then keep working inside that new directory instead of the original checkout.
This skill is about execution, not just advice. When it triggers, actually create the worktree unless the repository state makes that impossible.
Do not introduce helper scripts for this skill. Use direct git and shell commands inline.
When To Use
- The user explicitly asks for a new
git worktree, independent branch directory, or isolated workspace - The current checkout contains unrelated local changes and isolation is the safest way forward
- The user wants parallel work on multiple tasks without stashing or disturbing the original worktree
- The user says things like "create a separate branch folder", "open a fresh worktree", "use a clean checkout", or "work in an isolated workspace"
Core Rule
After creating the worktree, treat the new path as the active working directory for the rest of the task.