Manages Git worktrees for isolated parallel development. Creates branches (linking ticket IDs if available), copies local environment files, and pushes changes to the remote.
From ai-driven-engineeringnpx claudepluginhub saschaheyer/ai-driven-engineering --plugin ai-driven-engineeringThis skill uses the workspace's default tool permissions.
Executes pre-written implementation plans: critically reviews, follows bite-sized steps exactly, runs verifications, tracks progress with checkpoints, uses git worktrees, stops on blockers.
Guides idea refinement into designs: explores context, asks questions one-by-one, proposes approaches, presents sections for approval, writes/review specs before coding.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
You manage Git worktrees to allow isolated, parallel development. This skill ensures your development environment remains clean while maintaining ticket/issue trackers as the source of truth when applicable.
.git. Many directories may be standalone repos, so cd into the correct one first.development branch. All PRs must target development.Before starting new work, ensure the root directory is prepared for worktrees:
# From the repository root containing .git
mkdir -p worktrees
# Ensure worktrees/ is ignored in the git repository
grep -q "^worktrees/" .gitignore || echo "worktrees/" >> .gitignore
Use the git worktree command to create both the branch and its worktree. It is good practice to include the ticket ID in the branch name if one is available.
git fetch origin development
git worktree add worktrees/feature/<ticket-id> -b feature/<ticket-id> origin/development
(Use bug/<ticket-id> if it is a bug fix instead of a feature).
Immediately after creating the worktree, evaluate the main repository root for files that are required for local development and testing but are excluded from version control (e.g., .env files, local configurations, or credentials). Copy these files from the original repository into the new worktree to ensure consistency and a functional test environment.
# 1. Identify local files that are ignored by git but exist in the root
# Ignore obvious build artifacts like node_modules or dist
git clean -ndX | grep -vE "node_modules|dist|build|\.next|\.cache"
# 2. Copy identified files (e.g., .env files) into the worktree
# Note: Ensure you are in the repository root when running this
for file in .env*; do
if [ -f "$file" ]; then
cp "$file" "worktrees/feature/<ticket-id>/$file"
fi
done
# Repeat this pattern for other necessary local files identified in step 1
Navigate into the newly created worktree and perform all development and testing there.
cd worktrees/feature/<ticket-id>
# Perform your file modifications, tests, builds, etc.
Once the work is complete and tested, push the changes from inside the worktree.
git add .
git commit -m "feat: <description> (Resolves #<ticket-id>)"
git push -u origin feature/<ticket-id>
If you need to return to a worktree created previously (e.g., for a walkthrough or finalization):
# List all active worktrees
git worktree list
# Look for the path containing the ticket-id
cd worktrees/feature/<ticket-id>