From claudekit
Sets up and manages Git worktrees for isolated feature branches, parallel development, hotfixes, and subagent tasks. Includes safety checks, naming conventions, dependency installs, and independent testing.
npx claudepluginhub duthaho/claudekit --plugin claudekitThis skill uses the workspace's default tool permissions.
- Starting feature work that needs isolation from the current workspace
Creates isolated git worktrees for parallel feature development and executes identical plans across workspaces via subagents for concurrent experimentation and result comparison.
Creates isolated git worktrees as sibling directories for parallel branch development, keeping main repo clean. Use for new features, fixes, or experiments needing isolation from main/master.
Creates and manages isolated Git worktrees for feature development, supporting serial/parallel modes with automated branch naming, safety verification, merging, and cleanup.
Share bugs, ideas, or general feedback.
# Create worktree from current branch
git worktree add ../project-feature-auth feature/auth
# Create worktree from a new branch off main
git worktree add -b feature/orders ../project-feature-orders main
# Create worktree for a hotfix off production
git worktree add -b hotfix/session-fix ../project-hotfix-session production
Use ../project-<branch-slug> to keep worktrees adjacent to the main repo:
d:/hop/code/work/
├── myapp/ # Main worktree
├── myapp-feature-auth/ # Feature worktree
├── myapp-feature-orders/ # Another feature
└── myapp-hotfix-session/ # Hotfix worktree
# 1. Ensure clean working state
git status # no uncommitted changes
# 2. Fetch latest from remote
git fetch origin
# 3. Verify the base branch is up to date
git log --oneline origin/main..main # should be empty
# 4. Create the worktree
git worktree add -b feature/new-feature ../project-feature-new origin/main
# Python
cd ../project-feature-auth
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
pip install -r requirements.txt
# Node.js
cd ../project-feature-auth
pnpm install
# In worktree — won't affect main workspace
cd ../project-feature-auth
pytest -v --cov=src # Python
npm test # TypeScript
When dispatching subagents for parallel work, each agent gets its own worktree:
Agent 1 worktree: ../project-task-1 (branch: task/backend-api)
Agent 2 worktree: ../project-task-2 (branch: task/frontend-ui)
Agent 3 worktree: ../project-task-3 (branch: task/db-migration)
Each agent works in isolation — no merge conflicts during development.
# 1. Switch back to main worktree
cd ../myapp
# 2. Merge the feature branch
git merge feature/auth
# 3. Remove the worktree
git worktree remove ../project-feature-auth
# 4. Delete the branch if no longer needed
git branch -d feature/auth
# List all worktrees
git worktree list
# Remove stale references (worktrees whose directories were deleted)
git worktree prune
node_modules / venv. Run pnpm install or pip install -r requirements.txt after creating.git worktree prune to clean up references.subagent-driven-development — Use worktrees to give each subagent an isolated workspacedispatching-parallel-agents — Dispatch agents into separate worktrees for true parallel workexecuting-plans — Worktrees enable isolated task execution from plansfinishing-a-development-branch — Cleanup and merge workflow after worktree work is complete