using-git-worktrees

Automates creation of isolated Git worktrees for parallel tasks.

19|4|Updated Dec 23, 2021
One-click install
npx skills add https://github.com/raas-dev/configent --skill using-git-worktrees-raas-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/raas-dev/configent/tree/main/etc/claude-code/skills/using-git-worktrees
Command: npx skills add https://github.com/raas-dev/configent --skill using-git-worktrees-raas-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually managing multiple Git branches can be messy and error-prone, leading to context switching overhead and accidental commits. This Skill automates the creation of isolated Git worktrees, ensuring a clean and safe development environment for each task.

Core Features & Use Cases

  • Isolated Workspaces: Work on multiple features or bug fixes simultaneously without switching branches or polluting your main workspace.
  • Smart Directory Selection: Automatically chooses or prompts for the best location for your worktrees, adhering to project conventions.
  • Safety Verification: Ensures .gitignore is updated to prevent accidental commits of worktree contents to the main repository.
  • Use Case: When you need to start a new feature while a bug fix is in review, this skill sets up a clean, isolated environment for the feature, installs dependencies, and verifies a clean baseline, all in one automated step.

Quick Start

Create a new worktree for a feature branch

git worktree add .worktrees/my-feature -b feature/my-feature cd .worktrees/my-feature

The skill will auto-detect and run project setup (e.g., npm install)

and verify a clean baseline.