worktrees
✓Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, or comparing implementations across branches - provides git worktree commands and workflow patterns for parallel development with multiple working directories.
Installation
SKILL.md
Git worktrees enable checking out multiple branches simultaneously in separate directories, all sharing the same repository. Create a worktree instead of stashing changes or cloning separately.
Core principle: One worktree per active branch. Switch contexts by changing directories, not branches.
| Main worktree | Original working directory from git clone or git init | | Linked worktree | Additional directories created with git worktree add | | Shared .git | All worktrees share same Git object database (no duplication) | | Branch lock | Each branch can only be checked out in ONE worktree at a time |
Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, or comparing implementations across branches - provides git worktree commands and workflow patterns for parallel development with multiple working directories. Source: neolabhq/context-engineering-kit.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/neolabhq/context-engineering-kit --skill worktrees- Category
- >_Productivity
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is worktrees?
Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, or comparing implementations across branches - provides git worktree commands and workflow patterns for parallel development with multiple working directories. Source: neolabhq/context-engineering-kit.
How do I install worktrees?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/neolabhq/context-engineering-kit --skill worktrees Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/neolabhq/context-engineering-kit
Details
- Category
- >_Productivity
- Source
- skills.sh
- First Seen
- 2026-02-01