worktrees
Installation
SKILL.md
Git Worktrees for Plans
Rule: All plan work happens in a dedicated worktree. Never do plan tasks in the main repo checkout.
Create Worktree for a Plan
From the main repo directory:
# Convention: ../<repo-name>-worktrees/<plan-name>
git worktree add ../stream-chat-react-worktrees/<plan-name> -b <plan-branch-name>
# Example
git worktree add ../stream-chat-react-worktrees/gallery-redesign -b feat/gallery-redesign
- Worktree path:
../stream-chat-react-worktrees/<short-descriptive-name> - Branch:
feat/<descriptive-name>(repo conventions) - Base: current branch when creating